check.mcfunction 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. execute if score @s buy_trigger matches 1..18 at @s unless entity @s[x=-3,z=-63,y=6,dx=25,dy=6,dz=30] run function item:shop/error
  2. execute if score @s buy_trigger matches 19..21 at @s unless entity @s[x=1,z=-63,y=20,dx=5,dy=4,dz=6] run function item:shop/error
  3. execute if score @s buy_trigger matches 100..108 at @s unless entity @s[x=-22,z=-75,y=18,dx=10,dy=4,dz=5] run function item:shop/error
  4. execute if score @s buy_trigger matches 999 at @s unless entity @s[x=-3,z=-49,y=27,dx=5,dy=4,dz=5] run function item:shop/charity
  5. execute if score @s buy_trigger matches 1 if score $state mem matches 0 run function item:shop/buy_apple1
  6. execute if score @s buy_trigger matches 2 if score $state mem matches 0 run function item:shop/buy_apple2
  7. execute if score @s buy_trigger matches 3 if score $state mem matches 0 run function item:shop/buy_armor1
  8. execute if score @s buy_trigger matches 5 if score $state mem matches 0 run function item:shop/buy_armor2
  9. execute if score @s buy_trigger matches 6 if score $state mem matches 0 run function item:shop/buy_armor3
  10. execute if score @s buy_trigger matches 7 if score $state mem matches 0 run function item:shop/buy_arrow1
  11. execute if score @s buy_trigger matches 8 if score $state mem matches 0 run function item:shop/buy_arrow2
  12. execute if score @s buy_trigger matches 9 if score $state mem matches 0 run function item:shop/buy_arrow3
  13. execute if score @s buy_trigger matches 10 if score $state mem matches 0 run function item:shop/buy_orange
  14. execute if score @s buy_trigger matches 11 if score $state mem matches 0 run function item:shop/buy_weapon1
  15. execute if score @s buy_trigger matches 12 if score $state mem matches 0 run function item:shop/buy_weapon2
  16. execute if score @s buy_trigger matches 13 if score $state mem matches 0 run function item:shop/buy_weapon3
  17. execute if score @s buy_trigger matches 14 if score $state mem matches 0 run function item:shop/buy_weapon4
  18. execute if score @s buy_trigger matches 15 if score $state mem matches 0 run function item:shop/buy_bow
  19. execute if score @s buy_trigger matches 16 if score $state mem matches 0 run function item:shop/buy_potion_resist
  20. execute if score @s buy_trigger matches 17 if score $state mem matches 0 run function item:shop/buy_potion_speed1
  21. execute if score @s buy_trigger matches 18 if score $state mem matches 0 run function item:shop/buy_potion_speed2
  22. execute if score @s buy_trigger matches 19 if score $state mem matches 0 run function item:shop/buy_firework
  23. execute if score @s buy_trigger matches 20 if score $state mem matches 0 run function item:shop/buy_bgm
  24. execute if score @s buy_trigger matches 21 if score $state mem matches 0 run function item:shop/buy_pig
  25. execute if score @s buy_trigger matches 100 if score $state mem matches 0 run function item:shop/buy_particle_system
  26. execute if score @s buy_trigger matches 101 if score $state mem matches 0 run function item:shop/buy_particle_close
  27. execute if score @s buy_trigger matches 102 if score $state mem matches 0 run function item:shop/buy_particle0
  28. execute if score @s buy_trigger matches 103 if score $state mem matches 0 run function item:shop/buy_particle1
  29. execute if score @s buy_trigger matches 104 if score $state mem matches 0 run function item:shop/buy_particle2
  30. execute if score @s buy_trigger matches 105 if score $state mem matches 0 run function item:shop/buy_particle3
  31. execute if score @s buy_trigger matches 106 if score $state mem matches 0 run function item:shop/buy_particle4
  32. execute if score @s buy_trigger matches 107 if score $state mem matches 0 run function item:shop/buy_particle5
  33. execute if score @s buy_trigger matches 108 if score $state mem matches 0 run function item:shop/buy_particle6
  34. execute if score @s buy_trigger matches 999 if score $state mem matches 0 run function item:shop/buy_dice
  35. execute if score @s buy_trigger matches 85304 if score $state mem matches 0 run function item:shop/puzzle
  36. execute if score @s buy_trigger matches 114514 if score $state mem matches 0 run function item:shop/buy_easter_egg
  37. scoreboard players set @s buy_trigger 0
  38. execute if score $state mem matches 0 run scoreboard players enable @s buy_trigger