dai_pon

Untitled

Mar 11th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. Options:
  2. none: of player with black stained glass pane named "&7." to close
  3. locked: of player with red concrete named "&c未開放" to close
  4. command /custom:
  5. trigger:
  6. open chest with 6 row named "武器の選択" to player
  7. wait 1 ticks
  8. format slot of 17 player with black stained glass pane named "&7." to close
  9. format slot of 26 player with black stained glass pane named "&7." to close
  10. format slot of 35 player with black stained glass pane named "&7." to close
  11. format slot of 18 player with black stained glass pane named "&7." to close
  12. format slot of 27 player with black stained glass pane named "&7." to close
  13. set {_loop1} to 0
  14. loop 10 times:
  15. format slot {_loop1} {@none}
  16. add 1 to {_loop1}
  17. set {_loop2} to 36
  18. loop 10 times:
  19. format slot {_loop2} {@none}
  20. add 1 to {_loop2}
  21. if player has permission "sk.ak47":
  22. format slot 10 of player with gold shovel named "&8AK-47" to close then run [execute player command "/ak"]
  23. else:
  24. format slot 10 {@locked}
  25. stop
  26. if player has permission "sk.m16":
  27. format slot 11 of player with wood axe named "&8M16" to close then run [execute player command "/m16"]
  28. else:
  29. format slot 11 {@locked}
  30. stop
  31. if player has permission "sk.ots":
  32. format slot 10 of player with gold shovel named "&8Ots-14" to close then run [execute player command "/ots"]
  33. else:
  34. format slot 10 {@locked}
  35. stop
  36. on right click holding book:
  37. name of held item contains "&e解放の書1"
  38. execute console command "pex user %player% add sk.ak47"
  39. set {_location} to location of player
  40. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 0.7 at {_location}
  41. send "&9>>> &e武器を開放しました!"
  42. on right click holding book:
  43. name of held item contains "&e解放の書2"
  44. execute console command "pex user %player% add sk.m16"
  45. set {_location} to location of player
  46. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 0.7 at {_location}
  47. send "&9>>> &e武器を開放しました!"
  48. command /ak:
  49. permission: sk.ak47
  50. trigger:
  51. set {_location} to location of player
  52. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  53. send "&9>>> &a武器を選択しました!"
  54. make console execute command "/scoreboard players set %player% main 7"
  55. command /m16:
  56. permission: sk.m16
  57. trigger:
  58. set {_location} to location of player
  59. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  60. send "&9>>> &a武器を選択しました!"
  61. make console execute command "/scoreboard players set %player% main 9"
  62. command /ots:
  63. permission: sk.ots
  64. trigger:
  65. set {_location} to location of player
  66. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  67. send "&9>>> &a武器を選択しました!"
  68. make console execute command "/scoreboard players set %player% main 8"
Advertisement
Add Comment
Please, Sign In to add comment