Itsyuumello2

Untitled

Nov 29th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.50 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: skript.admin
  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. 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. trigger:
  146. wait 1 tick
  147. if {coin.%argument 1%} is more than {@IronSword}-1:
  148. give argument iron sword
  149. subtract {@IronSword} from {coin.%argument 1%}
  150. else:
  151. message "&cコインが足りません!" to argument 1
  152. command /bd <player>:
  153. trigger:
  154. wait 1 tick
  155. if {coin.%argument 1%} is more than {@DiamondSword}-1:
  156. give argument diamond sword
  157. subtract {@DiamondSword} from {coin.%argument 1%}
  158. else:
  159. message "&cコインが足りません!" to argument 1
  160.  
  161. command /adcoin <player>:
  162. trigger:
  163. add 1000 to {coin.%player%}
  164.  
  165. command /adgold <player>:
  166. trigger:
  167. add 1000 to {gold.%player%}
  168.  
  169. command /hi:
  170. trigger:
  171. send "&ahello!"
  172.  
  173. command /minerchat:
  174. trigger:
  175. send "&e[NPC] Miner: おい! ここは危険だぞ! 仕事の邪魔にもなるからどっか行け!"
  176.  
  177. command /delcoin <player>:
  178. trigger:
  179. add -9999999999 to {coin.%player%}
  180.  
  181. command /delgold <player>:
  182. trigger:
  183. add -9999999999 to {gold.%player%}
  184.  
  185. on break of coal ore:
  186. add 80 to {coin.%player%}
  187. execute console command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 1 1 1"
  188. send "&6+80 Coins"
  189.  
  190. on break of iron ore:
  191. add 100 to {coin.%player%}
  192. execute console command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 1 1 1"
  193. send "&6+100 Coins"
  194.  
  195. on break of gold ore:
  196. add 500 to {coin.%player%}
  197. execute console command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 1 1 1"
  198. send "&6+500 Coins"
  199.  
  200. on break of diamond ore:
  201. add 100 to {coin.%player%}
  202. execute console command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 1 1 1"
  203. send "&6+100 Coins"
  204.  
  205. on break of emerald ore:
  206. add 150 to {coin.%player%}
  207. execute console command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 1 1 1"
  208. send "&6+150 Coins"
  209. on break of redstone ore:
  210. add 50 to {coin.%player%}
  211. execute console command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 1 1 1"
  212. send "&6+50 Coins"
  213. on break of lapis ore:
  214. add 100 to {coin.%player%}
  215. execute console command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 1 1 1"
  216. send "&6+100 Coins"
  217.  
  218. on explode:
  219. cancel event
Add Comment
Please, Sign In to add comment