I'm trying to fix it with this code, but it doesn't seem to work. Any idea what I'm doing wrong?
code_language.skript:
on projectile hit:
set {_block} to the block at location 0.5 in front of the projectile
teleport shooter to {_block}
if {_block} is air:
set {_block} to the block at location 0.5 behind the projectile
teleport shooter to {_block}