execute as @e[type=bogged,tag=!plussed] run data remove entity @s equipment.mainhand.components."minecraft:enchantments"
execute as @e[type=bogged,tag=!plussed] run data merge entity @s {DeathLootTable:"survivalplus:entities/bogged"}
execute as @e[type=bogged,tag=!plussed,predicate=survivalplus:2chance] run data merge entity @s {CanPickUpLoot:0b,Health:25,Tags:[plussed,rare,bogged_archer,armorable,archerme,dropfix],equipment:{mainhand:{id:bow},feet:{id:leather_boots},legs:{id:leather_leggings},chest:{id:leather_chestplate},head:{id:leather_helmet}},drop_chances:{mainhand:0f,feet:0f,legs:0f,chest:0f,head:0f},attributes:[{id:"max_health",base:25f},{id:"knockback_resistance",base:0.5f},{id:"armor",base:6f}]}
execute as @e[tag=archerme] run function survivalplus:mobs/gear/archer_bogged
execute as @e[type=bogged,tag=!plussed,predicate=survivalplus:25chance] run data merge entity @s {Health:30,Tags:[plussed],CanPickUpLoot:0b,equipment:{mainhand:{id:iron_sword},feet:{id:chainmail_boots},legs:{id:chainmail_leggings},chest:{id:leather_chestplate},head:{id:leather_helmet}},drop_chances:{feet:0f,legs:0f,chest:0f,head:0f},attributes:[{id:"movement_speed",base:0.26f},{id:"knockback_resistance",base:0.5f},{id:"max_health",base:30f},{id:"armor_toughness",base:6f}]}
execute if score hardmode hardmode matches 1 as @e[type=bogged,nbt={equipment:{mainhand:{id:"minecraft:iron_sword"}}},tag=!poisoncheck] run function survivalplus:mobs/enchantpoison
execute as @e[type=bogged,tag=!plussed,predicate=survivalplus:10chance] run data merge entity @s {Health:25,Tags:[plussed],CanPickUpLoot:0b,LeftHanded:1b,equipment:{mainhand:{id:bow,components:{enchantments:{"survivalplus:long_shot":1}}}},drop_chances:{mainhand:0.25f},attributes:[{id:"knockback_resistance",base:0.5f},{id:"movement_speed",base:0.3f},{id:"max_health",base:25f},{id:"armor_toughness",base:4f}]}
execute as @e[type=bogged,tag=!plussed] run data merge entity @s {CanPickUpLoot:1b,Health:25,attributes:[{id:"knockback_resistance",base:0.5f},{id:"movement_speed",base:0.3f},{id:"max_health",base:25f},{id:"armor_toughness",base:4f}],equipment:{mainhand:{id:bow,components:{enchantments:{power:5}}}},drop_chances:{mainhand:0f}}
execute as @e[type=bogged,tag=!plussed] run tag @s add plussed