scoreboard players set world MobAmount 7
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":"Beholders","color":"#004a20","bold":true}]
execute as @a at @s run summon skeleton ~ ~50 ~ {DeathLootTable:"kiwi2:entities/3to5_point",NoGravity:1b,Silent:1b,NoAI:0b,Health:150f,Tags:["wave_mob","beholder"],ArmorItems:[{},{},{},{id:"minecraft:player_head",count:1,components:{"minecraft:profile":{id:[I;-1276442848,-1903476436,-1531712645,1958857534],properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTk4YTQ5Y2E1NGMzZWE2N2E4NmVjOGI5ZjE2YmRmNDZhYTVlZmM1YWVlZmI3YTE5Y2NjYzc5NjJlODIxYTU5OSJ9fX0="}]}}}],active_effects:[{id:"minecraft:invisibility",amplifier:1,duration:399999600,show_particles:0b}],attributes:[{id:"minecraft:armor",base:10},{id:"minecraft:attack_damage",base:0},{id:"minecraft:max_health",base:150}]}
execute as @a at @s run summon skeleton ~ ~50 ~ {DeathLootTable:"kiwi2:entities/2to4_point",NoGravity:1b,Silent:1b,NoAI:0b,Health:150f,Tags:["wave_mob","beholder"],ArmorItems:[{},{},{},{id:"minecraft:player_head",count:1,components:{"minecraft:profile":{id:[I;-1276442848,-1903476436,-1531712645,1958857534],properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTk4YTQ5Y2E1NGMzZWE2N2E4NmVjOGI5ZjE2YmRmNDZhYTVlZmM1YWVlZmI3YTE5Y2NjYzc5NjJlODIxYTU5OSJ9fX0="}]}}}],active_effects:[{id:"minecraft:invisibility",amplifier:1,duration:399999600,show_particles:0b}],attributes:[{id:"minecraft:armor",base:10},{id:"minecraft:attack_damage",base:0},{id:"minecraft:max_health",base:150}]}
execute as @a at @s run summon skeleton ~ ~50 ~ {DeathLootTable:"kiwi2:entities/2to4_point",NoGravity:1b,Silent:1b,NoAI:0b,Health:150f,Tags:["wave_mob","beholder"],ArmorItems:[{},{},{},{id:"minecraft:player_head",count:1,components:{"minecraft:profile":{id:[I;-1276442848,-1903476436,-1531712645,1958857534],properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTk4YTQ5Y2E1NGMzZWE2N2E4NmVjOGI5ZjE2YmRmNDZhYTVlZmM1YWVlZmI3YTE5Y2NjYzc5NjJlODIxYTU5OSJ9fX0="}]}}}],active_effects:[{id:"minecraft:invisibility",amplifier:1,duration:399999600,show_particles:0b}],attributes:[{id:"minecraft:armor",base:10},{id:"minecraft:attack_damage",base:0},{id:"minecraft:max_health",base:150}]}
execute as @a at @s run summon skeleton ~ ~50 ~ {DeathLootTable:"kiwi2:entities/3to5_point",NoGravity:1b,Silent:1b,NoAI:0b,Health:150f,Tags:["wave_mob","beholder"],ArmorItems:[{},{},{},{id:"minecraft:player_head",count:1,components:{"minecraft:profile":{id:[I;-1276442848,-1903476436,-1531712645,1958857534],properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTk4YTQ5Y2E1NGMzZWE2N2E4NmVjOGI5ZjE2YmRmNDZhYTVlZmM1YWVlZmI3YTE5Y2NjYzc5NjJlODIxYTU5OSJ9fX0="}]}}}],active_effects:[{id:"minecraft:invisibility",amplifier:1,duration:399999600,show_particles:0b}],attributes:[{id:"minecraft:armor",base:10},{id:"minecraft:attack_damage",base:0},{id:"minecraft:max_health",base:150}]}
execute as @a at @s run summon skeleton ~ ~50 ~ {DeathLootTable:"kiwi2:entities/2to4_point",NoGravity:1b,Silent:1b,NoAI:0b,Health:150f,Tags:["wave_mob","beholder"],ArmorItems:[{},{},{},{id:"minecraft:player_head",count:1,components:{"minecraft:profile":{id:[I;-1276442848,-1903476436,-1531712645,1958857534],properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTk4YTQ5Y2E1NGMzZWE2N2E4NmVjOGI5ZjE2YmRmNDZhYTVlZmM1YWVlZmI3YTE5Y2NjYzc5NjJlODIxYTU5OSJ9fX0="}]}}}],active_effects:[{id:"minecraft:invisibility",amplifier:1,duration:399999600,show_particles:0b}],attributes:[{id:"minecraft:armor",base:10},{id:"minecraft:attack_damage",base:0},{id:"minecraft:max_health",base:150}]}
execute as @a at @s run summon skeleton ~ ~50 ~ {DeathLootTable:"kiwi2:entities/2to4_point",NoGravity:1b,Silent:1b,NoAI:0b,Health:150f,Tags:["wave_mob","beholder"],ArmorItems:[{},{},{},{id:"minecraft:player_head",count:1,components:{"minecraft:profile":{id:[I;-1276442848,-1903476436,-1531712645,1958857534],properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTk4YTQ5Y2E1NGMzZWE2N2E4NmVjOGI5ZjE2YmRmNDZhYTVlZmM1YWVlZmI3YTE5Y2NjYzc5NjJlODIxYTU5OSJ9fX0="}]}}}],active_effects:[{id:"minecraft:invisibility",amplifier:1,duration:399999600,show_particles:0b}],attributes:[{id:"minecraft:armor",base:10},{id:"minecraft:attack_damage",base:0},{id:"minecraft:max_health",base:150}]}
execute as @a at @s run summon skeleton ~ ~50 ~ {DeathLootTable:"kiwi2:entities/3to5_point",NoGravity:1b,Silent:1b,NoAI:0b,Health:150f,Tags:["wave_mob","beholder"],ArmorItems:[{},{},{},{id:"minecraft:player_head",count:1,components:{"minecraft:profile":{id:[I;-1276442848,-1903476436,-1531712645,1958857534],properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTk4YTQ5Y2E1NGMzZWE2N2E4NmVjOGI5ZjE2YmRmNDZhYTVlZmM1YWVlZmI3YTE5Y2NjYzc5NjJlODIxYTU5OSJ9fX0="}]}}}],active_effects:[{id:"minecraft:invisibility",amplifier:1,duration:399999600,show_particles:0b}],attributes:[{id:"minecraft:armor",base:10},{id:"minecraft:attack_damage",base:0},{id:"minecraft:max_health",base:150}]}
execute as @e[type=skeleton,tag=wave_mob,tag=beholder] store result score @s mob_first_skill_counter run random value 0..100
execute as @e[type=skeleton,tag=wave_mob,tag=beholder] store result score @s mob_second_skill_counter run random value 0..200
spreadplayers 0 0 1 30 false @e[type=skeleton,tag=wave_mob,tag=beholder]