Hey I recently was trying to make an item that turns mobs into spawn eggs here's what I di so far but i can't really find a way to solve the entity tag if there's any way to do it i would appreciate the answer
Code:
on damage of a mob:
if attacker is holding an emerald named "&a&lEggifier":
If attacker has 1 of egg in inventory:
kill the victim
remove 1 egg from attacker
give attacker 1 %entity_type% egg
chance of 20%:
send "&c&lOof your &a&lEggifier &c&lbroke!" to attacker
remove 1 emerald named "&a&lEggifier" from attacker
chance of 1%:
send "&2&lYou got lucky! You didn't loose the egg!" to attacker
give attacker 1 egg
else:
send "&c&lYou need an egg for this action!" to attacker
cancel event
Last edited: