scoreboard players set world MobAmount 2
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":"Matriarch Spiders","color":"#80b7bc","bold":true}]
execute as @a at @s run summon cave_spider ~ ~50 ~ {DeathLootTable:"kiwi2:entities/custom_mob_items/matriarch_spider_loot",Health:120f,Tags:["wave_mob"],Passengers:[{id:"minecraft:spawner_minecart",Invulnerable:1b,Tags:["wave_mob"],SpawnCount:3,MinSpawnDelay:20,MaxSpawnDelay:20,RequiredPlayerRange:32,SpawnData:{entity:{id:"minecraft:cave_spider",DeathLootTable:"",Health:8f,Tags:["wave_mob"],attributes:[{id:"minecraft:max_health",base:8},{id:"minecraft:scale",base:0.5}]}},SpawnPotentials:[{data:{entity:{id:"minecraft:spider",DeathLootTable:"",Health:8f,Tags:["wave_mob"],attributes:[{id:"minecraft:max_health",base:8},{id:"minecraft:scale",base:0.5}]}},weight:1}]}],attributes:[{id:"minecraft:attack_damage",base:12},{id:"minecraft:knockback_resistance",base:1},{id:"minecraft:max_health",base:120},{id:"minecraft:movement_speed",base:0.4},{id:"minecraft:scale",base:3},{id:"minecraft:water_movement_efficiency",base:0.75}]}
execute as @a at @s run summon cave_spider ~ ~50 ~ {DeathLootTable:"kiwi2:entities/custom_mob_items/matriarch_spider_loot",Health:120f,Tags:["wave_mob"],Passengers:[{id:"minecraft:spawner_minecart",Invulnerable:1b,Tags:["wave_mob"],SpawnCount:3,MinSpawnDelay:20,MaxSpawnDelay:20,RequiredPlayerRange:32,SpawnData:{entity:{id:"minecraft:cave_spider",DeathLootTable:"",Health:8f,Tags:["wave_mob"],attributes:[{id:"minecraft:max_health",base:8},{id:"minecraft:scale",base:0.5}]}},SpawnPotentials:[{data:{entity:{id:"minecraft:spider",DeathLootTable:"",Health:8f,Tags:["wave_mob"],attributes:[{id:"minecraft:max_health",base:8},{id:"minecraft:scale",base:0.5}]}},weight:1}]}],attributes:[{id:"minecraft:attack_damage",base:12},{id:"minecraft:knockback_resistance",base:1},{id:"minecraft:max_health",base:120},{id:"minecraft:movement_speed",base:0.4},{id:"minecraft:scale",base:3},{id:"minecraft:water_movement_efficiency",base:0.75}]}
spreadplayers 0 0 1 20 false @e[type=cave_spider, tag=wave_mob]