familychicken

Untitled

Aug 3rd, 2019
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.82 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. remove (10*{uuid::%loop-player%.level})^1.7 from {uuid::%loop-player%.xp}
  56. add 1 to {uuid::%loop-player%.level}
  57. set {uuid::%loop-player%.boost} to {uuid::%loop-player%.boost}*1.1
  58. add 1 to {uuid::%loop-player%.itemadd}
  59. command "/execute %loop-player% ~ ~ ~ /playsound minecraft:entity.player.levelup ambient %loop-player% ~ ~ ~ 2 0.6"
  60. message "&6採掘レベルが上がりました!" to loop-player
  61. message "&cレベル &d%{uuid::%loop-player%.level}-1% → &bレベル &a%{uuid::%loop-player%.level}%" to loop-player
  62. message "&e Boost x1.1 &f... &e&lx%{uuid::%loop-player%.boost}%" to loop-player
  63.  
  64. command /mreset <player>:
  65. permission: skript.admin
  66. trigger:
  67. set {uuid::%player%.money} to 10000
  68. set {uuid::%player%.mp} to 0
  69. set {uuid::%player%.mc} to 0
  70. set {uuid::%player%.boost} to 1
  71. set {uuid::%player%.xp} to 0
  72. set {uuid::%player%.level} to 1
  73. set {uuid::%player%.itemadd} to 0
  74. message "&b君の負け(reset)! &cなんでリセットされたら 考えておいてください、 &6そしたら何かが見えてくるはずです"
  75.  
  76. every 4 tick:
  77. loop all players:
  78. if {uuid::%loop-player%.automaker} = 1:
  79. if loop-player have 64 cobblestone:
  80. command "/execute %loop-player% ~ ~ ~ /playsound minecraft:block.fire.extinguish ambient %loop-player% ~ ~ ~ 2 2"
  81. command "/clear %loop-player% cobblestone 0 64"
  82. command "/menu grab %loop-player% cb-1"
  83. stop
  84. if loop-player have 64 iron ore:
  85. command "/execute %loop-player% ~ ~ ~ /playsound minecraft:block.fire.extinguish ambient %loop-player% ~ ~ ~ 2 2"
  86. command "/clear %loop-player% iron_ore 0 64"
  87. command "/menu grab %loop-player% i-1"
  88. stop
  89.  
  90. on mine:
  91. add 1 to {uuid::%player%.mc}
  92.  
  93. command /automaker <number>:
  94. trigger:
  95. set {uuid::%player%.automaker} to arg
  96.  
  97. on block damage:
  98. if event-block is cobblestone:
  99. command "/effect %player% clear"
  100. if event-block is iron ore:
  101. command "/effect %player% minecraft:mining_fatigue 99999 1 true"
Advertisement
Add Comment
Please, Sign In to add comment