execute if block ~ ~ ~ air if block ~ ~-1 ~ air unless entity @e[tag=suport,distance=..0.1] run function items:passive/rat_boots/set_suport
execute if block ~ ~ ~ vine if block ~ ~-1 ~ air unless entity @e[tag=suport,distance=..0.1] run function items:passive/rat_boots/set_suport
execute if block ~ ~ ~ air if block ~ ~-1 ~ vine unless entity @e[tag=suport,distance=..0.1] run function items:passive/rat_boots/set_suport
execute if block ~ ~ ~ vine if block ~ ~-1 ~ vine unless entity @e[tag=suport,distance=..0.1] run function items:passive/rat_boots/set_suport
execute if entity @e[tag=suport,distance=..3] run scoreboard players remove @s rat_boots 1

execute as @e[tag=suport,distance=2.5..25] at @s run function items:passive/rat_boots/remove_suport
execute if entity @s[scores={rat_boots=0}] as @e[tag=suport,distance=..3] at @s run function items:passive/rat_boots/remove_suport
