familychicken

Untitled

Aug 6th, 2021 (edited)
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.22 KB | None | 0 0
  1. options:
  2. p: &6[&eCaveMining&6]
  3. v: &d0.3
  4. vt: &ashopと丸石を仮想丸石と交換することができるようになった
  5. g: &c&lに当選しました。
  6. b: &e%player%&7が
  7. c: &6Cost &6&l- &7
  8. variables:
  9. {%player%.mp} = 1
  10. {%player%.truemp} = 1
  11. {%player%.option::1} = 0
  12. {%player%.option::2} = 1
  13. {cobblestone} = 1
  14. {coalore} = 4
  15. {ironore} = 10
  16. {goldore} = 75
  17. {lapisore} = 630
  18. {emeraldore} = 6900
  19. {diamondore} = 110000
  20.  
  21. every second:
  22. loop all players:
  23. set {%loop-player%.truemp} to floor({%loop-player%.mp})
  24.  
  25. on mine of cobblestone:
  26. cancel event
  27. add {%player%.mp}*{cobblestone} to {%player%.cb}
  28. chance of 2%:
  29. add {%player%.mp}*{cobblestone}*4 to {%player%.cb}
  30. message "{@p} &bCritical Hit! &cx5"
  31.  
  32. on mine of iron ore:
  33. cancel event
  34. add {%player%.mp}*{ironore} to {%player%.cb}
  35. chance of 2%:
  36. add {%player%.mp}*{ironore}*4 to {%player%.cb}
  37. message "{@p} &bCritical Hit! &cx5"
  38.  
  39. on mine of gold ore:
  40. cancel event
  41. add {%player%.mp}*{goldore} to {%player%.cb}
  42. chance of 2%:
  43. add {%player%.mp}*{goldore}*4 to {%player%.cb}
  44. message "{@p} &bCritical Hit! &cx5"
  45.  
  46. every 2 tick:
  47. loop all players:
  48. send action bar with text "{@p} &6所持丸石 : &e%{%loop-player%.cb}% &6cb" to loop-player
  49.  
  50. command /status <player>:
  51. trigger:
  52. message "&7━━━━━━━━━━━━━━━━━━━━━━━━━"
  53. message "&6┣ &eplayer : &b%arg%"
  54. message "&6┣ &e仮想丸石 : &e%{%arg%.cb}% &6cb"
  55. message "&6┣ &e倍数 : &e%{%arg%.mp}% &6倍"
  56. message "&6┣ &eプレイ時間 : &e%{%arg%.min}% &6分"
  57. message "&7━━━━━━━━━━━━━━━━━━━━━━━━"
  58.  
  59. every 60 seconds:
  60. loop all players:
  61. add 1 to {%loop-player%.min}
  62.  
  63. command /option <integer>:
  64. trigger:
  65. if arg is 1:
  66. if {%player%.option::1} is 1:
  67. set {%player%.option::1} to 0
  68. message "{@p}&7-system &7自動売却モードを&c無効&7にしました。"
  69. else:
  70. set {%player%.option::1} to 1
  71. message "{@p}&7-system &7自動売却モードを&a有効&7にしました。"
  72. if arg is 2:
  73. if {%player%.option::2} is 1:
  74. set {%player%.option::2} to 0
  75. message "{@p}&7-system &7圧縮丸石解凍モードを&c無効&7にしました。"
  76. else:
  77. set {%player%.option::2} to 1
  78. message "{@p}&7-system &7圧縮丸石解凍モード&a有効&7にしました。"
  79.  
  80. on right click with a cobblestone:
  81. cancel event
  82. if player is sneaking:
  83. add amount of cobblestone in the event-player's inventory to {%player%.cb}
  84. remove all cobblestone from event-player's inventory
  85. else:
  86. add 1 to {%player%.cb}
  87. remove a cobblestone from player's inventory
  88.  
  89. on right click with a stone:
  90. cancel event
  91. if {%player%.option::2} is 1:
  92. set {_level.%player%} to the line 1 of lore of event-item
  93. replace all "&8ID:" with "" in {_level.%player%}
  94. set {_level.%player%.number} to {_level.%player%} parsed as an integer
  95. add (16+{_level.%player%.number})^({_level.%player%.number}) to {%player%.cb}
  96. remove 1 of player's held item from the player's inventory
  97. else:
  98. message "{@p}&7-system &7圧縮丸石解凍モードが無効になっています。"
  99.  
  100.  
  101. on join:
  102. message "&7&l====================================="
  103. message "&6&b-CaveMinerStory-"
  104. message "&6 &eversion : {@v}"
  105. message "&6[&cChangeLog&6] &f: {@vt}"
  106. message "&7&l====================================="
  107.  
  108. command /ec:
  109. trigger:
  110. open the player's ender chest to the player
  111. message "&5エンダーチェストを開きました"
  112.  
  113. on click with a paper:
  114. if event-item is paper named "&6CaveTicket":
  115. cancel event
  116. remove a paper named "&6CaveTicket" from player
  117. set {_gacha1} to random integer between 1 and 1000
  118. if {_gacha1} is between 1 and 250:
  119. message "{@p} &b水晶の欠片 *1 {@g}"
  120. if {_gacha1} is between 251 and 350:
  121. message "{@p} &b水晶の欠片 *2 {@g}"
  122. if {_gacha1} is between 351 and 400:
  123. message "{@p} &b水晶の欠片 *3 {@g}"
  124. if {_gacha1} is between 401 and 410:
  125. broadcast "{@p} {@b}&b&l水晶 *1 {@g}"
  126. if {_gacha1} is between 411 and 500:
  127. message "{@p} &dVoteTicket *1 {@g}"
  128. if {_gacha1} is between 501 and 505:
  129. message "{@p} &d&lVoteTicket *4 {@g}"
  130. if {_gacha1} is between 506 and 600:
  131. broadcast "{@p} {@b}&7丸石取得量が&a1.01倍&7になりました。 &e(+%{cobblestone}%)"
  132. if {_gacha1} is between 601 and 660:
  133. broadcast "{@p} {@b}&6鉄鉱石&7取得量が&a1.01倍&7になりました。 &e(+%{ironore}%)"
  134. if {_gacha1} is between 981 and 990:
  135. broadcast "{@p} {@b}&e&l採掘倍率 Ⅰ &r&e(*1.01) {@g}"
  136. if {_gacha1} is between 991 and 997:
  137. broadcast "{@p} {@b}&e&l&n採掘倍率 Ⅱ &r&e(*1.03) {@g}"
  138. if {_gacha1} is between 998 and 999:
  139. broadcast "{@p} {@b}&6&l採掘倍率 Ⅲ &r&6(*1.08) {@g}"
  140. if {_gacha1} is 1000:
  141. broadcast "{@p} {@b}&6&l&n採掘倍率 &r&b&l極 &r&6&l(*1.2){@g}"
  142.  
  143.  
  144. command /rank [<text>]:
  145. trigger:
  146. message "{@p} &7--RankInformation--"
  147. if arg is not set:
  148. message "{@p} &8[&7old&6VIP&8]&f ... &7採掘倍率 +1倍"
  149. message "{@p} &8[&6VIP&8]&f ... &7採掘倍率 +2倍"
  150. message "{@p} &8[&7old&bMVP&8]&f ... &7採掘倍率 +3.5倍"
  151. message "{@p} &8[&bMVP&8]&f ... &7採掘倍率 +5.5倍"
  152. message "{@p} &8[&7old&a&lMIP&r&8]&f ... &7採掘倍率 +9倍"
  153. message "{@p} &8[&a&lMIP&8]&f ... &7採掘倍率 +17倍"
  154.  
  155.  
  156.  
  157. command /m:
  158. trigger:
  159. open chest inventory with 3 row named "&7=CaveMinerStory=" to player
  160. set {_l} to 0
  161. set {_air} to gray glass pane named "_"
  162. loop 27 times:
  163. set slot {_l} of player's current inventory to {_air}
  164. add 1 to {_l}
  165. set slot 0 of player's current inventory to stone named "&7丸石" with lore "{@c}1 cb"
  166. set slot 1 of player's current inventory to stone named "&7圧縮丸石 &6##1" with lore "{@c}16cb" and "&7初めての圧縮丸石。硬い。"
  167. set slot 2 of player's current inventory to stone named "&7圧縮丸石 &6##2" with lore "{@c}289cb" and "&7重さ : 2kg"
  168. set slot 3 of player's current inventory to stone named "&7圧縮丸石 &6##3" with lore "{@c}5,832cb" and "&7圧縮圧縮 (丸石を) 圧縮ぅ"
  169. set slot 4 of player's current inventory to stone named "&7&l圧縮丸石 &6##4" with lore "{@c}130,321cb" and "&713万cbは丸石約2000st"
  170. set slot 5 of player's current inventory to stone named "&7&l圧縮丸石 &6##5" with lore "{@c}2,476,099cb" and "&7((tier)+15)^(tier)"
  171. set slot 6 of player's current inventory to stone named "&7&l圧縮丸石 &6##6" with lore "{@c}64,000,000cb" and "&7綺麗な数字だね"
  172.  
  173.  
  174. on inventory click:
  175. name of clicked inventory is "&7=CaveMinerStory="
  176. cancel event
  177. set {_i} to 0
  178. loop 27 times:
  179. if clicked slot is {_i}:
  180. set {_clicked} to {_i}
  181. else:
  182. add 1 to {_i}
  183. if {_clicked} is between 0 and 6:
  184. if {%player%.cb} >= ({_clicked}+15)^{_clicked}:
  185. play sound "ENTITY_ITEM_PICKUP" with volume 100 with pitch 1.9 at player for player
  186. remove ({_clicked}+15)^{_clicked} from {%player%.cb}
  187. command "/menu grab %player% cb-%{_clicked}%"
  188. else:
  189. message "{@p} &c所持丸石が不足しています。"
  190. message "{@p} &cあと%(({_clicked}+15)^{_clicked})-{%player%.cb}% cb 必要です。"
  191.  
  192. command /setcb <player> <number>:
  193. permission: skript.admin
  194. trigger:
  195. set {_befcb} to {%arg-1%.cb}
  196. set {%arg-1%.cb} to arg-2
  197. message "{@p}&7-system &7%{_befcb}% cb &f→ &7%{%player%.cb}%" to player
Advertisement
Add Comment
Please, Sign In to add comment