tag @s add scalewear
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..5}] 0 100 0 execute @s[rm=200] ~ ~ ~ replaceitem entity @s slot.armor.head 0 leather_helmet
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..5}] 0 100 0 execute @s[rm=200] ~ ~ ~ replaceitem entity @s slot.armor.chest 0 leather_chestplate
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..5}] 0 100 0 execute @s[rm=200] ~ ~ ~ replaceitem entity @s slot.armor.legs 0 leather_leggings
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..5}] 0 100 0 execute @s[rm=200] ~ ~ ~ replaceitem entity @s slot.armor.feet 0 leather_boots
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..5}] 0 100 0 execute @s[rm=200] ~ ~ ~ replaceitem entity @s slot.weapon.mainhand 0 wooden_sword

scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=500] ~ ~ ~ replaceitem entity @s slot.armor.head 0 leather_helmet
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=500] ~ ~ ~ replaceitem entity @s slot.armor.chest 0 leather_chestplate
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=500] ~ ~ ~ replaceitem entity @s slot.armor.legs 0 leather_leggings
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=500] ~ ~ ~ replaceitem entity @s slot.armor.feet 0 leather_boots
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=500] ~ ~ ~ replaceitem entity @s slot.weapon.mainhand 0 wooden_sword

scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=800] ~ ~ ~ replaceitem entity @s slot.armor.head 0 golden_helmet
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=800] ~ ~ ~ replaceitem entity @s slot.armor.chest 0 golden_chestplate
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=800] ~ ~ ~ replaceitem entity @s slot.armor.legs 0 golden_leggings
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=800] ~ ~ ~ replaceitem entity @s slot.armor.feet 0 golden_boots
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=800] ~ ~ ~ replaceitem entity @s slot.weapon.mainhand 0 golden_sword

scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=1200] ~ ~ ~ replaceitem entity @s slot.armor.head 0 chainmail_helmet
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=1200] ~ ~ ~ replaceitem entity @s slot.armor.chest 0 chainmail_chestplate
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=1200] ~ ~ ~ replaceitem entity @s slot.armor.legs 0 chainmail_leggings
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=1200] ~ ~ ~ replaceitem entity @s slot.armor.feet 0 chainmail_boots
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=1200] ~ ~ ~ replaceitem entity @s slot.weapon.mainhand 0 stone_sword

scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..5}] 0 100 0 execute @s[rm=1600] ~ ~ ~ replaceitem entity @s slot.armor.head 0 turtle_helmet

scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=2000] ~ ~ ~ replaceitem entity @s slot.armor.head 0 iron_helmet
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=2000] ~ ~ ~ replaceitem entity @s slot.armor.chest 0 iron_chestplate
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=2000] ~ ~ ~ replaceitem entity @s slot.armor.legs 0 iron_leggings
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=2000] ~ ~ ~ replaceitem entity @s slot.armor.feet 0 iron_boots
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=2000] ~ ~ ~ replaceitem entity @s slot.weapon.mainhand 0 iron_sword

scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..5}] 0 100 0 execute @s[rm=2500] ~ ~ ~ replaceitem entity @s slot.weapon.mainhand 0 trident

scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=3000] ~ ~ ~ replaceitem entity @s slot.armor.head 0 diamond_helmet
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=3000] ~ ~ ~ replaceitem entity @s slot.armor.chest 0 diamond_chestplate
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=3000] ~ ~ ~ replaceitem entity @s slot.armor.legs 0 diamond_leggings
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=3000] ~ ~ ~ replaceitem entity @s slot.armor.feet 0 diamond_boots
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=3000] ~ ~ ~ replaceitem entity @s slot.weapon.mainhand 0 diamond_sword

scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..25}] 0 100 0 execute @s[rm=4000] ~ ~ ~ replaceitem entity @s slot.armor.head 0 diamond_helmet
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..25}] 0 100 0 execute @s[rm=4000] ~ ~ ~ replaceitem entity @s slot.armor.chest 0 diamond_chestplate
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..25}] 0 100 0 execute @s[rm=4000] ~ ~ ~ replaceitem entity @s slot.armor.legs 0 diamond_leggings
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..25}] 0 100 0 execute @s[rm=4000] ~ ~ ~ replaceitem entity @s slot.armor.feet 0 diamond_boots
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..25}] 0 100 0 execute @s[rm=4000] ~ ~ ~ replaceitem entity @s slot.weapon.mainhand 0 diamond_sword

scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=5000] ~ ~ ~ replaceitem entity @s slot.armor.head 0 netherite_helmet
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=5000] ~ ~ ~ replaceitem entity @s slot.armor.chest 0 netherite_chestplate
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=5000] ~ ~ ~ replaceitem entity @s slot.armor.legs 0 netherite_leggings
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=5000] ~ ~ ~ replaceitem entity @s slot.armor.feet 0 netherite_boots
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..15}] 0 100 0 execute @s[rm=5000] ~ ~ ~ replaceitem entity @s slot.weapon.mainhand 0 netherite_sword

scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..25}] 0 100 0 execute @s[rm=6000] ~ ~ ~ replaceitem entity @s slot.armor.head 0 netherite_helmet
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..25}] 0 100 0 execute @s[rm=6000] ~ ~ ~ replaceitem entity @s slot.armor.chest 0 netherite_chestplate
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..25}] 0 100 0 execute @s[rm=6000] ~ ~ ~ replaceitem entity @s slot.armor.legs 0 netherite_leggings
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..25}] 0 100 0 execute @s[rm=6000] ~ ~ ~ replaceitem entity @s slot.armor.feet 0 netherite_boots
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..25}] 0 100 0 execute @s[rm=6000] ~ ~ ~ replaceitem entity @s slot.weapon.mainhand 0 netherite_sword

scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..35}] 0 100 0 execute @s[rm=7000] ~ ~ ~ replaceitem entity @s slot.armor.head 0 netherite_helmet
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..35}] 0 100 0 execute @s[rm=7000] ~ ~ ~ replaceitem entity @s slot.armor.chest 0 netherite_chestplate
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..35}] 0 100 0 execute @s[rm=7000] ~ ~ ~ replaceitem entity @s slot.armor.legs 0 netherite_leggings
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..35}] 0 100 0 execute @s[rm=7000] ~ ~ ~ replaceitem entity @s slot.armor.feet 0 netherite_boots
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..35}] 0 100 0 execute @s[rm=7000] ~ ~ ~ replaceitem entity @s slot.weapon.mainhand 0 netherite_sword

scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..75}] 0 100 0 execute @s[rm=10000] ~ ~ ~ replaceitem entity @s slot.armor.head 0 netherite_helmet
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..75}] 0 100 0 execute @s[rm=10000] ~ ~ ~ replaceitem entity @s slot.armor.chest 0 netherite_chestplate
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..75}] 0 100 0 execute @s[rm=10000] ~ ~ ~ replaceitem entity @s slot.armor.legs 0 netherite_leggings
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..75}] 0 100 0 execute @s[rm=10000] ~ ~ ~ replaceitem entity @s slot.armor.feet 0 netherite_boots
scoreboard players random @s scalingwear 0 100
execute @s[scores={scalingwear=0..75}] 0 100 0 execute @s[rm=10000] ~ ~ ~ replaceitem entity @s slot.weapon.mainhand 0 netherite_sword