familychicken

sm2

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