## All this data is copied and pasted from the summon function for Sunken Drowneds, but with the Motion NBT removed
data merge entity @s {CustomName:{translate:"vb.custom_mob.sunken"},Tags:["vb.custom_mob.sunken","vb.custom_mob","vb.loaded","vb.custom_sounds","vb.new_summon","vb.burns_in_daylight"],DeathLootTable:"vb:entities/sunken",IsBaby:0,CanPickUpLoot:0b,LeftHanded:0b,drop_chances:{head:0f,chest:0f,legs:0f},equipment:{legs:{id:"minecraft:paper",components:{"minecraft:custom_model_data":{flags:[0b]},"minecraft:equippable":{"slot":"legs","asset_id":"vb:custom_mob/sunken"}}},chest:{id:"minecraft:paper",components:{"minecraft:custom_model_data":{flags:[0b]},"minecraft:equippable":{"slot":"chest","asset_id":"vb:custom_mob/sunken"}}},head:{id:"minecraft:paper",components:{"minecraft:custom_model_data":{flags:[0b]},"minecraft:item_model":"vb:custom_mob/sunken_head"}}}}

team join vb.no_nametag @s

execute store result score #VB vb.dummy1 run random value 1..3
execute if score #VB vb.dummy1 matches 1 run item replace entity @s weapon.mainhand with minecraft:trident
execute if score #VB vb.dummy1 matches 2 run item replace entity @s weapon.mainhand with minecraft:iron_sword
execute if score #VB vb.dummy1 matches 3 run item replace entity @s weapon.mainhand with minecraft:iron_axe

attribute @s minecraft:movement_speed modifier add vb.mob_attribute 0.1 add_value
attribute @s minecraft:armor modifier add vb.mob_attribute 6 add_value

## Remove tag
tag @s remove vb.convert_to.sunken