how do i make it so that when you get a rare drop it spawns a firework? i dont know what the error is except it just says firework error
also theres an error with a crafting recipe with custom items i have already defined
someone please help me
Code:
on death:
if victim is {_imz}:
if attacker is a player:
chance of 1%:
drop {rpgitem::zweaponhandle} at location of victim
send "&eYou just found a &r&2Zombified weapon handle&r&a 1%% drop chance" to attacker
play sound "level_up" to attacker
launch "burst" firework at location of victim timed 0 coloured "light_blue" #IDK FIREWORKS ERROR HERE
also theres an error with a crafting recipe with custom items i have already defined
Code:
on load:
register new shaped recipe for iron sword named "&l&7Zombie sword" using air, {rpgitem::zsteelblock}, air, air, {rpgitem::zsteelblock}, air, {rpgitem::zweaponhandle}, air #IDK RECIPES ERROR HERE
someone please help me