Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.58 KB | None | 0 0
  1. ariables:
  2. {%player%.point} = 5
  3.  
  4. on death of player:
  5. if attacker is a player:
  6. message "<light green>+3point"
  7. add 3 to {%attacker%.point}
  8.  
  9. on rightclick with gold ingot:
  10. execute console command "/buymenu %player%"
  11.  
  12. command /buymenu <player> <text>:
  13. trigger:
  14. if arg 2 is "menu":
  15. open chest with 6 row named "<green>購入メニュー" to arg 1wait 1 tick
  16. format slot 1 of arg 1 with 260 named "&c食料購入メニュー" to close then run command "/buymenu %arg 1% food"
  17. format slot 2 of arg 1 with iron sword named "&c武器購入メニュー" to close then run command "/buymenu %arg 1% sword"
  18. format slot 3 of arg 1 with 307 named "&c防具購入メニュー" to close then run command "/buymenu %arg 1% armor"
  19. format slot 45 of arg 1 with {point.%arg%} of nether star named "<pink>残りポイント" to run ""
  20. format slot 53 of arg 1 with barrier named "<magenta>キャンセル" to close
  21. if arg 2 is "food":
  22. open chest with 6 row named "<green>食料購入メニュー" to arg 1wait 1 tick
  23. format slot 2 of arg 1 with 357 named "&aクッキー [1]" to run command "/pbuy 357 1 %arg 1%"
  24. format slot 11 of arg 1 with 357 named "&aクッキー×10 &e[9]" to run command "/pbuyten 357 9 %arg 1%"
  25. format slot 3 of arg 1 with 260 named "&aりんご [3]" to run command "/pbuy 260 3 %arg 1%"
  26. format slot 12 of arg 1 with 260 named "&aりんご×10 &e[27]" to run command "/pbuyten 260 27 %arg 1%"
  27. format slot 45 of arg 1 with {point.%arg%} of nether star named "<pink>残りポイント" to run ""
  28. format slot 53 of arg 1 with barrier named "<magenta>キャンセル" to close
  29. if arg 2 is "sword":
  30. open chest with 6 row named "<green>武器購入メニュー" to arg 1wait 1 tick
  31. format slot 13 of arg 1 with stone sword named "<green>石の剣 [4]" to run command "/pbuy 272 4 %arg 1%"
  32. format slot 22 of arg 1 with iron sword named "<green>鉄の剣 [30]" to run command "/pbuy 267 30 %arg 1%"
  33. format slot 31 of arg 1 with stone sword named "<green>ダイヤの剣 [400]" to run command "/pbuy 276 400 %arg 1%"
  34. format slot 45 of arg 1 with {point.%arg%} of nether star named "<pink>残りポイント" to run ""
  35. format slot 53 of arg 1 with barrier named "<magenta>キャンセル" to close
  36. if arg 2 is "armor":
  37. open chest with 6 row named "<green>防具購入メニュー" to arg 1
  38. wait 1 tick
  39. format slot 1 of arg 1 with 298 named "<green>革の帽子 [10]" to run command "/pbuy 298 10 %arg 1%"
  40. format slot 10 of arg 1 with 299 named "<green>革の上着 [30]" to run command "/pbuy 299 30 %arg 1%"
  41. format slot 19 of arg 1 with 300 named "<green>革のズボン [20]" to run command "/pbuy 300 20 %arg 1%"
  42. format slot 28 of arg 1 with 301 named "<green>革のブーツ [10]" to run command "/pbuy 301 10 %arg 1%"
  43. format slot 45 of arg 1 with {point.%arg%} of nether star named "<pink>残りポイント" to run ""
  44. format slot 53 of arg 1 with barrier named "<magenta>キャンセル" to close
  45. stop
  46.  
  47. command /pbuy <item> <number> <player>:
  48. trigger:
  49. if {%arg 3%.point} is arg 2 or {%arg 3%.point} > arg 2:
  50. remove arg 2 from {%arg 3%.point}
  51. give arg 1 to arg 3
  52. message "<yellow>購入成功!" to arg 3
  53. message "&a残りpoint &a&l%{%arg 1%.point}%&apoint" to arg 3
  54. else:
  55. message "<red>購入条件を満たしていません!" to arg 3
  56. message "&aあなたの所持してるpointは&a&l%{%arg 1%.point}%&apoint" to arg 3
  57.  
  58. command /pbuyten <item> <number> <player>:
  59. trigger:
  60. if {%arg 3%.point} is arg 2 or {%arg 3%.point} > arg 2:
  61. remove arg 2 from {%arg 3%.point}
  62. loop 10 times:
  63. give arg 1 to arg 3
  64. message "<yellow>購入成功!" to arg 3
  65. message "&a残りpoint &a&l%{%arg 1%.point}%&apoint" to arg 3
  66. else:
  67. message "<red>購入条件を満たしていません!" to arg 3
  68. message "&aあなたの所持してるpointは&a&l%{%arg 1%.point}%&apoint" to arg 3
  69.  
  70. command /pp <player> <number>:
  71. trigger:
  72. player has permission "pvp.admin"
  73. add arg 2 to {%arg 1%.point}
  74.  
  75. command /myp <player>:
  76. trigger:
  77. message "&a%arg 1%の所持してるpointは&a&l%{%arg 1%.point}%&apoint" to arg 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement