## Tag
tag @s add vb.player_effect.slime_helmet

## Grant effect
attribute @s minecraft:gravity modifier add vb.player_effect.slime_helmet -0.11 add_value

## Remove effect when not touching a block
execute if block ~ ~2 ~ #vb:passover if block ~ ~2.4 ~ #vb:passover run function vb:tick_player/effect_source/remove/slime_helmet

## Remove when not wearing Slime Helmet
execute unless items entity @s armor.head *[custom_data~{vb.item.slime_helmet:1b}] run function vb:tick_player/effect_source/remove/slime_helmet

## Remove effect if crouching
execute if score @s vb.tick_data.sneak matches 1.. run function vb:tick_player/effect_source/remove/slime_helmet
