familychicken

Untitled

Aug 8th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.94 KB | None | 0 0
  1. variables:
  2. {uuid::%player%.money} = 10000
  3. {uuid::%player%.mp} = 0
  4. {uuid::%player%.mc} = 0
  5. {uuid::%player%.boost} = 1
  6. {uuid::%player%.xp} = 0
  7. {uuid::%player%.level} = 1
  8. {uuid::%player%.itemadd} = 0
  9. {uuid::%player%.automaker} = 0
  10.  
  11. on mine of cobblestone:
  12. cancel event
  13. command "/execute %player% ~ ~ ~ /playsound minecraft:block.stone.break ambient %player% ~ ~ ~ 100 1"
  14. add 10*{uuid::%player%.boost} to {uuid::%player%.money}
  15. add 2*{uuid::%player%.boost} to {uuid::%player%.xp}
  16. add 3*{uuid::%player%.boost} to {uuid::%player%.mp}
  17. loop 1+{uuid::%player%.itemadd} times:
  18. command "/give %player% cobblestone 1"
  19.  
  20. on mine of iron ore:
  21. cancel event
  22. command "/execute %player% ~ ~ ~ /playsound minecraft:block.stone.break ambient %player% ~ ~ ~ 100 1.1"
  23. add 50*{uuid::%player%.boost} to {uuid::%player%.money}
  24. add 5*{uuid::%player%.boost} to {uuid::%player%.xp}
  25. add 10*{uuid::%player%.boost} to {uuid::%player%.mp}
  26. loop 1+{uuid::%player%.itemadd} times:
  27. command "/give %player% iron_ore 1"
  28.  
  29. on mine of diamond ore:
  30. cancel event
  31. command "/execute %player% ~ ~ ~ /playsound minecraft:block.stone.break ambient %player% ~ ~ ~ 100 1.2"
  32. add 250*{uuid::%player%.boost} to {uuid::%player%.money}
  33. add 8*{uuid::%player%.boost} to {uuid::%player%.xp}
  34. add 20*{uuid::%player%.boost} to {uuid::%player%.mp}
  35. loop 1+{uuid::%player%.itemadd} times:
  36. command "/give %player% diamond_ore 1"
  37.  
  38. on mine of emerald ore:
  39. cancel event
  40. command "/execute %player% ~ ~ ~ /playsound minecraft:block.stone.break ambient %player% ~ ~ ~ 100 1.3"
  41. add 1500*{uuid::%player%.boost} to {uuid::%player%.money}
  42. add 20*{uuid::%player%.boost} to {uuid::%player%.xp}
  43. add 50*{uuid::%player%.boost} to {uuid::%player%.mp}
  44. loop 1+{uuid::%player%.itemadd} times:
  45. command "/give %player% emerald_ore 1"
  46.  
  47. on mine of gold ore:
  48. cancel event
  49. command "/execute %player% ~ ~ ~ /playsound minecraft:block.stone.break ambient %player% ~ ~ ~ 100 1.4"
  50. add 5000*{uuid::%player%.boost} to {uuid::%player%.money}
  51. add 40*{uuid::%player%.boost} to {uuid::%player%.xp}
  52. add 100*{uuid::%player%.boost} to {uuid::%player%.mp}
  53. loop 1+{uuid::%player%.itemadd} times:
  54. command "/give %player% gold_ore 1"
  55.  
  56. every 3 tick:
  57. loop all players:
  58. send action bar with text "&e現在の所持金 &f: &a%{uuid::%loop-player%.money}% &b採掘ポイント &f: &a%{uuid::%loop-player%.mp}% &a経験値 &b%{uuid::%loop-player%.xp}% &f/ &b%(10*{uuid::%loop-player%.level})^1.7% &bレベル &a%{uuid::%loop-player%.level}% &eブースト &f: &6x%{uuid::%loop-player%.boost}%" to loop-player
  59. if {uuid::%loop-player%.mp} >= [1200*({uuid::%loop-player%.guessascendcoin}+1)/1.4]:
  60. add 1 to {uuid::%loop-player%.guessascendcoin}
  61. if {uuid::%loop-player%.xp} >= (10*{uuid::%loop-player%.level})^1.7:
  62. message "&6採掘レベルが上がりました!" to loop-player
  63. message "&cレベル &d%{uuid::%loop-player%.level}% &f→ &bレベル &a%{uuid::%loop-player%.level}+1%" to loop-player
  64. message "&e ブースト x%{uuid::%loop-player%.boost}% &f→ &e&lx%{uuid::%loop-player%.boost}*1.1%" to loop-player
  65. message "&b 一回の採掘で手に入るアイテム &6+ &c%{uuid::%loop-player%.itemadd}+1% &f→ &6+ &a%{uuid::%loop-player%.itemadd}+2%" to loop-player
  66. command "/scoreboard players add %loop-player% level 1"
  67. remove (10*{uuid::%loop-player%.level})^1.7 from {uuid::%loop-player%.xp}
  68. add 1 to {uuid::%loop-player%.level}
  69. set {uuid::%loop-player%.boost} to {uuid::%loop-player%.boost}*1.1
  70. add 1 to {uuid::%loop-player%.itemadd}
  71. command "/execute %loop-player% ~ ~ ~ /playsound minecraft:entity.player.levelup ambient %loop-player% ~ ~ ~ 2 0.6"
  72.  
  73. command /mreset <player>:
  74. permission: skript.admin
  75. trigger:
  76. set {uuid::%arg%.money} to 10000
  77. set {uuid::%arg%.mp} to 0
  78. set {uuid::%arg%.mc} to 0
  79. set {uuid::%arg%.boost} to 1
  80. set {uuid::%arg%.xp} to 0
  81. set {uuid::%arg%.level} to 1
  82. set {uuid::%arg%.itemadd} to 0
  83. command "/scoreboard players set %arg% level 1"
  84. message "&b君の負け(reset)! &cなんでリセットされたら 考えておいてください、 &6そしたら何かが見えてくるはずです"
  85.  
  86. every tick:
  87. loop all players:
  88. if {uuid::%loop-player%.automaker} >= 1:
  89. if loop-player have 64 cobblestone:
  90. command "/clear %loop-player% cobblestone 0 64"
  91. command "/menu grab %loop-player% cb-1"
  92. if loop-player have 64 iron ore:
  93. command "/clear %loop-player% iron_ore 0 64"
  94. command "/menu grab %loop-player% i-1"
  95. if loop-player have 64 diamond ore:
  96. command "/clear %loop-player% diamond_ore 0 64"
  97. command "/menu grab %loop-player% d-1"
  98. if loop-player have 64 emerald ore:
  99. command "/clear %loop-player% emerald_ore 0 64"
  100. command "/menu grab %loop-player% e-1"
  101. if loop-player have 64 gold ore:
  102. command "/clear %loop-player% gold_ore 0 64"
  103. command "/menu grab %loop-player% gore-1"
  104.  
  105. every 5 ticks:
  106. loop all players:
  107. if {uuid::%loop-player%.automaker} >= 2:
  108. if loop-player have 64 stone:
  109. command "/clear %loop-player% stone 6 64"
  110. command "/menu grab %loop-player% cb-2"
  111. if loop-player have 64 iron ingot:
  112. command "/clear %loop-player% iron_ingot 0 64"
  113. command "/menu grab %loop-player% i-2"
  114. if loop-player have 64 diamond:
  115. command "/clear %loop-player% diamond 0 64"
  116. command "/menu grab %loop-player% d-2"
  117. if loop-player have 64 emerald:
  118. command "/clear %loop-player% emerald 64"
  119. command "/menu grab %loop-player% e-2"
  120. if loop-player have 64 gold ingot:
  121. command "/clear %loop-player% gold_ingot 0 64"
  122. command "/menu grab %loop-player% gore-2"
  123.  
  124. on mine:
  125. add 1 to {uuid::%player%.mc}
  126.  
  127. command /automaker <number>:
  128. trigger:
  129. set {uuid::%player%.automaker} to arg
  130.  
  131. on block damage:
  132. if event-block is cobblestone:
  133. command "/effect %player% clear"
  134. if event-block is iron ore:
  135. command "/effect %player% clear"
  136. command "/effect %player% minecraft:mining_fatigue 99999 1 true"
  137. if event-block is diamond ore:
  138. command "/effect %player% clear"
  139. command "/effect %player% minecraft:mining_fatigue 99999 2 true"
  140. if event-block is emerald ore:
  141. command "/effect %player% clear"
  142. command "/effect %player% minecraft:mining_fatigue 99999 3 true"
  143. if event-block is gold ore:
  144. command "/effect %player% clear"
  145. command "/effect %player% minecraft:mining_fatigue 99999 4 true"
  146.  
  147. command /discord:
  148. trigger:
  149. message "&6SimpleMining &7&lⅡ &bの 公式 &9Discord &bです!"
  150. message "&bhttps://discord.gg/q86bpVU"
  151.  
  152. command /stats:
  153. trigger:
  154. message "&7------------------------------"
  155. message "&6%player%"
  156. message "&e所持金 &f: &a%{uuid::%player%.money}%"
  157. message "&b採掘ポイント &f: &a%{uuid::%player%.mp}%"
  158. message "&eブースト &f: &ax%{uuid::%player%.boost}%"
  159. message "&6採掘回数 &f: &c%{uuid::%player%.mc}%"
  160. message "&7------------------------------"
  161.  
  162. command /ascend:
  163. trigger:
  164. message "&6昇天します...."
  165. wait 3 seconds
  166. if {uuid::%player%.guessascendcoin} >= 1000:
  167. add {uuid::%player%.guessascendcoin} to {uuid::%player%.ascendcoin}
  168. message "&eAscend &6(昇天) &fしました。"
  169. message "&6AscendCoin &f: &a%{uuid::%player%.ascendcoin}% &c+ %{uuid::%player%.guessascendcoin}%"
  170. message "&eBoost x %{uuid::%player%.ascendcoin}/1000%"
  171. else:
  172. message "&cごめんね...いまのあなたにはそれほどの力はないわ..."
Advertisement
Add Comment
Please, Sign In to add comment