execute if score @s vb.dummy1 matches 10 unless entity @s[tag=vb.name_tag.silence] run playsound vb:mob.drifter.hurt hostile @a[distance=..16] ~ ~ ~ 1 1

item modify entity @s armor.head {function:"minecraft:set_components",components:{"minecraft:custom_model_data":{flags:[1b]}}}
item modify entity @s weapon.mainhand {function:"minecraft:set_components",components:{"minecraft:custom_model_data":{flags:[1b]}}}
item modify entity @s weapon.offhand {function:"minecraft:set_components",components:{"minecraft:custom_model_data":{flags:[1b]}}}
item modify entity @s armor.chest {function:"minecraft:set_components",components:{"minecraft:equippable":{slot:"chest",asset_id:"vb:custom_mob/drifter_hurt"}}}

execute if score @s vb.dummy1 matches 1 run item modify entity @s armor.head {function:"minecraft:set_components",components:{"minecraft:custom_model_data":{flags:[0b]}}}
execute if score @s vb.dummy1 matches 1 run item modify entity @s weapon.mainhand {function:"minecraft:set_components",components:{"minecraft:custom_model_data":{flags:[0b]}}}
execute if score @s vb.dummy1 matches 1 run item modify entity @s weapon.offhand {function:"minecraft:set_components",components:{"minecraft:custom_model_data":{flags:[0b]}}}
execute if score @s vb.dummy1 matches 1 run item modify entity @s armor.chest {function:"minecraft:set_components",components:{"minecraft:equippable":{slot:"chest",asset_id:"vb:custom_mob/drifter"}}}
