Itsyuumello2

Untitled

Nov 28th, 2019
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.25 KB | None | 0 0
  1. on break:
  2. if {Nomodif.%player%} is set:
  3. stop
  4. if {InReset} is set:
  5. send "&cImpossible : Map en reset !"
  6. cancel event
  7. stop
  8. if {blockis.%location of event-block%} is set:
  9. stop
  10. else:
  11. set {blocklocation.%{count}%} to event-location
  12. set {block.%{count}%} to type of event-block
  13. set {blockis.%location of event-block%} to true
  14. add 1 to {Count}
  15.  
  16. on place:
  17. if {Nomodif.%player%} is set:
  18. stop
  19. if {InReset} is set:
  20. send "&cImpossible : Map en reset !"
  21. cancel event
  22. stop
  23. if {blockis.%location of event-block%} is set:
  24. stop
  25. else:
  26. set {blockis.%location of event-block%} to true
  27. set {blocklocation.%{count}%} to event-location
  28. set {block.%{count}%} to air
  29. add 1 to {Count}
  30. on enderman pickup:
  31. if {InReset} is set:
  32. cancel event
  33. stop
  34. if {blockis.%location of event-block%} is set:
  35. stop
  36. else:
  37. set {blocklocation.%{count}%} to event-location
  38. set {block.%{count}%} to type of event-block
  39. set {blockis.%location of event-block%} to true
  40. add 1 to {Count}
  41. on enderman place:
  42. if {InReset} is set:
  43. cancel event
  44. stop
  45. if {blockis.%location of event-block%} is set:
  46. stop
  47. else:
  48. set {blockis.%location of event-block%} to true
  49. set {blocklocation.%{count}%} to event-location
  50. set {block.%{count}%} to air
  51. add 1 to {Count}
  52. on explode:
  53. loop exploded blocks:
  54. if {InReset} is set:
  55. cancel event
  56. stop
  57. if {blockis.%location of loop-block%} is set:
  58. stop
  59. else:
  60. set {blocklocation.%{count}%} to loop-block's location
  61. set {block.%{count}%} to type of loop-block
  62. set {blockis.%location of loop-block%} to true
  63. add 1 to {Count}
  64. command /reset:
  65. permission: reset.reset
  66. trigger:
  67. if {InReset} is set:
  68. send "&aマップ修復中..."
  69. stop
  70. set {InReset} to true
  71. send "&a合計 &6%{Count}% &aブロックが修復されました!"
  72. set {_count} to 0
  73. loop {Count} times:
  74. clear {blockis.%{blocklocation.%{_count}%}%}
  75. set block at {blocklocation.%{_count}%} to {block.%{_count}%}
  76. clear {blocklocation.%{_count}%}
  77. clear {block.%{_count}%}
  78. send "修復した合計ブロック : %{_count}% / %{Count}%" to console
  79. add 1 to {_count}
  80. set {Count} to 0
  81. clear {InReset}
  82. send "&a&l修復完了!"
  83.  
  84. command /nomodif:
  85. permission: nomodif.reset
  86. trigger:
  87. if {Nomodif.%player%} is not set:
  88. set {Nomodif.%player%} to true
  89. send "&4&l[WARNING] &aビルドモードに変更されました。 / &7今ブロックを破壊したら修復できません。"
  90. stop
  91. else:
  92. clear {NoModif.%player%}
  93. send "&4&l[WARNING] &aゲームモードに変更されました。 / &7今ブロックを置いて/resetをするとすべて修復されます。"
  94. stop
  95. on join:
  96. if player has permission "nomodif.reset":
  97. if {Nomodif.%player%} is set:
  98. wait 5 ticks
  99. send "&4&l[WARNING] &aゲームモードに変更されました。 / &7今ブロックを置いて/resetをするとすべて修復されます。"
  100. stop
  101. else:
  102. wait 5 ticks
  103. send "&4&l[WARNING] &aビルドモードに変更されました。 / &7今ブロックを破壊したら修復できません。"
  104. stop
  105. else:
  106. clear {NoModif.%player%}
  107.  
  108. options:
  109. StoneSword: 100
  110. IronSword: 500
  111. DiamondSword: 1000
  112.  
  113. on right click on villager:
  114. cancel event
  115. wait 1 tick
  116. execute console command "/shopmain %player%"
  117.  
  118. command /shopmain <player>:
  119. trigger:
  120. wait 1 tick
  121. open chest with 1 rows named "&aItem Shop" to argument 1
  122. format slot 1 of argument 1 with golden sword named "&a武器 &7(left click)" with lore "&7このメニューでは武器を買うことができます。" to run "weaponshop %argument 1%"
  123. wait 1 tick
  124. command /weaponshop <player>:
  125. trigger:
  126. wait 1 tick
  127. open chest with 1 row named "&aWeapon" to argument 1
  128. wait 1 tick
  129. format slot 1 of argument 1 with golden sword named "&6石の剣" with lore "&7コスト: &6100" to run "bs %argument 1%"
  130. wait 1 tick
  131. format slot 2 of argument 1 with iron sword named "&6鉄の剣" with lore "&7コスト: &6500" to run "bi %argument 1%"
  132. wait 1 tick
  133. format slot 3 of argument 1 with diamond sword named "&6ダイヤモンドの剣" with lore "&7コスト: &61000" to run "bd %argument 1%"
  134.  
  135. command /bs <player>:
  136. permission: sk.admin
  137. trigger:
  138. wait 1 tick
  139. if {coin.%argument 1%} is more than {@StoneSword}-1:
  140. give argument stone sword
  141. subtract {@StoneSword} from {coin.%argument 1%}
  142. else:
  143. message "&cコインが足りません!" to argument 1
  144. command /bi <player>:
  145. permission: sk.admin
  146. trigger:
  147. wait 1 tick
  148. if {coin.%argument 1%} is more than {@IronSword}-1:
  149. give argument iron sword
  150. subtract {@IronSword} from {coin.%argument 1%}
  151. else:
  152. message "&cコインが足りません!" to argument 1
  153. command /bd <player>:
  154. permission: sk.admin
  155. trigger:
  156. wait 1 tick
  157. if {coin.%argument 1%} is more than {@DiamondSword}-1:
  158. give argument diamond sword
  159. subtract {@DiamondSword} from {coin.%argument 1%}
  160. else:
  161. message "&cコインが足りません!" to argument 1
  162.  
  163. command /addgcoin <player>:
  164. trigger:
  165. add 1000 to {coin.%player%}
  166.  
  167. command /hi:
  168. trigger:
  169. send "&ahello!"
  170.  
  171. command /minerchat:
  172. trigger:
  173. send "&e[NPC] Miner: おい! ここは危険だぞ! 仕事の邪魔にもなるからどっか行け!"
  174.  
  175. command /removegcoin <player>:
  176. trigger:
  177. add -1000 to {coin.%player%}
  178.  
  179. command /score:
  180. trigger:
  181. display board named "THE WALLS" to player
  182. make score "Bait" in board of player to 1
  183. make score "Coins: " in board of player to 0
  184. move display of player to sidebar
Advertisement
Add Comment
Please, Sign In to add comment