Advertisement
watsp

Untitled

Feb 27th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.04 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. format slot 46 of player with diamon block named "&bダイヤモンドを10個売る 10DG" to run [make player execute command "sell diamond10"]
  54. format slot 47 of player with diamon block named "&bダイヤモンドを100個売る 100DG" to run [make player execute command "sell diamond100"]
  55. format slot 48 of player with diamon block named "&bダイヤモンドを1000個売る 1000DG" to run [make player execute command "sell diamond1000"]
  56. command /buy <text>:
  57. trigger:
  58. if argument is "diamond":
  59. if {%player%.diamondgold} is greater than or equal to 1:
  60. execute console command "give %player% minecraft:diamond"
  61. remove 1 from {%player%.diamondgold}
  62. if argument is "iron":
  63. if {%player%.diamondgold} is greater than or equal to 64:
  64. execute console command "give %player% minecraft:iron_ingot"
  65. remove 64 from {%player%.diamondgold}
  66. if argument is "gold":
  67. if {%player%.diamondgold} is greater than or equal to 960:
  68. execute console command "give %player% minecraft:gold_ingot"
  69. remove 960 from {%player%.diamondgold}
  70. if argument is "emerald":
  71. if {%player%.diamondgold} is greater than or equal to 14400:
  72. execute console command "give %player% minecraft:emerald"
  73. remove 14400 from {%player%.diamondgold}
  74. if argument is "nether":
  75. if {%player%.diamondgold} is greater than or equal to 216000:
  76. execute console command "give %player% minecraft:nether_star"
  77. remove 216000 from {%player%.diamondgold}
  78. if argument is "quartz":
  79. if {%player%.diamondgold} is greater than or equal to 3240000:
  80. execute console command "give %player% minecraft:quartz"
  81. remove 3240000 from {%player%.diamondgold}
  82.  
  83. command /sell <text>:
  84. trigger:
  85. if argument is "diamond":
  86. if player have 1 diamonds:
  87. remove 1 diamond from the player
  88. add 1 to {%player%.diamondgold}
  89. if argument is "iron":
  90. if player have 1 iron ingots:
  91. remove 1 iron ingot from the player
  92. add 64 to {%player%.diamondgold}
  93. if argument is "gold":
  94. if player have 1 gold ingots:
  95. remove 1 gold ingot from the player
  96. add 960 to {%player%.diamondgold}
  97. if argument is "emerald":
  98. if player have 1 emeralds:
  99. remove 1 emerald from the player
  100. add 14400 to {%player%.diamondgold}
  101. if argument is "nether":
  102. if player have 1 nether stars:
  103. remove 1 nether star from the player
  104. add 216000 to {%player%.diamondgold}
  105. if argument is "quartz":
  106. if player have 1 406:
  107. remove 1 406 from the player
  108. add 3240000 to {%player%.diamondgold}
  109. if argument is "diamond10":
  110. if player have 10 diamonds:
  111. remove 10 diamond from the player
  112. add 10 to {%player%.diamondgold}
  113. if argument is "diamond100":
  114. if player have 100 diamonds:
  115. remove 100 diamond from the player
  116. add 100 to {%player%.diamondgold}
  117. if argument is "diamond1000":
  118. if player have 1000 diamonds:
  119. remove 1000 diamond from the player
  120. add 1000 to {%player%.diamondgold}
  121. command /setspawn:
  122. permission: admin.spawn
  123. trigger:
  124. message "&6スポーンをあなたのいるところに指定しました!"
  125. set {spawn} to location of player
  126.  
  127. command /spawn:
  128. trigger:
  129. message "&6スポーンへ移動しました!"
  130. teleport player to {spawn}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement