execute as @s[tag=nl_Search.Empty] run function next_level:custom_blocks/crystal_ball/ui/empty_table
execute as @s[tag=nl_Search.Amethyst.Page1] run function next_level:custom_blocks/crystal_ball/ui/amethyst/page1
execute as @s[tag=nl_Search.Quartz.Page1] run function next_level:custom_blocks/crystal_ball/ui/dark_quartz/page1
execute as @s[tag=nl_Search.Jade.Page1] run function next_level:custom_blocks/crystal_ball/ui/jade/page1
execute as @s[tag=nl_Search.Topaz.Page1] run function next_level:custom_blocks/crystal_ball/ui/topaz/page1
execute as @s[tag=nl_Search.Ruby.Page1] run function next_level:custom_blocks/crystal_ball/ui/ruby/page1
execute as @s[tag=nl_Search.Sapphire.Page1] run function next_level:custom_blocks/crystal_ball/ui/sapphire/page1

execute as @s[tag=nl_Search.YellowHerb.Page1] run function next_level:custom_blocks/crystal_ball/ui/yellow_herb/page1
execute as @s[tag=nl_Search.RedHerb.Page1] run function next_level:custom_blocks/crystal_ball/ui/red_herb/page1
execute as @s[tag=nl_Search.BlueHerb.Page1] run function next_level:custom_blocks/crystal_ball/ui/blue_herb/page1
execute as @s[tag=nl_Search.PurpleHerb.Page1] run function next_level:custom_blocks/crystal_ball/ui/purple_herb/page1
execute as @s[tag=nl_Search.WhiteHerb.Page1] run function next_level:custom_blocks/crystal_ball/ui/white_herb/page1

execute as @s[tag=nl_Search.Molten.Page1] run function next_level:custom_blocks/crystal_ball/ui/molten/page1
execute as @s[tag=nl_Search.Cactus.Page1] run function next_level:custom_blocks/crystal_ball/ui/cactus/page1
execute as @s[tag=nl_Search.Frozen.Page1] run function next_level:custom_blocks/crystal_ball/ui/frozen/page1
execute as @s[tag=nl_Search.Mushroom.Page1] run function next_level:custom_blocks/crystal_ball/ui/mushroom/page1

execute as @s[tag=nl_Search.MagicDust.Page1] run function next_level:custom_blocks/crystal_ball/ui/magic_dust/page1
execute as @s[tag=nl_Search.MagicRod.Page1] run function next_level:custom_blocks/crystal_ball/ui/magic_rod/page1
execute as @s[tag=nl_Search.MagicRod.Page2] run function next_level:custom_blocks/crystal_ball/ui/magic_rod/page2

execute as @s[tag=nl_Search.SoulStone.Page1] run function next_level:custom_blocks/crystal_ball/ui/soul_stone/page1


execute unless block ~ ~ ~ trapped_chest{Items:[{Slot:16b}]} run function next_level:custom_blocks/crystal_ball/ui/tag_empty
execute as @e[tag=nl_Search.Empty] if block ~ ~ ~ trapped_chest{Items:[{Slot:16b,tag:{nl_ItemID:1b}}]} run function next_level:custom_blocks/crystal_ball/ui/tag_amethyst
execute as @e[tag=nl_Search.Empty] if block ~ ~ ~ trapped_chest{Items:[{Slot:16b,tag:{nl_ItemID:2b}}]} run function next_level:custom_blocks/crystal_ball/ui/tag_quartz
execute as @e[tag=nl_Search.Empty] if block ~ ~ ~ trapped_chest{Items:[{Slot:16b,tag:{nl_ItemID:3b}}]} run function next_level:custom_blocks/crystal_ball/ui/tag_jade
execute as @e[tag=nl_Search.Empty] if block ~ ~ ~ trapped_chest{Items:[{Slot:16b,tag:{nl_ItemID:4b}}]} run function next_level:custom_blocks/crystal_ball/ui/tag_topaz
execute as @e[tag=nl_Search.Empty] if block ~ ~ ~ trapped_chest{Items:[{Slot:16b,tag:{nl_ItemID:5b}}]} run function next_level:custom_blocks/crystal_ball/ui/tag_ruby
execute as @e[tag=nl_Search.Empty] if block ~ ~ ~ trapped_chest{Items:[{Slot:16b,tag:{nl_ItemID:6b}}]} run function next_level:custom_blocks/crystal_ball/ui/tag_sapphire

execute as @e[tag=nl_Search.Empty] if block ~ ~ ~ trapped_chest{Items:[{Slot:16b,tag:{nl_ItemID:79b}}]} run function next_level:custom_blocks/crystal_ball/ui/tag_yellowherb
execute as @e[tag=nl_Search.Empty] if block ~ ~ ~ trapped_chest{Items:[{Slot:16b,tag:{nl_ItemID:80b}}]} run function next_level:custom_blocks/crystal_ball/ui/tag_redherb
execute as @e[tag=nl_Search.Empty] if block ~ ~ ~ trapped_chest{Items:[{Slot:16b,tag:{nl_ItemID:81b}}]} run function next_level:custom_blocks/crystal_ball/ui/tag_purpleherb
execute as @e[tag=nl_Search.Empty] if block ~ ~ ~ trapped_chest{Items:[{Slot:16b,tag:{nl_ItemID:82b}}]} run function next_level:custom_blocks/crystal_ball/ui/tag_blueherb
execute as @e[tag=nl_Search.Empty] if block ~ ~ ~ trapped_chest{Items:[{Slot:16b,tag:{nl_ItemID:83b}}]} run function next_level:custom_blocks/crystal_ball/ui/tag_whiteherb

execute as @e[tag=nl_Search.Empty] if block ~ ~ ~ trapped_chest{Items:[{Slot:16b,tag:{nl_ItemID:88b}}]} run function next_level:custom_blocks/crystal_ball/ui/tag_molten
execute as @e[tag=nl_Search.Empty] if block ~ ~ ~ trapped_chest{Items:[{Slot:16b,tag:{nl_ItemID:99b}}]} run function next_level:custom_blocks/crystal_ball/ui/tag_cactus
execute as @e[tag=nl_Search.Empty] if block ~ ~ ~ trapped_chest{Items:[{Slot:16b,tag:{nl_ItemID:110b}}]} run function next_level:custom_blocks/crystal_ball/ui/tag_frozen
execute as @e[tag=nl_Search.Empty] if block ~ ~ ~ trapped_chest{Items:[{Slot:16b,tag:{nl_ItemID:121b}}]} run function next_level:custom_blocks/crystal_ball/ui/tag_mushroom

execute as @e[tag=nl_Search.Empty] if block ~ ~ ~ trapped_chest{Items:[{Slot:16b,tag:{nl_ItemID:132b}}]} run function next_level:custom_blocks/crystal_ball/ui/tag_magicdust
execute as @e[tag=nl_Search.Empty] if block ~ ~ ~ trapped_chest{Items:[{Slot:16b,tag:{nl_ItemID:133b}}]} run function next_level:custom_blocks/crystal_ball/ui/tag_magicrod

execute as @e[tag=nl_Search.Empty] if block ~ ~ ~ trapped_chest{Items:[{Slot:16b,tag:{nl_ItemID:146b}}]} run function next_level:custom_blocks/crystal_ball/ui/tag_soulstone
