execute as @e[type=skeleton,tag=!plussed,predicate=survivalplus:20chance,predicate=survivalplus:overworld] run data merge entity @s {CustomName:{"text":"Living Armor"},Health:30,CanPickUpLoot:0b,Tags:[blood,plussed,dupe,larmor,armorable,rerare],active_effects:[{id:invisibility,duration:-1,show_particles:0b}],equipment:{mainhand:{id:iron_sword},feet:{id:iron_boots},legs:{id:iron_leggings,components:{enchantments:{"survivalplus:sprinter":1}}},chest:{id:iron_chestplate},head:{id:iron_helmet,components:{trim:{pattern:vex,material:iron}}}},drop_chances:{feet:0f,legs:0.15f,chest:0f,head:0f},attributes:[{id:"attack_damage",base:6f},{id:"knockback_resistance",base:.5f},{id:"movement_speed",base:0.23f},{id:"max_health",base:30f}],DeathLootTable:"survivalplus:entities/living_armor"}
effect give @e[tag=larmor] invisibility infinite 0 true
execute at @e[tag=dupe] unless entity @e[predicate=survivalplus:rerare,distance=..100] run summon skeleton
execute if score hardmode hardmode matches 1 at @e[type=skeleton,tag=!plussed,predicate=survivalplus:overworld,predicate=survivalplus:surface,predicate=survivalplus:1chance,predicate=survivalplus:50chance] unless entity @a[distance=..20] run summon skeleton_horse ~ ~ ~ {SkeletonTrap:1b,Age:-9999,Tags:[blood]}
tag @e[tag=blood,tag=dupe] remove dupe