familychicken

Untitled

Oct 13th, 2021 (edited)
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.09 KB | None | 0 0
  1. options:
  2. p: &7[&eMining&7]
  3. v: &d0.2
  4. vt: &7新しい採掘サーバー!
  5. g: &c&lに当選しました。
  6. b: &e%player%&7が
  7. c: &7<&6cost&7>
  8. u: &e>>> &6クリックで強化 &e<<<
  9.  
  10.  
  11. variables:
  12. {%player%.cb} = 0
  13. {%player%.upg::1} = 1
  14. {%player%.upg::2} = 0
  15. {%player%.minepower} = 0
  16. {%player%.mpp} = 0
  17. {%player%.mat} = 1
  18. {%player%.mp} = 1
  19. {%player%.truemp} = 1
  20. {%player%.option::1} = 0
  21. {%player%.option::2} = 1
  22. {%player%.worth::1} = 1
  23. {%player%.worth::2} = 8
  24. {%player%.worth::3} = 47
  25. {%player%.worth::4} = 260
  26. {%player%.worth::5} = 1900
  27. {%player%.worth::6} = 24000
  28. {%player%.worth::7} = 222222
  29. {%player%.worth::8} = 4444444
  30. {nt::0} = ""
  31. {nt::1} = "k"
  32. {nt::2} = "M"
  33. {nt::3} = "B"
  34. {nt::4} = "T"
  35. {nt::5} = "Qa"
  36. {nt::6} = "Qi"
  37. {nt::7} = "Sx"
  38. {nt::8} = "Sp"
  39. {nt::9} = "Oc"
  40. {%player%.em} = 0
  41. {%player%.eflevel} = 1
  42. {%player%.mlevel} = 1
  43. {%player%.needxp} = 100
  44.  
  45. on break:
  46. if player does not have permission "skript.admin":
  47. cancel event
  48.  
  49.  
  50.  
  51. on mine:
  52. add 1 to {%player%.mc}
  53.  
  54. every second:
  55. loop all players:
  56. set {%loop-player%.truemp} to floor({%loop-player%.mp})
  57.  
  58. every 2 tick:
  59. loop all players:
  60. send action bar with text "{@p} &8&l・&e&l%{%loop-player%.nn::1}% &6coins &8&l・&r&7採掘力 &d%{%loop-player%.minepower}% &8&l・&r&e採掘力増加 &c+%{%loop-player%.mpp}%" to loop-player
  61.  
  62. command /status <player>:
  63. trigger:
  64. message "&7━━━━━━━━━━━━━━━━━━━━━━━━━"
  65. message "&6┣ &eplayer : &b%arg%"
  66. message "&6┣ &e仮想丸石 : &e%{%arg%.cb}% &6cb"
  67. message "&6┣ &e倍数 : &e%{%arg%.mp}% &6倍"
  68. message "&6┣ &eプレイ時間 : &e%{%arg%.min}% &6分"
  69. message "&7━━━━━━━━━━━━━━━━━━━━━━━━"
  70.  
  71. every 60 seconds:
  72. loop all players:
  73. add 1 to {%loop-player%.min}
  74. chance of 2%:
  75. add 1 to {%loop-player%.em}
  76. message "{@p} &7あなたは&aエメラルド&7を拾いました。+1&8(%{%loop-player%.em}%)" to loop-player
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86. on join:
  87. message "&7&l--=====================================--"
  88. message ""
  89. message "&7CaveMinerStory----"
  90. message "&7&lversion : {@v}"
  91. message "&8[&7ChangeLog&8] &f: {@vt}"
  92. message ""
  93. message "&7&l--=====================================--"
  94.  
  95. command /ec:
  96. trigger:
  97. open the player's ender chest to the player
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106. on inventory click:
  107. name of clicked inventory is "upgrade panel"
  108. cancel event
  109. if clicked slot is 20:
  110. cancel event
  111. set slot 20 of player's current inventory to gold pickaxe named "&6⛏️&7efficiency" with lore "&7現在のレベル : %{%player%.eflevel}%" and "{@c} %{pupg::%{_next}%}%" and "{@u}"
  112. set {_upef} to {%player%.eflevel}+1
  113. if {%player%.cb} >= {pupg::%{_upef}%}:
  114. remove {pupg::%{_upef}%} from {%player%.cb}
  115. add 1 to {%player%.eflevel}
  116. command "/eff %player% %{_upef}%"
  117. message "{@p} &7効率強化を強化しました。&l%{_upef}-1% → %{_upef}%"
  118. if clicked slot is 23:
  119. cancel event
  120. set slot 23 to player's current inventory to golden apple named "&e☘️&7mining-fortune" with lore "&7%{%player%.mp}*100%" and "{@u}"
  121.  
  122.  
  123.  
  124.  
  125. command /setcb <player> <number>:
  126. permission: skript.admin
  127. trigger:
  128. set {_befcb} to {%arg-1%.cb}
  129. set {%arg-1%.cb} to arg-2
  130. message "{@p}&7-system &7%{_befcb}% cb &f→ &7%{%arg-1%.cb}%" to player
  131.  
  132. every 2 ticks:
  133. loop all players:
  134. if {%loop-player%.cb} is not 0:
  135. set {_exp1} to floor(log({%loop-player%.cb})/3)
  136. set {%loop-player%.nn::1} to "%{%loop-player%.cb}/(1000^{_exp1})% %{nt::%{_exp1}%}%"
  137. else:
  138. set {%loop-player%.nn::1} to 0
  139.  
  140.  
  141.  
  142.  
  143. command /pmenu:
  144. permission: skript.admin
  145. trigger:
  146. set {_pl} to 1
  147. open chest inventory with 3 row named "upgrade panel" to player
  148. set {_up} to 0
  149. set {_air} to gray glass pane named "_"
  150. loop 27 times:
  151. set slot {_up} of player's current inventory to {_air}
  152. add 1 to {_up}
  153. set slot 11 of player's current inventory to ender eye named "&7=&e転生&7-&eAscension&7=" with lore "&7--=--=--=--=--=--=--=--=--" and "&8・&7現在の転生コイン &7→ &7&l{%player%.hc}" and "&8・&7獲得できる転生コイン → 1"
  154.  
  155.  
  156.  
  157. command /eff <player> <integer>:
  158. permission: skript.admin
  159. trigger:
  160. enchant arg-1's held item with "efficiency %arg-2%" parsed as enchantment type
  161. set {%arg-1%.eflevel} to arg-2
  162.  
  163. command /upg <integer>:
  164. trigger:
  165. if arg is 1:
  166. if {%player%.cb} >= 1*1.15^{%player%.upg::1}:
  167. remove 1*1.15^{%player%.upg::1} from {%player%.cb}
  168. add 1 to {%player%.upg::1}
  169. set {_cost} to 1*1.15^{%player%.upg::1}
  170. if arg is 2:
  171. if {%player%.cb} >= 50*1.8^{%player%.upg::2}:
  172. remove 50*1.8^{%player%.upg::2} from {%player%.cb}
  173. add 1 to {%player%.upg::2}
  174. set {_cost} to 50*1.8^{%player%.upg::2}
  175. if arg is 3:
  176. if {%player%.cb} >= 50*25^{%player%.upg::3}:
  177. if player's held item is iron pickaxe:
  178. remove 50*25^{%player%.upg::3} from {%player%.cb}
  179. add 1 to {%player%.upg::3}
  180. command "/eff %player% %{%player%.upg::3}%"
  181. set {_cost} to 50*25^{%player%.upg::3}
  182. else:
  183. set {_reason} to 1
  184. if arg is 4:
  185. if {%player%.cb} >= 20*1.2^{%player%.upg::4}:
  186. remove 20*1.2^{%player%.upg::4} from {%player%.cb}
  187. add 1 to {%player%.upg::4}
  188. set {_cost} to 20*1.2^{%player%.upg::4}
  189. if arg is 5:
  190. if {%player%.cb} >= 250000*1.3^{%player%.upg::5}:
  191. remove 250000*1.3^{%player%.upg::5} from {%player%.cb}
  192. add 1 to {%player%.upg::5}
  193. set {_cost} to 250000*1.3^{%player%.upg::5}
  194. if {_cost} is set:
  195. message "{@p} &a強化に成功しました。"
  196. message "{@p} &7次のコスト : %{_cost}%"
  197. else:
  198. if {_reason} is not set:
  199. message "{@p} &7コインが足りません。"
  200. if {_reason} is 1:
  201. message "{@p} &7ピッケルを手に持ってください。"
  202.  
  203. on mine of stone:
  204. cancel event
  205. add 1*(1+0.5*{%player%.upg::2}) to {%player%.obmc}
  206. add {%player%.minepower} to {%player%.cb}
  207. add {%player%.minepower}^0.3 to {%player%.exp}
  208. if {%player%.obmc} >= 10:
  209. set {_max} to floor({%player%.obmc}/10)
  210. remove 10*{_max} from {%player%.obmc}
  211. add {%player%.mpp} to {%player%.minepower}
  212.  
  213.  
  214.  
  215.  
  216. every 5 ticks:
  217. loop all players:
  218. set {%loop-player%.mpp} to (0.005*{%loop-player%.upg::1})+(0.02*{%loop-player%.upg::4})+(0.15*{%loop-player%.upg::5})
  219.  
  220.  
  221.  
  222.  
  223. command /level [<text>]:
  224. trigger:
  225. if arg is not set:
  226. set {_le} to 1
  227. if arg is "menu":
  228. set {_le} to 1
  229. if arg is "info":
  230. set {_le} to 2
  231. if arg is "change":
  232. set {_le} to 3
  233. if {_le} = 1:
  234. set {_pl} to 1
  235. open chest inventory with 6 row named "levelinfo" to player
  236. set {_up} to 0
  237. set {_air} to gray glass pane named "_"
  238. loop 54 times:
  239. set slot {_up} of player's current inventory to {_air}
  240. add 1 to {_up}
  241. set slot 0 of player's current inventory to stone named "石" with lore "&8&l・&d装着ルーン数 &e%{%player%.rune::1}%&8/&7%{%player%.totalrune}%" and "&8&l・&7発生確率 &e%{%player%.miningchance::1}% &7%%" and "所持金 x1.00"
  242.  
  243.  
  244.  
Advertisement
Add Comment
Please, Sign In to add comment