familychicken

Untitled

Aug 3rd, 2019
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.10 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} = false
  10.  
  11. on mine of cobblestone:
  12. cancel event
  13. command "/execute %player% ~ ~ ~ /playsound minecraft:block.stone.break ambient %player% ~ ~ ~ 100 1"
  14. command "/give %player% cobblestone %1+{uuid::%player%.itemadd}%"
  15. add 10*{uuid::%player%.boost} to {uuid::%player%.money}
  16. add 2*{uuid::%player%.boost} to {uuid::%player%.xp}
  17. add 3*{uuid::%player%.boost} to {uuid::%player%.mp}
  18.  
  19. on mine of iron ore:
  20. cancel event
  21. command "/execute %player% ~ ~ ~ /playsound minecraft:block.stone.break ambient %player% ~ ~ ~ 100 1.1"
  22. command "/give %player% iron_ore %1+{uuid::%player%.itemadd}%"
  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.  
  27. on mine of diamond ore:
  28. cancel event
  29. command "/execute %player% ~ ~ ~ /playsound minecraft:block.stone.break ambient %player% ~ ~ ~ 100 1.2"
  30. command "/give %player% diamond_ore %1+{uuid::%player%.itemadd}%"
  31. add 250*{uuid::%player%.boost} to {uuid::%player%.money}
  32. add 8*{uuid::%player%.boost} to {uuid::%player%.xp}
  33. add 20*{uuid::%player%.boost} to {uuid::%player%.mp}
  34.  
  35. on mine of emerald ore:
  36. cancel event
  37. command "/execute %player% ~ ~ ~ /playsound minecraft:block.stone.break ambient %player% ~ ~ ~ 100 1.3"
  38. command "/give %player% emerald_ore %1+{uuid::%player%.itemadd}%"
  39. add 1500*{uuid::%player%.boost} to {uuid::%player%.money}
  40. add 20*{uuid::%player%.boost} to {uuid::%player%.xp}
  41. add 50*{uuid::%player%.boost} to {uuid::%player%.mp}
  42.  
  43. on mine of gold ore:
  44. cancel event
  45. command "/execute %player% ~ ~ ~ /playsound minecraft:block.stone.break ambient %player% ~ ~ ~ 100 1.4"
  46. command "/give %player% gold_ore %1+{uuid::%player%.itemadd}%"
  47. add 5000*{uuid::%player%.boost} to {uuid::%player%.money}
  48. add 40*{uuid::%player%.boost} to {uuid::%player%.xp}
  49. add 100*{uuid::%player%.boost} to {uuid::%player%.mp}
  50.  
  51. every 2 tick:
  52. loop all players:
  53. 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
  54. if {uuid::%loop-player%.xp} >= (10*{uuid::%loop-player%.level})^1.7:
  55. message "&6採掘レベルが上がりました!" to loop-player
  56. message "&cレベル &d%{uuid::%loop-player%.level}% &f→ &bレベル &a%{uuid::%loop-player%.level}+1%" to loop-player
  57. message "&e Boost x%{uuid::%loop-player%.boost}% &f→ &e&lx%{uuid::%loop-player%.boost}*1.1%" to loop-player
  58. command "/scoreboard players add %loop-player% level 1"
  59. remove (10*{uuid::%loop-player%.level})^1.7 from {uuid::%loop-player%.xp}
  60. add 1 to {uuid::%loop-player%.level}
  61. set {uuid::%loop-player%.boost} to {uuid::%loop-player%.boost}*1.1
  62. add 1 to {uuid::%loop-player%.itemadd}
  63. command "/execute %loop-player% ~ ~ ~ /playsound minecraft:entity.player.levelup ambient %loop-player% ~ ~ ~ 2 0.6"
  64.  
  65. command /mreset <player>:
  66. permission: skript.admin
  67. trigger:
  68. set {uuid::%arg%.money} to 10000
  69. set {uuid::%arg%.mp} to 0
  70. set {uuid::%arg%.mc} to 0
  71. set {uuid::%arg%.boost} to 1
  72. set {uuid::%arg%.xp} to 0
  73. set {uuid::%arg%.level} to 1
  74. set {uuid::%arg%.itemadd} to 0
  75. command "/scoreboard players set %arg% level 1
  76. message "&b君の負け(reset)! &cなんでリセットされたら 考えておいてください、 &6そしたら何かが見えてくるはずです"
  77.  
  78. every 4 tick:
  79. loop all players:
  80. if {uuid::%loop-player%.automaker} = 1:
  81. if loop-player have 64 cobblestone:
  82. command "/execute %loop-player% ~ ~ ~ /playsound minecraft:block.fire.extinguish ambient %loop-player% ~ ~ ~ 2 2"
  83. command "/clear %loop-player% cobblestone 0 64"
  84. command "/menu grab %loop-player% cb-1"
  85. stop
  86. if loop-player have 64 iron ore:
  87. command "/execute %loop-player% ~ ~ ~ /playsound minecraft:block.fire.extinguish ambient %loop-player% ~ ~ ~ 2 2"
  88. command "/clear %loop-player% iron_ore 0 64"
  89. command "/menu grab %loop-player% i-1"
  90. stop
  91.  
  92. on mine:
  93. add 1 to {uuid::%player%.mc}
  94.  
  95. command /automaker <number>:
  96. trigger:
  97. set {uuid::%player%.automaker} to arg
  98.  
  99. on block damage:
  100. if event-block is cobblestone:
  101. command "/effect %player% clear"
  102. if event-block is iron ore:
  103. command "/effect %player% minecraft:mining_fatigue 99999 1 true"
Advertisement
Add Comment
Please, Sign In to add comment