scoreboard players set $100 main 100

#Reset items
tag @a add no_slot_stats
tag @a[x=313,y=104,z=-339,distance=..6] remove no_slot_stats
clear @a[x=313,y=104,z=-339,distance=..6] lime_dye{Stats:1}

execute as @a if data entity @s Inventory[{Slot:9b,Count:1b}] if data entity @s Inventory[{Slot:10b,Count:1b}] if data entity @s Inventory[{Slot:11b,Count:1b}] if data entity @s Inventory[{Slot:12b,Count:1b}] if data entity @s Inventory[{Slot:13b,Count:1b}] if data entity @s Inventory[{Slot:14b,Count:1b}] if data entity @s Inventory[{Slot:15b,Count:1b}] if data entity @s Inventory[{Slot:16b,Count:1b}] if data entity @s Inventory[{Slot:17b,Count:1b}] run tag @s remove no_slot_stats
clear @a[tag=no_slot_stats] lime_dye{Stats:1}

#Items
item replace block 314 103 -335 container.0 with minecraft:lime_dye{display:{Name:'""'},CustomModelData:100,Stats:1}
item replace block 314 103 -335 container.1 with minecraft:lime_dye{display:{Name:'""'},CustomModelData:100,Stats:1}
item replace entity @a[tag=no_slot_stats] inventory.4 with minecraft:lime_dye{display:{Name:'""'},CustomModelData:69,Stats:1,Stats2:1}
item replace entity @a[tag=no_slot_stats] inventory.7 with minecraft:lime_dye{display:{Name:'""'},CustomModelData:70,Stats:1}
item replace entity @a[tag=no_slot_stats] inventory.8 with minecraft:lime_dye{display:{Name:'""'},CustomModelData:70,Stats:1}

#Types
execute as @a[tag=no_slot_stats] run function f:data/stats/wins
execute as @a[tag=no_slot_stats] run function f:data/stats/kills
execute as @a[tag=no_slot_stats] run function f:data/stats/pumpkins


