scoreboard players set world MobAmount 11
execute store result score world TotalMobAmount run scoreboard players operation world MobAmount *= world MultiplayerScaling
title @a subtitle [{"color":"green","score":{"name":"world","objective":"TotalMobAmount"}}," ",{"text":"Piglins","color":"#e37200","bold":true}]
execute as @a at @s run summon piglin ~ ~50 ~ {IsImmuneToZombification:1b,Tags:["wave_mob"],DeathLootTable:"kiwi2:entities/mob_loot_drops/piglin_unarmed"}
execute as @a at @s run summon piglin ~ ~50 ~ {IsImmuneToZombification:1b,Tags:["wave_mob"],DeathLootTable:"kiwi2:entities/mob_loot_drops/piglin_unarmed"}
execute as @a at @s run summon piglin ~ ~50 ~ {IsImmuneToZombification:1b,Tags:["wave_mob"],DeathLootTable:"kiwi2:entities/mob_loot_drops/piglin_ranged",HandItems:[{id:"minecraft:crossbow",count:1},{}]}
execute as @a at @s run summon piglin ~ ~50 ~ {IsImmuneToZombification:1b,Tags:["wave_mob"],DeathLootTable:"kiwi2:entities/mob_loot_drops/piglin_ranged",HandItems:[{id:"minecraft:crossbow",count:1},{}]}
execute as @a at @s run summon piglin ~ ~50 ~ {IsImmuneToZombification:1b,Tags:["wave_mob"],DeathLootTable:"kiwi2:entities/mob_loot_drops/piglin_melee",HandItems:[{id:"minecraft:golden_sword",count:1},{}]}
execute as @a at @s run summon piglin ~ ~50 ~ {IsImmuneToZombification:1b,Tags:["wave_mob"],DeathLootTable:"kiwi2:entities/mob_loot_drops/piglin_unarmed"}
execute as @a at @s run summon piglin ~ ~50 ~ {IsImmuneToZombification:1b,Tags:["wave_mob"],DeathLootTable:"kiwi2:entities/mob_loot_drops/piglin_unarmed"}
execute as @a at @s run summon piglin ~ ~50 ~ {IsImmuneToZombification:1b,Tags:["wave_mob"],DeathLootTable:"kiwi2:entities/mob_loot_drops/piglin_unarmed"}
execute as @a at @s run summon piglin ~ ~50 ~ {IsImmuneToZombification:1b,Tags:["wave_mob"],DeathLootTable:"kiwi2:entities/mob_loot_drops/piglin_ranged",HandItems:[{id:"minecraft:crossbow",count:1},{}]}
execute as @a at @s run summon piglin ~ ~50 ~ {IsImmuneToZombification:1b,Tags:["wave_mob"],DeathLootTable:"kiwi2:entities/mob_loot_drops/piglin_ranged",HandItems:[{id:"minecraft:crossbow",count:1},{}]}
execute as @a at @s run summon piglin ~ ~50 ~ {IsImmuneToZombification:1b,Tags:["wave_mob"],DeathLootTable:"kiwi2:entities/mob_loot_drops/piglin_melee",HandItems:[{id:"minecraft:golden_sword",count:1},{}]}
spreadplayers 0 0 1 20 false @e[type=piglin,tag=wave_mob]