familychicken

simplemining

Aug 8th, 2019
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.22 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 2 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%.xp} >= (10*{uuid::%loop-player%.level})^1.7:
  60. message "&6採掘レベルが上がりました!" to loop-player
  61. message "&cレベル &d%{uuid::%loop-player%.level}% &f→ &bレベル &a%{uuid::%loop-player%.level}+1%" to loop-player
  62. message "&e ブースト x%{uuid::%loop-player%.boost}% &f→ &e&lx%{uuid::%loop-player%.boost}*1.1%" to loop-player
  63. message "&b 一回の採掘で手に入るアイテム &6+ &c%{uuid::%loop-player%.itemadd}+1% &f→ &6+ &a%{uuid::%loop-player%.itemadd}+2%" to loop-player
  64. command "/scoreboard players add %loop-player% level 1"
  65. remove (10*{uuid::%loop-player%.level})^1.7 from {uuid::%loop-player%.xp}
  66. add 1 to {uuid::%loop-player%.level}
  67. set {uuid::%loop-player%.boost} to {uuid::%loop-player%.boost}*1.1
  68. add 1 to {uuid::%loop-player%.itemadd}
  69. command "/execute %loop-player% ~ ~ ~ /playsound minecraft:entity.player.levelup ambient %loop-player% ~ ~ ~ 2 0.6"
  70.  
  71. command /mreset <player>:
  72. permission: skript.admin
  73. trigger:
  74. set {uuid::%arg%.money} to 10000
  75. set {uuid::%arg%.mp} to 0
  76. set {uuid::%arg%.mc} to 0
  77. set {uuid::%arg%.boost} to 1
  78. set {uuid::%arg%.xp} to 0
  79. set {uuid::%arg%.level} to 1
  80. set {uuid::%arg%.itemadd} to 0
  81. command "/scoreboard players set %arg% level 1"
  82. message "&b君の負け(reset)! &cなんでリセットされたら 考えておいてください、 &6そしたら何かが見えてくるはずです"
  83.  
  84. every 3 tick:
  85. loop all players:
  86. if {uuid::%loop-player%.automaker} >= 1:
  87. if loop-player have 64 cobblestone:
  88. command "/execute %loop-player% ~ ~ ~ /playsound minecraft:block.fire.extinguish ambient %loop-player% ~ ~ ~ 2 2"
  89. command "/clear %loop-player% cobblestone 0 64"
  90. command "/menu grab %loop-player% cb-1"
  91. if loop-player have 64 iron ore:
  92. command "/execute %loop-player% ~ ~ ~ /playsound minecraft:block.fire.extinguish ambient %loop-player% ~ ~ ~ 2 2"
  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 "/execute %loop-player% ~ ~ ~ /playsound minecraft:block.fire.extinguish ambient %loop-player% ~ ~ ~ 2 2"
  97. command "/clear %loop-player% diamond_ore 0 64"
  98. command "/menu grab %loop-player% d-1"
  99. if loop-player have 64 emerald ore:
  100. command "/execute %loop-player% ~ ~ ~ /playsound minecraft:block.fire.extinguish ambient %loop-player% ~ ~ ~ 2 2"
  101. command "/clear %loop-player% emerald_ore 0 64"
  102. command "/menu grab %loop-player% e-1"
  103. if loop-player have 64 gold ore:
  104. command "/execute %loop-player% ~ ~ ~ /playsound minecraft:block.fire.extinguish ambient %loop-player% ~ ~ ~ 2 2"
  105. command "/clear %loop-player% gold_ore 0 64"
  106. command "/menu grab %loop-player% gore-1"
  107.  
  108. every 1 seconds:
  109. loop all players:
  110. if {uuid::%loop-player%.automaker} >= 2:
  111. if loop-player have 64 stone:
  112. command "/execute %loop-player% ~ ~ ~ /playsound minecraft:block.fire.extinguish ambient %loop-player% ~ ~ ~ 2 1.5"
  113. command "/clear %loop-player% stone 6 64"
  114. command "/menu grab %loop-player% cb-2"
  115. if loop-player have 64 iron ingot:
  116. command "/execute %loop-player% ~ ~ ~ /playsound minecraft:block.fire.extinguish ambient %loop-player% ~ ~ ~ 2 1.5"
  117. command "/clear %loop-player% iron_ingot 0 64"
  118. command "/menu grab %loop-player% i-2"
  119. if loop-player have 64 diamond:
  120. command "/execute %loop-player% ~ ~ ~ /playsound minecraft:block.fire.extinguish ambient %loop-player% ~ ~ ~ 2 1.5"
  121. command "/clear %loop-player% diamond 0 64"
  122. command "/menu grab %loop-player% d-2"
  123. if loop-player have 64 emerald:
  124. command "/execute %loop-player% ~ ~ ~ /playsound minecraft:block.fire.extinguish ambient %loop-player% ~ ~ ~ 2 1.5"
  125. command "/clear %loop-player% emerald 64"
  126. command "/menu grab %loop-player% e-2"
  127. if loop-player have 64 gold ingot:
  128. command "/execute %loop-player% ~ ~ ~ /playsound minecraft:block.fire.extinguish ambient %loop-player% ~ ~ ~ 2 1.5"
  129. command "/clear %loop-player% gold_ingot 0 64"
  130. command "/menu grab %loop-player% gore-2"
  131.  
  132. on mine:
  133. add 1 to {uuid::%player%.mc}
  134.  
  135. command /automaker <number>:
  136. trigger:
  137. set {uuid::%player%.automaker} to arg
  138.  
  139. on block damage:
  140. if event-block is cobblestone:
  141. command "/effect %player% clear"
  142. if event-block is iron ore:
  143. command "/effect %player% clear"
  144. command "/effect %player% minecraft:mining_fatigue 99999 1 true"
  145. if event-block is gold ore:
  146. command "/effect %player% clear"
  147. command "/effect %player% minecraft:mining_fatigue 99999 2 true"
  148.  
  149. command /discord:
  150. trigger:
  151. message "&6SimpleMining &7&lⅡ &bの 公式 &9Discord &bです!"
  152. message "&bhttps://discord.gg/q86bpVU"
  153.  
  154. command /stats:
  155. trigger:
  156. message "&7------------------------------"
  157. message "&6%player%"
  158. message "&e所持金 &f: &a%{uuid::%player%.money}%"
  159. message "&b採掘ポイント &f: &a%{uuid::%player%.mp}%"
  160. message "&eブースト &f: &ax%{uuid::%player%.boost}%"
  161. message "&6採掘回数 &f: &c%{uuid::%player%.mc}%"
  162. message "&7------------------------------"
Advertisement
Add Comment
Please, Sign In to add comment