dai_pon

Untitled

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