check.mcfunction 396 B

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