Hi, I was wondering how to get the location of the block the player is looking at. I constantly get the error "can't compare player with 'looking at loop block'." Is there a way to do this or do i need an addon? Heres my code:
Code:
loop all blocks in radius 10 around player:
if player is looking at loop-block:
set {rgloc1.%player%} to location of loop-block
message "&aLocation set to &d%{rgloc1.%player%}%"