data merge entity @s {IsBaby:0b,CanBreakDoors:0b,CustomName:{"text":"ZombieMan224"},CustomNameVisible:1b,Health:20,CanPickUpLoot:0b,PersistenceRequired:1b,Tags:[player1,rare,plussed,player,special,nopoly],drop_chances:{mainhand:1f,offhand:1f,feet:1f,legs:1f,chest:1f,head:0f},attributes:[{id:"max_health",base:20f},{id:"movement_speed",base:0.3f},{id:"attack_damage",base:-.5f},{id:"follow_range",base:15f}]}
execute unless score hardmode hardmode matches 1 run data merge entity @s {DeathLootTable:"survivalplus:entities/player/1/loot"}
execute if score hardmode hardmode matches 1 run data merge entity @s {DeathLootTable:"survivalplus:entities/player/1/loot2"}

execute unless score hardmode hardmode matches 1 run function survivalplus:tools/player/armor/lvl1
execute unless score hardmode hardmode matches 1 run item replace entity @s weapon.mainhand with stone_sword
execute if score hardmode hardmode matches 1 run function survivalplus:tools/player/armor/lvl2
execute if score hardmode hardmode matches 1 run item replace entity @s weapon.mainhand with iron_sword
execute if score hardmode hardmode matches 1 if predicate survivalplus:50chance run item modify entity @s weapon.mainhand survivalplus:enchant16