execute as @e[type=drowned,tag=!plussed] run attribute @s water_movement_efficiency base set .5
execute as @e[type=drowned,tag=!plussed] run data merge entity @s {DeathLootTable:"survivalplus:entities/drowned"}
#execute as @e[type=drowned,tag=!plussed,predicate=survivalplus:spawnermob] run data merge entity @s {IsBaby:0b,Health:40,Tags:[plussed,spawner,rare],CanPickUpLoot:0b,equipment:{legs:{id:stick,components:{enchantments:{"survivalplus:spawner":1},custom_data:{del:tag}}},head:{id:spawner}},attributes:[{id:"armor",base:10f},{id:"knockback_resistance",base:0.7f},{id:"attack_knockback",base:5f},{id:"max_health",base:40f},{id:"armor_toughness",base:4f},{id:"movement_speed",base:0.2f}],drop_chances:{legs:0f,head:0f},attributes:[{id:"armor",base:10f},{id:"knockback_resistance",base:0.7f},{id:"attack_knockback",base:2f},{id:"max_health",base:40f},{id:"armor_toughness",base:4f},{id:"movement_speed",base:0.2f}],DeathLootTable:"survivalplus:entities/spawner_mob"}
#execute as @e[type=drowned,tag=!plussed,name="ZombieMan224",nbt={CustomNameVisible:1b},limit=1] run function survivalplus:tools/player/zombieman/drowned

execute if score hardmode hardmode matches 1 as @e[type=drowned,tag=!plussed,predicate=survivalplus:10chance] run data merge entity @s {IsBaby:0b,Health:40,CanPickUpLoot:0b,Tags:[plussed,rare,channeldrown],equipment:{mainhand:{id:"minecraft:trident",components:{enchantments:{channeling:1}}},feet:{id:"minecraft:chainmail_boots",components:{trim:{pattern:snout,material:iron}}},legs:{id:"minecraft:chainmail_leggings",components:{trim:{pattern:tide,material:iron}}},chest:{id:"minecraft:chainmail_chestplate",components:{trim:{pattern:tide,material:iron}}},head:{id:glass}},attributes:[{id:"armor",base:8f},{id:"armor_toughness",base:4f},{id:"movement_speed",base:0.3f},{id:"max_health",base:40f}],drop_chances:{feet:0f,legs:0f,chest:0f,head:0f}}
execute if score hardmode hardmode matches 1 as @e[type=drowned,tag=!plussed,predicate=survivalplus:10chance] at @s unless entity @a[distance=..15] run data merge entity @s {Health:80,Tags:[plussed,mineable,water],CanPickUpLoot:0b,equipment:{chest:{id:leather_chestplate,components:{dyed_color:1149325}},head:{id:prismarine_bricks}},attributes:[{id:"attack_damage",base:5f},{id:"movement_speed",base:0.2f},{id:"knockback_resistance",base:0.8f},{id:"max_health",base:80f},{id:"armor_toughness",base:5f},{id:"armor",base:12f}],drop_chances:{chest:0f,head:0f},DeathLootTable:"survivalplus:entities/water_mineable"}
execute if score hardmode hardmode matches 1 as @e[type=drowned,tag=!plussed,predicate=!survivalplus:25chance,predicate=survivalplus:1chance] run data merge entity @s {IsBaby:0b,Health:40,Tags:[plussed,spawner,rare,lowregen],CanPickUpLoot:0b,equipment:{legs:{id:stick,components:{enchantments:{"survivalplus:spawner":1},custom_data:{del:tag}}},head:{id:spawner}},attributes:[{id:"armor",base:10f},{id:"knockback_resistance",base:0.7f},{id:"attack_knockback",base:5f},{id:"max_health",base:40f},{id:"armor_toughness",base:4f},{id:"movement_speed",base:0.2f}],drop_chances:{legs:0f,head:0f},attributes:[{id:"armor",base:10f},{id:"knockback_resistance",base:0.7f},{id:"attack_knockback",base:2f},{id:"max_health",base:40f},{id:"armor_toughness",base:4f},{id:"movement_speed",base:0.2f}],DeathLootTable:"survivalplus:entities/spawner_mob"}
execute as @e[type=drowned,tag=!plussed,predicate=survivalplus:25chance] run data merge entity @s {CanPickUpLoot:1b,Tags:[plussed],attributes:[{id:"knockback_resistance",base:0.5f},{id:"movement_speed",base:0.26f},{id:"attack_damage",base:6.5f}],equipment:{mainhand:{id:trident}}}
execute as @e[type=drowned,tag=!plussed,predicate=survivalplus:25chance] if items entity @s weapon.mainhand air run item replace entity @s weapon.mainhand with minecraft:nautilus_shell
execute as @e[type=drowned,tag=!plussed,predicate=survivalplus:25chance] if items entity @s armor.head air run item replace entity @s armor.head with minecraft:turtle_helmet
execute as @e[type=drowned,tag=!plussed,predicate=survivalplus:25chance] if items entity @s armor.feet air run loot replace entity @s armor.feet loot survivalplus:flippers
execute as @e[type=drowned,tag=!plussed,predicate=survivalplus:25chance] run data merge entity @s {CanPickUpLoot:1b,Tags:[plussed],attributes:[{id:"knockback_resistance",base:0.5f},{id:"movement_speed",base:0.26f},{id:"attack_damage",base:6.5f}],equipment:{feet:{id:leather_boots,components:{dyed_color:3949738,enchantments:{"survivalplus:flippers":1}}}},drop_chances:{feet:0.25f}}
execute as @e[type=drowned,tag=!plussed] run data merge entity @s {CanPickUpLoot:1b,attributes:[{id:"knockback_resistance",base:0.5f},{id:"movement_speed",base:0.3f},{id:"attack_damage",base:6.5f}]}
execute as @e[type=drowned,tag=!plussed] run tag @s add plussed
execute as @e[type=drowned,nbt={IsBaby:1b}] run attribute @s attack_damage modifier add 3278053c-647e-46ad-bd07-6e787cb86722 -0.25 add_multiplied_base
execute as @e[type=drowned,nbt={IsBaby:1b}] run attribute @s movement_speed modifier add e031c685-396b-415a-94c3-965d460ff3b6 -0.4 add_multiplied_base

execute as @e[type=drowned] if items entity @s weapon.mainhand minecraft:nautilus_shell run data remove entity @s equipment.mainhand.components."minecraft:enchantments"