I was trying to clear/kill an item drop after I pushed it in my "knife throwing" code.
In the last part, I was trying to kill/clear the {_item} entity, but it didnt :/ Can someone help?
code_language.skript:
set {_loc} to location of player's head
drop 1 iron sword at {_loc}
set {_item} to last dropped item
push {_item} in direction of player at speed 0.5
wait 2 ticks
push {_item} upwards at speed 0.2
push {_item} in direction of player at speed 0.5
loop 12 times:
loop all entities in radius 1 around {_item}:
if loop-entity is set:
if loop-entity is alive:
if loop-entity isn't the player:
make player damage loop-entity by 1
wait 2 ticks
clear {_item}
send "item drop deleted!"
In the last part, I was trying to kill/clear the {_item} entity, but it didnt :/ Can someone help?