effect give @a minecraft:saturation infinite 0 true
effect give @a minecraft:night_vision infinite 0 true
execute as @a at @s if block ~ ~-1 ~ minecraft:emerald_block run effect give @s minecraft:jump_boost 1 3 true
execute as @a at @s if entity @s[y=-62,dy=-100] run kill @s
execute as @e[type=minecraft:allay,tag=invisible] run effect give @s minecraft:invisibility 1 0 true
execute as @a at @s if entity @e[type=minecraft:allay,distance=..1] run effect give @s minecraft:levitation 1 7 true
execute as @a[nbt={OnGround:1b}] at @s if block ~ ~-1 ~ minecraft:lodestone run effect give @p levitation 5 1
gamerule randomTickSpeed 0
execute as @a unless entity @s[nbt={Inventory:[{id:"minecraft:light_weighted_pressure_plate",Slot:8b}]}] run item replace entity @s hotbar.8 with minecraft:light_weighted_pressure_plate
execute as @e[type=item,nbt={Item:{id:"minecraft:light_weighted_pressure_plate"}}] at @s run kill @s
execute as @a[nbt={SelectedItem:{id:"minecraft:light_weighted_pressure_plate"}, SelectedItemSlot:8}] at @s run kill @s
execute as @e[type=minecraft:endermite,tag=invisible] run effect give @s minecraft:invisibility 1 0 true
execute as @a at @s if entity @e[type=minecraft:endermite,distance=..1] run effect give @s minecraft:levitation 1 7 true