#how to run a function when player is looking at that entity?

1 messages · Page 1 of 1 (latest)

dull vortex
#
execute as @a at @s facing entity @e[type=custom:entity,r=50] feet positioned ^^^1 rotated as @s positioned ^^^-1 if entity @s[r=0.7] run function customfunc
dull vortex
#

there might be better ways to do this, but this is the easiest method ik lmao ( easiest for me to setup and understand dat is )

dull vortex