#detect what block a projectile hits

1 messages · Page 1 of 1 (latest)

unique thorn
#

Hey, i would want to detect what block a projectile hits, i have tried things like

      projectile is arrow:
          set {_block} to the block at location 0.5 in front of the projectile```
which didnt work, always returned as air, i have no idea how to do this and i couldnt find how to do it, please help!
native bobcat
#

according to the skript docs you can just use event-block
if that still returns as air, you can loop all blocks in a radius of event-location (use a filter to only loop non-air blocks)

unique thorn
#

i basically want to detect if the projectile hits a block or an entity

full ether
#
  if event-block is set:
    broadcast "block"
on projectile collide:
  broadcast "entity"``` ?
full ether
vapid fox
#

try block at event-projectile