
scoreboard players operation $temp main = @s kills
function f:data/stats/score
scoreboard players add @s temp 300
scoreboard players add @s temp2 400

#Limit
scoreboard players set @s[scores={kills=9999..}] temp 399
scoreboard players set @s[scores={kills=9999..}] temp2 499

#Items
execute store result block 314 103 -335 Items[0].tag.CustomModelData int 1 run scoreboard players get @s temp
item replace entity @s inventory.2 from block 314 103 -335 container.0

execute store result block 314 103 -335 Items[0].tag.CustomModelData int 1 run scoreboard players get @s temp2
item replace entity @s[scores={kills=100..}] inventory.3 from block 314 103 -335 container.0
item replace entity @s[scores={kills=..99}] inventory.3 with lime_dye{CustomModelData:70,display:{Name:'""'},Stats:1}