function thepa:shoot/minigun/sounds

$execute if items entity @s weapon.mainhand minecraft:warped_fungus_on_a_stick[minecraft:item_model="minecraft:guns/minigun"] run return run item modify entity @s weapon.mainhand [{function:"minecraft:set_components",components:{"minecraft:item_model":"minecraft:guns/minigun_rot"}},{function:"minecraft:set_attributes",modifiers:[{attribute:"minecraft:attack_speed",id:"attspeed",amount:{type:"minecraft:score",target:"this",score:"delay_calculator",scale:0.0001},operation:"add_multiplied_base",slot:"mainhand"},{attribute:"minecraft:movement_speed",id:"movspeed",amount:$(debuff),operation:"add_multiplied_base",slot:"mainhand"},{attribute:"minecraft:entity_interaction_range",id:"intdistance",amount:-50,operation:"add_value",slot:"mainhand"},{attribute:"minecraft:jump_strength",id:"minigunjump",amount:-1,operation:"add_value",slot:"mainhand"}]}]

$execute if items entity @s weapon.mainhand minecraft:warped_fungus_on_a_stick[minecraft:item_model="minecraft:guns/minigun_rot"] run return run item modify entity @s weapon.mainhand [{function:"minecraft:set_components",components:{"minecraft:item_model":"minecraft:guns/minigun"}},{function:"minecraft:set_attributes",modifiers:[{attribute:"minecraft:attack_speed",id:"attspeed",amount:{type:"minecraft:score",target:"this",score:"delay_calculator",scale:0.0001},operation:"add_multiplied_base",slot:"mainhand"},{attribute:"minecraft:movement_speed",id:"movspeed",amount:$(debuff),operation:"add_multiplied_base",slot:"mainhand"},{attribute:"minecraft:entity_interaction_range",id:"intdistance",amount:-50,operation:"add_value",slot:"mainhand"},{attribute:"minecraft:jump_strength",id:"minigunjump",amount:-1,operation:"add_value",slot:"mainhand"}]}]
