Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 KB | None | 0 0
  1. variables:
  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 1 wait 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 1 wait 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 1 wait 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 wait 1 tick
  38. format slot 1 of arg 1 with 298 named "<green>革の帽子 [10]" to run command "/pbuy 298 10 %arg 1%"
  39. format slot 10 of arg 1 with 299 named "<green>革の上着 [30]" to run command "/pbuy 299 30 %arg 1%"
  40. format slot 19 of arg 1 with 300 named "<green>革のズボン [20]" to run command "/pbuy 300 20 %arg 1%"
  41. format slot 28 of arg 1 with 301 named "<green>革のブーツ [10]" to run command "/pbuy 301 10 %arg 1%"
  42. format slot 45 of arg 1 with {point.%arg%} of nether star named "<pink>残りポイント" to run ""
  43. format slot 53 of arg 1 with barrier named "<magenta>キャンセル" to close
  44. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement