#Execute command when player enter double tallgrass

1 messages · Page 1 of 1 (latest)

rose sigil
#

Trying to make an invisibility effect on players when they enter double tallgrass while sneaking.

Sneak detection portion already working. Just need double tallgrass detect.

Resolved
RUA
/execute as @a at @s if entity @s[y=~1.1,dy=0.5] unless entity @s[y=~1.6,dy=0.5] run tag @s add sneaking
CUA
/title @a[tag=sneaking] actionbar §7Sneaking§r

RUA
execute as @a at @s if entity @s[y=~1.6,dy=0.5] run tag @s remove sneaking

RUA
/execute as @a[tag=sneaking] at @s if block ~~~ double_plant run effect @s invisibility 1 1 false

ancient frost