on right click:
if player is holding soul sand named "&4Nekromanta":
cancel event
remove soul sand named "&4Nekromanta" from player's inventory
spawn skeleton at location of player
set name of last spawned entity to "&4Nekromanta"
set health of last spawned entity to 200
heal last spawned entity
set helmet of last spawned entity to bone block
set chestplate of last spawned entity to golden chestplate
set boots of last spawned entity to iron boots
on damage:
if victim is skeleton:
if victim's name is "&4Nekromanta":
cancel event
spawn 2 skeletons at attacker's location
wait 1 second
spawn 2 zombies at victim's location
on death:
if victim is skeleton:
if victim's name is "&4Nekromanta":
spawn ghast at attacker's location
spawn 10 skeletons at attacker's location
spawn 10 zombies at victim's location
Poprawi ktos male bledy ktorych nie moge dostrzec?