## Rare chance for Asher
execute store result score @s vb.dummy1 run random value 1..1200
execute if score @s vb.dummy1 matches 1 run data modify entity @s variant set value 'vb:asher'

execute if entity @s[nbt={variant:"vb:asher"}] run attribute @s minecraft:max_health modifier add vb.mob_attribute 5 add_value
execute if entity @s[nbt={variant:"vb:asher"}] run attribute @s minecraft:attack_damage modifier add vb.mob_attribute 1 add_value

execute if entity @s[nbt={variant:"minecraft:woods"}] run attribute @s minecraft:max_health modifier add vb.mob_attribute 3 add_value

execute if entity @s[nbt={variant:"minecraft:pale"}] run attribute @s minecraft:safe_fall_distance modifier add vb.mob_attribute 3 add_value

execute if entity @s[nbt={variant:"minecraft:black"}] run attribute @s minecraft:attack_damage modifier add vb.mob_attribute 2 add_value

execute if entity @s[nbt={variant:"minecraft:chestnut"}] run attribute @s minecraft:scale modifier add vb.mob_attribute -0.2 add_value

execute if entity @s[nbt={variant:"minecraft:striped"}] run attribute @s minecraft:movement_speed modifier add vb.mob_attribute 0.02 add_value

execute if entity @s[nbt={variant:"minecraft:spotted"}] run attribute @s minecraft:jump_strength modifier add vb.mob_attribute 0.5 add_value

execute if entity @s[nbt={variant:"minecraft:rusty"}] run attribute @s minecraft:knockback_resistance modifier add vb.mob_attribute 0.6 add_value

execute if entity @s[nbt={variant:"minecraft:ashen"}] run attribute @s minecraft:attack_knockback modifier add vb.mob_attribute 1.6 add_value

execute if entity @s[nbt={variant:"minecraft:snowy"}] run attribute @s minecraft:follow_range modifier add vb.mob_attribute 32 add_value

effect give @s minecraft:instant_health 1 200 true

## Baby code
execute store result score @s vb.dummy1 run data get entity @s Age
execute store result score @s vb.dummy2 run random value 1..2
# Duplicate baby Chestnuts
execute if entity @s[nbt={variant:"minecraft:chestnut"}] if score @s vb.dummy2 matches 1 if score @s vb.dummy1 matches ..-23999 run summon wolf ~ ~ ~ {variant:"minecraft:chestnut",Age:-23998}
