execute if score world MultiplayerScaling matches ..4 run scoreboard players set world MobAmount 1
execute if score world MultiplayerScaling matches 5.. run scoreboard players set world MobAmount 2

execute if score world MultiplayerScaling matches ..4 run title @a subtitle [{"text":"[MINIBOSS] ","color":"red","bold":true},{"text":"Automaton","color":"#8fa193","bold":true}]
execute if score world MultiplayerScaling matches 5.. run title @a subtitle [{"text":"[MINIBOSS] ","color":"red","bold":true},{"text":"Automatons","color":"#8fa193","bold":true}]

execute if score world MultiplayerScaling matches ..4 run summon iron_golem ~ ~50 ~ {DeathLootTable:"kiwi2:entities/25to30_point",Silent:1b,CustomNameVisible:0b,Health:150f,AngerTime:4000000,Tags:["wave_mob","automaton"],attributes:[{id:"minecraft:armor",base:30},{id:"minecraft:attack_damage",base:12},{id:"minecraft:attack_knockback",base:5},{id:"minecraft:knockback_resistance",base:1},{id:"minecraft:max_health",base:150},{id:"minecraft:movement_speed",base:0.25},{id:"minecraft:scale",base:2},{id:"minecraft:step_height",base:2},{id:"burning_time",base:0},{id:explosion_knockback_resistance,base:1}]}

execute if score world MultiplayerScaling matches 5.. run summon iron_golem ~ ~50 ~ {DeathLootTable:"kiwi2:entities/25to30_point",Silent:1b,CustomNameVisible:0b,Health:150f,AngerTime:4000000,Tags:["wave_mob","automaton"],attributes:[{id:"minecraft:armor",base:30},{id:"minecraft:attack_damage",base:12},{id:"minecraft:attack_knockback",base:5},{id:"minecraft:knockback_resistance",base:1},{id:"minecraft:max_health",base:150},{id:"minecraft:movement_speed",base:0.25},{id:"minecraft:scale",base:2},{id:"minecraft:step_height",base:2},{id:"burning_time",base:0},{id:explosion_knockback_resistance,base:1}]}
execute if score world MultiplayerScaling matches 5.. run summon iron_golem ~ ~50 ~ {DeathLootTable:"kiwi2:entities/25to30_point",Silent:1b,CustomNameVisible:0b,Health:150f,AngerTime:4000000,Tags:["wave_mob","automaton"],attributes:[{id:"minecraft:armor",base:30},{id:"minecraft:attack_damage",base:12},{id:"minecraft:attack_knockback",base:5},{id:"minecraft:knockback_resistance",base:1},{id:"minecraft:max_health",base:150},{id:"minecraft:movement_speed",base:0.25},{id:"minecraft:scale",base:2},{id:"minecraft:step_height",base:2},{id:"burning_time",base:0},{id:explosion_knockback_resistance,base:1}]}

spreadplayers 0 0 1 20 false @e[type=iron_golem,tag=wave_mob,tag=automaton]
execute as @e[type=minecraft:iron_golem,tag=wave_mob] run damage @s 0 minecraft:generic by @r[gamemode=survival]