item replace entity @p[tag=mrp] weapon.offhand with air
effect give @p[tag=mrp] fire_resistance 5 5 true
give @p[tag=mrp] minecraft:blaze_powder[minecraft:custom_name="magicians red",minecraft:piercing_weapon={},custom_data={mr:true},enchantments={"template:fire_punch": 1 },minecraft:consumable={consume_seconds:0.05,has_consume_particles:false,sound:{sound_id:""}},minecraft:use_cooldown={seconds: 5}] 1
tag @p[tag=mrp] add punch
playsound minecraft:entity.dragon_fireball.explode master @p[tag=mrp] ~ ~ ~ 20 2 1
tag @p[tag=mrp] remove mrp
execute at @p[tag=punch] run tp @e[tag=mr] ^ ^ ^1
execute as @e[tag=mr] run function template:magicians_red/animations/fire_balls/play
execute at @e[tag=mr,sort=nearest,limit=1] run summon minecraft:fireball ^ ^1 ^1
schedule function template:magicians_red/settle 4t