#Block player is looking at

9 messages · Page 1 of 1 (latest)

limpid inlet
#

What would be the way to detect a block the player is looking at and modify its nbt

west tulipBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

trail relic
#

raytrace is what youre looking for

#

i think its like let result = e.player.raytrace(distance) or something

#

oh shit i was right

#

no wait, capital T

#

let result = e.player.rayTrace(distance)

#

let block = e.player.rayTrace(distance).block

limpid inlet
#

ok i forgor to do one thing oh i love when that happens i figured it out THANKS