Hello..
Code:
Error:
Not error, but its not working.. everything work well but it wont change NBT of entity.. skeleton has still bow in his hand, .....
What I want?:
Help, plz help
xD
Code:
code_language.skript:
on damage:
if attacker is set:
if victim is set:
if world of location of victim is {@Map}:
if health of victim - damage is less than 0:
cancel event
spawn 1 skeleton at location of victim
add "{Equipment:[{},{},{},{},{id:397}]},CustomNameVisible:1" to nbt of spawned skeleton
set name of last spawned skeleton to "&c%name of victim%"
set health of spawned skeleton to 5
set target of spawned skeleton to attacker
wait 1 tick
heal victim
teleport victim to {kit.lobby}
broadcast "&b%victim% &ehas been killed by &b%attacker%" to {@Map}
wait 3 seconds
kill spawned skeleton
Error:
Not error, but its not working.. everything work well but it wont change NBT of entity.. skeleton has still bow in his hand, .....
What I want?:
Help, plz help
xD
Last edited: