Advertisement
Itsyuumello2

Untitled

Nov 29th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.46 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: 500
  110. IronSword: 1000
  111. DiamondSword: 3000
  112.  
  113.  
  114. on right click on villager:
  115. cancel event
  116. wait 1 tick
  117. execute console command "/shopmain %player%"
  118.  
  119. command /shopmain <player>:
  120. trigger:
  121. wait 1 tick
  122. open chest with 1 rows named "&aItem Shop" to argument 1
  123. format slot 1 of argument 1 with golden sword named "&a武器 &7(left click)" with lore "&7このメニューでは武器を買うことができます。" to run "weaponshop %argument 1%"
  124. wait 1 tick
  125. command /weaponshop <player>:
  126. trigger:
  127. wait 1 tick
  128. open chest with 1 row named "&aWeapon" to argument 1
  129. wait 1 tick
  130. format slot 1 of argument 1 with golden sword named "&6石の剣" with lore "&7コスト: &6500" to run "bs %argument 1%"
  131. wait 1 tick
  132. format slot 2 of argument 1 with iron sword named "&6鉄の剣" with lore "&7コスト: &61000" to run "bi %argument 1%"
  133. wait 1 tick
  134. format slot 3 of argument 1 with diamond sword named "&6ダイヤモンドの剣" with lore "&7コスト: &63000" to run "bd %argument 1%"
  135.  
  136. command /bs <player>:
  137. permission: sk.admin
  138. trigger:
  139. wait 1 tick
  140. send "&6石の剣 &aを購入しました。"
  141. execute console command "/playsound block.note.flute master %player% ~ ~ ~ 1 1 1"
  142. if {coin.%argument 1%} is more than {@StoneSword}-1:
  143. give argument stone sword
  144. subtract {@StoneSword} from {coin.%argument 1%}
  145. else:
  146. message "&cコインが足りません!" to argument 1
  147. command /bi <player>:
  148. permission: sk.admin
  149. trigger:
  150. wait 1 tick
  151. send "&6鉄の剣 &aを購入しました。"
  152. execute console command "/playsound block.note.flute master %player% ~ ~ ~ 1 1 1"
  153. if {coin.%argument 1%} is more than {@IronSword}-1:
  154. give argument iron sword
  155. subtract {@IronSword} from {coin.%argument 1%}
  156. else:
  157. message "&cコインが足りません!" to argument 1
  158. command /bd <player>:
  159. permission: sk.admin
  160. trigger:
  161. wait 1 tick
  162. send "&6ダイヤモンドの剣 &aを購入しました。"
  163. execute console command "/playsound block.note.flute master %player% ~ ~ ~ 1 1 1"
  164. if {coin.%argument 1%} is more than {@DiamondSword}-1:
  165. give argument diamond sword
  166. subtract {@DiamondSword} from {coin.%argument 1%}
  167. else:
  168. message "&cコインが足りません!" to argument 1
  169.  
  170. command /addgcoin <player>:
  171. trigger:
  172. add 1000 to {coin.%player%}
  173.  
  174. command /hi:
  175. trigger:
  176. send "&ahello!"
  177.  
  178. command /minerchat:
  179. trigger:
  180. send "&e[NPC] Miner: おい! ここは危険だぞ! 仕事の邪魔にもなるからどっか行け!"
  181.  
  182. command /removegcoin <player>:
  183. trigger:
  184. add -1000 to {coin.%player%}
  185.  
  186. on break of coal ore:
  187. add 5 to {coin.%player%}
  188. execute console command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 1 1 1"
  189. send "&6+5 Coins"
  190.  
  191. on break of iron ore:
  192. add 10 to {coin.%player%}
  193. execute console command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 1 1 1"
  194. send "&6+10 Coins"
  195.  
  196. on break of gold ore:
  197. add 500 to {coin.%player%}
  198. execute console command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 1 1 1"
  199. send "&6+500 Coins"
  200.  
  201. on break of diamond ore:
  202. add 100 to {coin.%player%}
  203. execute console command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 1 1 1"
  204. send "&6+100 Coins"
  205.  
  206. on break of emerald ore:
  207. add 150 to {coin.%player%}
  208. execute console command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 1 1 1"
  209. send "&6+150 Coins"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement