check.mcfunction 537 B

12345678
  1. execute if score @s buy_trigger matches 1 run function item:shop/buy_apple1
  2. execute if score @s buy_trigger matches 2 run function item:shop/buy_apple2
  3. execute if score @s buy_trigger matches 3 run function item:shop/buy_armor1
  4. execute if score @s buy_trigger matches 4 run function item:shop/buy_armor2
  5. execute if score @s buy_trigger matches 5 run function item:shop/buy_armor3
  6. execute if score @s buy_trigger matches 6 run function item:shop/buy_armor4
  7. scoreboard players set @s buy_trigger 0
  8. scoreboard players enable @s buy_trigger