## Spawn Cave Spider
execute store result score @s vb.dummy1 run data get entity @s Pos[1]
execute store result score @s vb.dummy2 run random value 1..2
execute if score @s vb.dummy1 matches ..20 if score @s vb.dummy2 matches 1 run summon minecraft:cave_spider

## Random chance to be a baby
scoreboard players set @s vb.dummy1 1
execute unless data entity @s Passengers store result score @s vb.dummy1 run random value 1..20

## Make baby
execute if score @s vb.dummy1 matches 2 run function vb:summon/baby_spider
execute if score @s vb.dummy1 matches 2 run function vb:summon/baby_spider
execute if score @s vb.dummy1 matches 2 run function vb:summon/baby_spider
execute if score @s vb.dummy1 matches 2 run function vb:load_entity/kill