scoreboard players set world MobAmount 1
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":"Magi","color":"#a23636","bold":true}]
execute as @a at @s run summon stray ~ ~ ~ {DeathLootTable:"kiwi2:entities/40to50_point",NoAI:1b,Silent:1b,Health:192f,Tags:["enemy_magus","wave_mob"],HandItems:[{id:"minecraft:stick",count:1,components:{"minecraft:enchantment_glint_override":true}},{id:"minecraft:written_book",count:1,components:{"minecraft:enchantment_glint_override":true}}],ArmorItems:[{id:"minecraft:leather_boots",count:1,components:{"minecraft:dyed_color":10566973}},{id:"minecraft:leather_leggings",count:1,components:{"minecraft:dyed_color":11354690}},{id:"minecraft:leather_chestplate",count:1,components:{"minecraft:dyed_color":11745593}},{id:"minecraft:player_head",count:1,components:{"minecraft:profile":{id:[I;1628564363,-1704109287,-2019739351,-1517138425],properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNWJiYzAwMGE0MGEyMWQ1NjcwNTg1NjIwNjZiZmE5NWRiYTk1MjM0MGQzYTYxZjE2YjdmNDIwYTRiYjcxYTBkZSJ9fX0="}]}}}],attributes:[{id:"minecraft:armor",base:5},{id:"minecraft:jump_strength",base:0},{id:"minecraft:knockback_resistance",base:0},{id:"minecraft:movement_speed",base:0},{id:"follow_range",base:0},{id:"max_health",base:256}],active_effects:[{id:"fire_resistance",duration:999999,show_particles:false,amplifier:255}]}
spreadplayers 0 0 1 20 false @e[type=stray,tag=wave_mob,tag=enemy_magus]
scoreboard objectives add enemy_magus_spell_pick dummy