Advertisement
watsp

Untitled

Feb 27th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.19 KB | None | 0 0
  1. variables:
  2. {%player%.diamondpoint} = 0
  3. {%player%.diamondpointmax} = 10
  4. {%player%.diamondlevel} = 1
  5. {%player%.diamondgold} = 0
  6. {diamondamout} = 1
  7. #ダイヤ鉱石破壊時のイベント
  8. On break of diamond ore:
  9. add 1 to {%player%.diamondpoint}
  10. every 5 tick in "world":
  11. loop all players:
  12. #アクションバー設定
  13. send action bar from "&b現在のDG &n%{%loop-player%.diamondgold}%&r&b 現在のDP &n%{%loop-player%.diamondpoint}%&r&b 現在のDLevel &n%{%loop-player%.diamondlevel}%&r&b 次のDLevelまで &n%{%loop-player%.diamondpointmax}%&r" to loop-player
  14. if {%loop-player%.diamondpoint} is greater than or equal to {%loop-player%.diamondpointmax}:
  15. remove {%loop-player%.diamondpointmax} from {%loop-player%.diamondpoint}
  16. add 1 to {%loop-player%.diamondlevel}
  17. add {%loop-player%.diamondpointmax} to {%loop-player%.diamondpointmax}
  18. send "&a&lレベルアップ! ダイヤレベルが %{%loop-player%.diamondlevel}% になりました!" to loop-player
  19.  
  20. command /dmenu:
  21. trigger:
  22. open chest with 1 rows named "&b&lDiamond Flat Main Menu" to player
  23. wait 1 tick
  24. format slot 0 of player with 278 named "&a&l%player%のステータス" with lore "&b現在のダイヤポイント %{%player%.diamondpoint}% DP||&b現在のダイヤゴールド %{%player%.diamondgold}% DG||&b現在のダイヤレベル Level %{%player%.diamondlevel}%||&b次のレベルまで %{%player%.diamondpointmax}% DP" to run [make player execute command "dmenu"]
  25. format slot 1 of player with 56 named "&adiazonにアクセスする" with lore "&bダイヤゴールドで様々なものを購入できます。||&aショートカットコマンド /diazon" to run [make player execute command "diazon"]
  26. command /ddebug:
  27. trigger:
  28. set {%player%.diamondpoint} to 0
  29. set {%player%.diamondlevel} to 1
  30. set {%player%.diamondpointmax} to 10
  31. set {%player%.diamondgold} to 0
  32. command /dgget <number> <text>:
  33. trigger:
  34. add arg-1 to {%arg-2%.diamondgold}
  35. command /diazon:
  36. trigger:
  37. open chest with 6 rows named "&a&lDiazon" to player
  38. wait 1 tick
  39. format slot 53 of player with barrier named "&aメインメニューに戻る" to run [make player execute command "dmenu"]
  40. format slot 0 of player with gold nugget named "&6現在のDG %{%player%.diamondgold}% DG" to run [make player execute command "diazon"]
  41. format slot 10 of player with diamond named "&aダイヤモンドを買う 1DG" to run [make player execute command "buy diamond"]
  42. format slot 11 of player with iron ingot named "&a鉄を買う 64DG" to run [make player execute command "buy iron"]
  43. format slot 12 of player with gold ingot named "&a金を買う 960DG" to run [make player execute command "buy gold"]
  44. format slot 13 of player with emerald named "&aエメラルドを買う 14400DG" to run [make player execute command "buy emerald"]
  45. format slot 14 of player with nether star named "&aネザースターを買う 216000DG" to run [make player execute command "buy nether"]
  46. format slot 15 of player with 406 named "&aクオーツを買う 3240000DG" to run [make player execute command "buy quartz"]
  47. format slot 28 of player with diamond named "&aダイヤモンドを売る 1DG" to run [make player execute command "sell diamond"]
  48. format slot 29 of player with iron ingot named "&a鉄を売る 64DG" to run [make player execute command "sell iron"]
  49. format slot 30 of player with gold ingot named "&a金を売る 960DG" to run [make player execute command "sell gold"]
  50. format slot 31 of player with emerald named "&aエメラルドを売る 14400DG" to run [make player execute command "sell emerald"]
  51. format slot 32 of player with nether star named "&aネザースターを売る 216000DG" to run [make player execute command "sell nether"]
  52. format slot 33 of player with 406 named "&aクオーツを売る 3240000DG" to run [make player execute command "sell quartz"]
  53. command /buy <text>:
  54. trigger:
  55. if argument is "diamond":
  56. if {%player%.diamondgold} is greater than or equal to 1:
  57. execute console command "give %player% minecraft:diamond"
  58. remove 1 from {%player%.diamondgold}
  59. if argument is "iron":
  60. if {%player%.diamondgold} is greater than or equal to 64:
  61. execute console command "give %player% minecraft:iron_ingot"
  62. remove 64 from {%player%.diamondgold}
  63. if argument is "gold":
  64. if {%player%.diamondgold} is greater than or equal to 960:
  65. execute console command "give %player% minecraft:gold_ingot"
  66. remove 960 from {%player%.diamondgold}
  67. if argument is "emerald":
  68. if {%player%.diamondgold} is greater than or equal to 14400:
  69. execute console command "give %player% minecraft:emerald"
  70. remove 14400 from {%player%.diamondgold}
  71. if argument is "nether":
  72. if {%player%.diamondgold} is greater than or equal to 216000:
  73. execute console command "give %player% minecraft:nether_star"
  74. remove 216000 from {%player%.diamondgold}
  75. if argument is "quartz":
  76. if {%player%.diamondgold} is greater than or equal to 3240000:
  77. execute console command "give %player% minecraft:quartz"
  78. remove 3240000 from {%player%.diamondgold}
  79.  
  80. command /sell <text>:
  81. trigger:
  82. if argument is "diamond":
  83. if player have 1 diamonds:
  84. remove 1 diamond from the player
  85. add 1 to {%player%.diamondgold}
  86. if argument is "iron":
  87. if player have 1 iron ingots:
  88. remove 1 iron ingot from the player
  89. add 64 to {%player%.diamondgold}
  90. if argument is "gold":
  91. if player have 1 gold ingots:
  92. remove 1 gold ingot from the player
  93. add 960 to {%player%.diamondgold}
  94. if argument is "emerald":
  95. if player have 1 emeralds:
  96. remove 1 emerald from the player
  97. add 14400 to {%player%.diamondgold}
  98. if argument is "nether":
  99. if player have 1 nether stars:
  100. remove 1 nether star from the player
  101. add 216000 to {%player%.diamondgold}
  102. if argument is "quartz":
  103. if player have 1 406:
  104. remove 1 406 from the player
  105. add 3240000 to {%player%.diamondgold}
  106.  
  107. command /setspawn:
  108. permission: admin.spawn
  109. trigger:
  110. message "&6スポーンをあなたのいるところに指定しました!"
  111. set {spawn} to location of player
  112.  
  113. command /spawn:
  114. trigger:
  115. message "&6スポーンへ移動しました!"
  116. teleport player to {spawn}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement