## Give a Pickaxe underground
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..170
execute if score @s vb.dummy1 matches ..20 unless items entity @s weapon.mainhand * if score @s vb.dummy2 matches 1..30 run item replace entity @s weapon.mainhand with minecraft:wooden_pickaxe
execute if score @s vb.dummy1 matches ..20 unless items entity @s weapon.mainhand * if score @s vb.dummy2 matches 31..60 run item replace entity @s weapon.mainhand with minecraft:stone_pickaxe
execute if score @s vb.dummy1 matches ..20 unless items entity @s weapon.mainhand * if score @s vb.dummy2 matches 61..90 run item replace entity @s weapon.mainhand with minecraft:golden_pickaxe
execute if score @s vb.dummy1 matches ..20 unless items entity @s weapon.mainhand * if score @s vb.dummy2 matches 91..95 run item replace entity @s weapon.mainhand with minecraft:copper_pickaxe
execute if score @s vb.dummy1 matches ..20 unless items entity @s weapon.mainhand * if score @s vb.dummy2 matches 96..100 run item replace entity @s weapon.mainhand with minecraft:iron_pickaxe
execute if items entity @s weapon.mainhand #minecraft:pickaxes run data merge entity @s {drop_chances:{mainhand:0.6f}}

## Spawn Variants
# Drifer
execute if biome ~ ~ ~ #vb:has_snow run function vb:summon/drifter {extra_tag:''}
execute if biome ~ ~ ~ #vb:has_snow run function vb:load_entity/kill
execute if entity @s[tag=vb.custom_mob_soul.drifter] run function vb:summon/drifter {extra_tag:'"vb.custom_spawner",'}
execute if entity @s[tag=vb.custom_mob_soul.drifter] run function vb:load_entity/kill
# Blooming
execute if biome ~ ~ ~ minecraft:lush_caves run function vb:summon/blooming {extra_tag:''}
execute if biome ~ ~ ~ minecraft:lush_caves run function vb:load_entity/kill
execute if entity @s[tag=vb.custom_mob_soul.blooming] run function vb:summon/blooming {extra_tag:'"vb.custom_spawner",'}
execute if entity @s[tag=vb.custom_mob_soul.blooming] run function vb:load_entity/kill

## Make this a true zombie (it can drop zombie souls)
tag @s add vb.true_mob.zombie