I'm trying to make a spell that has a purple firework explosion as it's animation, but I can't figure out how to use the "play effect" effect. Can someone help me? Here is my current code:
code_language.skript:
on right click on zombie or skeleton or wolf or wither or slime or creeper or zombie pigman or wither skeleton:
player is holding a book named "&2Ultima"
player has 300 redstone
remove 300 redstone from the player
play effect "purple firework explosion" at target entity
wait 2 seconds
damage entity by 4999.5 hearts