familychicken

Titled

Aug 8th, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.29 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 2 tick:
  85. loop all players:
  86. if {uuid::%loop-player%.automaker} >= 1:
  87. if loop-player have 64 cobblestone:
  88. command "/clear %loop-player% cobblestone 0 64"
  89. command "/menu grab %loop-player% cb-1"
  90. if loop-player have 64 iron ore:
  91. command "/clear %loop-player% iron_ore 0 64"
  92. command "/menu grab %loop-player% i-1"
  93. if loop-player have 64 diamond ore:
  94. command "/clear %loop-player% diamond_ore 0 64"
  95. command "/menu grab %loop-player% d-1"
  96. if loop-player have 64 emerald ore:
  97. command "/clear %loop-player% emerald_ore 0 64"
  98. command "/menu grab %loop-player% e-1"
  99. if loop-player have 64 gold ore:
  100. command "/clear %loop-player% gold_ore 0 64"
  101. command "/menu grab %loop-player% gore-1"
  102.  
  103. every 5 ticks:
  104. loop all players:
  105. if {uuid::%loop-player%.automaker} >= 2:
  106. if loop-player have 64 stone:
  107. command "/clear %loop-player% stone 6 64"
  108. command "/menu grab %loop-player% cb-2"
  109. if loop-player have 64 iron ingot:
  110. command "/clear %loop-player% iron_ingot 0 64"
  111. command "/menu grab %loop-player% i-2"
  112. if loop-player have 64 diamond:
  113. command "/clear %loop-player% diamond 0 64"
  114. command "/menu grab %loop-player% d-2"
  115. if loop-player have 64 emerald:
  116. command "/clear %loop-player% emerald 64"
  117. command "/menu grab %loop-player% e-2"
  118. if loop-player have 64 gold ingot:
  119. command "/clear %loop-player% gold_ingot 0 64"
  120. command "/menu grab %loop-player% gore-2"
  121.  
  122. on mine:
  123. add 1 to {uuid::%player%.mc}
  124.  
  125. command /automaker <number>:
  126. trigger:
  127. set {uuid::%player%.automaker} to arg
  128.  
  129. on block damage:
  130. if event-block is cobblestone:
  131. command "/effect %player% clear"
  132. if event-block is iron ore:
  133. command "/effect %player% clear"
  134. command "/effect %player% minecraft:mining_fatigue 99999 1 true"
  135. if event-block is diamond ore:
  136. command "/effect %player% clear"
  137. command "/effect %player% minecraft:mining_fatigue 99999 2 true"
  138. if event-block is emerald ore:
  139. command "/effect %player% clear"
  140. command "/effect %player% minecraft:mining_fatigue 99999 3 true"
  141. if event-block is diamond ore:
  142. command "/effect %player% clear"
  143. command "/effect %player% minecraft:mining_fatigue 99999 4 true"
  144.  
  145. command /discord:
  146. trigger:
  147. message "&6SimpleMining &7&lⅡ &bの 公式 &9Discord &bです!"
  148. message "&bhttps://discord.gg/q86bpVU"
  149.  
  150. command /stats:
  151. trigger:
  152. message "&7------------------------------"
  153. message "&6%player%"
  154. message "&e所持金 &f: &a%{uuid::%player%.money}%"
  155. message "&b採掘ポイント &f: &a%{uuid::%player%.mp}%"
  156. message "&eブースト &f: &ax%{uuid::%player%.boost}%"
  157. message "&6採掘回数 &f: &c%{uuid::%player%.mc}%"
  158. message "&7------------------------------"
Advertisement
Add Comment
Please, Sign In to add comment