scoreboard players reset @a offhandlight
scoreboard players set @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:torch"}]}] offhandlight 1
clear @a
kill @e[type=item]
clear @a
execute as @a run item replace entity @s armor.feet with minecraft:diamond_boots{Enchantments:[{id:feather_falling,lvl:4}], Unbreakable:1}
execute as @a run item replace entity @s container.0 with minecraft:iron_pickaxe{Enchantments:[{id:efficiency,lvl:3}], Unbreakable:1,CanDestroy:["minecraft:lapis_block","minecraft:redstone_block","minecraft:purpur_block","minecraft:emerald_block"],display:{Name:"{\"text\":\"Retriever\"}",Lore:["{\"text\":\"Collect groups of cubes\"}","{\"text\":\"Items teleport to you\"}"]}}
execute as @a if score @s offhandlight matches 1 run item replace entity @s weapon.offhand with minecraft:torch{display:{Name:"{\"text\":\"Light\"}",Lore:["{\"text\":\"for optifine\"}"]}}
execute as @a unless score @s offhandlight matches 1 run item replace entity @s container.8 with minecraft:torch{display:{Name:"{\"text\":\"Light\"}",Lore:["{\"text\":\"for optifine\"}"]}}
kill @e[tag=lastblock]
kill @e[tag=sliderspawnerpossible]
kill @e[tag=floater]
kill @e[tag=slider]
kill @e[tag=slider_piece]
execute as @e[tag=sliderspawner] at @s run setblock ~ ~1 ~ minecraft:emerald_block
kill @e[tag=sliderspawner]
scoreboard players reset @a slidespawners
scoreboard players set @a float_create 0
scoreboard players set @a slide_create 0
gamemode adventure @a[gamemode=!spectator]
tag @a remove keepeffect
