Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.84 KB | None | 0 0
  1. every 5 ticks:
  2. loop all players:
  3. send action bar "&6&l所持金:&e&l%{money.%loop-player%}% §b§lジンバブエドル" to loop-player
  4.  
  5. on first join:
  6. set {money.%player%} to 5000
  7.  
  8. on right click on wood button:
  9. if block under the event-block is iron block:
  10. message "§6§l現在の賞金100000+%{slot1.stock}%ストック"
  11.  
  12. on right click on stone button:
  13. if block under the event-block is iron block:
  14. if player is riding entity:
  15. {money.%player%} is greater than or equal to 1000
  16. set block to air
  17. add -1000 to {money.%player%}
  18. add 500 to {slot1.stock}
  19. set {slot1percent1.%player%} to random integer between 1 and 5
  20. set {slot1percent2.%player%} to random integer between 1 and 5
  21. set {slot1percent3.%player%} to random integer between 1 and 5
  22. set {slot1percent4.%player%} to random integer between 1 and 5
  23. wait 6 ticks
  24. play sound "block.note.pling" with pitch 0.7 at player
  25. if {slot1percent1.%player%} is 1:
  26. execute console command "/fill 11 16 90 7 12 90 minecraft:wool 1"
  27. if {slot1percent1.%player%} is 2:
  28. execute console command "/fill 11 16 90 7 12 90 minecraft:wool 3"
  29. if {slot1percent1.%player%} is 3:
  30. execute console command "/fill 11 16 90 7 12 90 minecraft:wool 4"
  31. if {slot1percent1.%player%} is 4:
  32. execute console command "/fill 11 16 90 7 12 90 minecraft:wool 5"
  33. if {slot1percent1.%player%} is 5:
  34. execute console command "/fill 11 16 90 7 12 90 minecraft:wool 6"
  35. wait 6 ticks
  36. play sound "block.note.pling" with pitch 0.7 at player
  37. if {slot1percent2.%player%} is 1:
  38. execute console command "/fill 5 16 90 1 12 90 minecraft:wool 1"
  39. if {slot1percent2.%player%} is 2:
  40. execute console command "/fill 5 16 90 1 12 90 minecraft:wool 3"
  41. if {slot1percent2.%player%} is 3:
  42. execute console command "/fill 5 16 90 1 12 90 minecraft:wool 4"
  43. if {slot1percent2.%player%} is 4:
  44. execute console command "/fill 5 16 90 1 12 90 minecraft:wool 5"
  45. if {slot1percent2.%player%} is 5:
  46. execute console command "/fill 5 16 90 1 12 90 minecraft:wool 6"
  47. wait 6 ticks
  48. play sound "block.note.pling" with pitch 0.7 at player
  49. if {slot1percent3.%player%} is 1:
  50. execute console command "/fill -1 16 90 -5 12 90 minecraft:wool 1"
  51. if {slot1percent3.%player%} is 2:
  52. execute console command "/fill -1 16 90 -5 12 90 minecraft:wool 3"
  53. if {slot1percent3.%player%} is 3:
  54. execute console command "/fill -1 16 90 -5 12 90 minecraft:wool 4"
  55. if {slot1percent3.%player%} is 4:
  56. execute console command "/fill -1 16 90 -5 12 90 minecraft:wool 5"
  57. if {slot1percent3.%player%} is 5:
  58. execute console command "/fill -1 16 90 -5 12 90 minecraft:wool 6"
  59. wait 6 ticks
  60. play sound "block.note.pling" with pitch 0.7 at player
  61. if {slot1percent4.%player%} is 1:
  62. execute console command "/fill -7 16 90 -11 12 90 minecraft:wool 1"
  63. if {slot1percent4.%player%} is 2:
  64. execute console command "/fill -7 16 90 -11 12 90 minecraft:wool 3"
  65. if {slot1percent4.%player%} is 3:
  66. execute console command "/fill -7 16 90 -11 12 90 minecraft:wool 4"
  67. if {slot1percent4.%player%} is 4:
  68. execute console command "/fill -7 16 90 -11 12 90 minecraft:wool 5"
  69. if {slot1percent4.%player%} is 5:
  70. execute console command "/fill -7 16 90 -11 12 90 minecraft:wool 6"
  71. if {slot1percent1.%player%} is {slot1percent2.%player%}:
  72. if {slot1percent2.%player%} is {slot1percent3.%player%}:
  73. if {slot1percent3.%player%} is {slot1percent4.%player%}:
  74. set {slot1percent5.%player%} to random integer between 1 and 5
  75. if {slot1percent5.%player%} is between 1 and 4:
  76. add 100000 to {money.%player%}
  77. add {slot1.stock} to {money.%player%}
  78. broadcast "§6%player%さん§eが§3スロット大(仮)§eを当てました!"
  79. set {slot1.stocks} to 100000+{slot1.stock}
  80. broadcast "§6§l賞金 %{slot1.stocks}% (100000+%{slot1.stock}%)"
  81. play sound "entity.enderdragon.ambient" at all players
  82. set {slot1.stock} to 0
  83. if {slot1percent5.%player%} is 5:
  84. broadcast "§6%player%さん§eが§3スロット大(仮)§eを当てました!"
  85. play sound "entity.enderdragon.ambient" at all players
  86. message "§c§l--------<ダブルアップチャンス>--------"
  87. set {slot1.doubleup.%player%} to 100000
  88. add {slot1.stock} to {slot1.doubleup.%player%}
  89. set {slot1.stock} to 0
  90. message "§6§lダブルアップを行いますか?"
  91. set {_msg} to "§c§lはい||cmd:/slot1accept"
  92. set {_to} to "%player%"
  93. json({_to}, {_msg})
  94. set {_msg} to "§a§lいいえ||cmd:/slot1cancel"
  95. set {_to} to "%player%"
  96. json({_to}, {_msg})
  97. message "§6§l20秒以内に選択してください"
  98. message "§6無回答の場合いいえとみなします"
  99. message "§c§l--------------------------------------"
  100. set {slotac.%player%} to 1
  101. wait 20 seconds
  102. if {slotac.%player%} is 1:
  103. message "§e無回答のためいいえが選択されました"
  104. add {slot1.doubleup.%player%} to {money.%player%}
  105. set {slot1.doubleup.%player%} to 0
  106.  
  107. wait 10 ticks
  108. execute console command "/fill 11 16 90 7 12 90 minecraft:air"
  109. execute console command "/fill 5 16 90 1 12 90 minecraft:air"
  110. execute console command "/fill -1 16 90 -5 12 90 minecraft:air"
  111. execute console command "/fill -7 16 90 -11 12 90 minecraft:air"
  112. set block to stone button
  113.  
  114. command /slot1accept:
  115. trigger:
  116. if {slot1.doubleup.%player%} is greater than 0:
  117. message "§a§lダブルアップを開始しました"
  118. play sound "ui.button.click" at player
  119. set {slotac.%player%} to 0
  120. wait 5 ticks
  121. play sound "block.note.pling" with pitch 0.7 at player
  122. wait 5 ticks
  123. play sound "block.note.pling" with pitch 0.9 at player
  124. wait 5 ticks
  125. play sound "block.note.pling" with pitch 1.1 at player
  126. set {slot1.doubleup.percent.%player%} to random integer between 1 and 2
  127. if {slot1.doubleup.percent.%player%} is 1:
  128. message "§b§l---失敗-賞金がすべて消えました---"
  129. broadcast "§b%player%さんが§3スロット大(仮)§bのダブルアップに挑戦して失敗しました"
  130. set {slot1.doubleup.%player%} to 0
  131. play sound "entity.wither.death" with pitch 1.5 at player
  132. if {slot1.doubleup.percent.%player%} is 2:
  133. message "§6§l---成功-賞金が倍になりました!---"
  134. play sound "entity.enderdragon.death" at all players
  135. set {slot1.doubleup.%player%} to {slot1.doubleup.%player%}*2
  136. broadcast "§c§l%player%さんが§3スロット大(仮)§c§lのダブルアップに成功しました!"
  137. broadcast "§6§l賞金 %{slot1.doubleup.%player%}%"
  138. add {slot1.doubleup.%player%} to {money.%player%}
  139. set {slot1.doubleup.%player%} to 0
  140.  
  141. command /slot1cancel:
  142. trigger:
  143. if {slot1.doubleup.%player%} is greater than 0:
  144. set {slotac.%player%} to 0
  145. message "§3§lダブルアップをキャンセルしました"
  146. add {slot1.doubleup.%player%} to {money.%player%}
  147. set {slot1.doubleup.%player%} to 0
  148.  
  149. command /addmoney <player> <number>:
  150. permission: skript.admin
  151. trigger:
  152. add arg 2 to {money.%arg 1%}
  153.  
  154. #command /trademoney <player> <number>:
  155. # trigger:
  156. # if
  157. # add arg 2 to {trademoney.%arg1%}
  158. # add -arg 2 to {money}
  159.  
  160. on break:
  161. player do not have permission "skript.builder"
  162. cancel event
  163.  
  164. on place:
  165. player do not have permission "skript.builder"
  166. cancel event
  167.  
  168. on craft:
  169. cancel event
  170.  
  171. on spread:
  172. cancel event
  173.  
  174. on burn:
  175. cancel event
  176. on explosion prime:
  177. cancel event
  178.  
  179. command /c:
  180. description: コマンドブロックを入手する
  181. usage: /c
  182. permission: skript.admin
  183. executable by: player
  184. trigger:
  185. give command block to player
  186. give redstone block to player
  187.  
  188. command /en:
  189. description: エンダーチェストを開く
  190. usage: /en
  191. executable by: player
  192. trigger:
  193. open the player's ender chest to the player
  194. command "/playsound minecraft:block.enderchest.open voice %player% ~ ~ ~ 1 1 1"
  195.  
  196. on command "/pl":
  197. if player doesn't have permission "skript.admin":
  198. cancel event
  199. message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
  200.  
  201. on command "/plugins":
  202. if player doesn't have permission "skript.admin":
  203. cancel event
  204. message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
  205.  
  206. on command "/?":
  207. if player doesn't have permission "skript.admin":
  208. cancel event
  209. message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
  210.  
  211. on command "/help":
  212. if player doesn't have permission "skript.admin":
  213. cancel event
  214. message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
  215.  
  216. on command "/bukkit:?":
  217. if player doesn't have permission "skript.admin":
  218. cancel event
  219. message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
  220.  
  221. on command "/bukkit:pl":
  222. if player doesn't have permission "skript.admin":
  223. cancel event
  224. message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
  225.  
  226. on join:
  227. set the join message to "&e%player%さんがサーバーに参加しました。"
  228.  
  229. on quit:
  230. set the quit message to ""
  231.  
  232. on rightclick on entity:
  233. name of the event-entity is "stairs":
  234. if player is not sneaking:
  235. if clicked entity is not riding entity:
  236. make player ride event-entity
  237.  
  238.  
  239.  
  240. on sneak toggle:
  241. if player is riding entity:
  242. eject any passenger of entity
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement