Using code provided in documentation examples.
It seems to nearly always return air. The weird part is this worked for a few minutes. Would sometimes return air, but it was mostly correct. But after a few minutes, it got to the point where it always returns "air" as the block.
I have also tried using block at event-location with the same results
Is there a better way to get this?
Thanks for any help!
code_language.skript:
on projectile hit:
if {gameset.%shooter%} is true:
set {_block} to the block at location 0.5 in front of the projectile
if {_block} is air:
set {_block} to the block at location 0.1 behind the projectile
console command "tm amsg %shooter% %{_block}%"
It seems to nearly always return air. The weird part is this worked for a few minutes. Would sometimes return air, but it was mostly correct. But after a few minutes, it got to the point where it always returns "air" as the block.
I have also tried using block at event-location with the same results
Is there a better way to get this?
Thanks for any help!