#how to run a function when player is looking at that entity?
1 messages · Page 1 of 1 (latest)
if ur looking at a entity with the identifier "custom:entity" thats within a 50 block radius of u, it runs "customfunc"
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 )
it also doesnt check for blocks, this means if u "see" the entity through blocks, it's still gonna run the function even if u didnt actually see him