Advertisement
Guest User

Untitled

a guest
Nov 15th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.73 KB | None | 0 0
  1. options:
  2. #---------------------------------------------------------------------------
  3. #-----------------------------------Logo------------------------------------
  4. logo: &8[&bK2RServer&8]&7|
  5. #---------------------------------------------------------------------------
  6.  
  7. #---------------------------------------------------------------------------
  8. #-----------------------------------Types-----------------------------------
  9. playerleveling: true
  10. monsterleveling: true
  11. #---------------------------------------------------------------------------
  12.  
  13. #---------------------------------------------------------------------------
  14. #---------------------------------PLeveling---------------------------------
  15. #PlayerLeveling (Reward uses vault!)
  16. xpforlvlup: 50
  17. lvlupreward: minecraft:book 1 0 {"display":{"Name":"§aLVUP報酬カード"},"ench":[{"id":0s,"lvl":0s}],"HideFlags":1}
  18. #---------------------------------------------------------------------------
  19.  
  20. #---------------------------------------------------------------------------
  21. #----------------------------------MaxLvL-----------------------------------
  22. maxlvl: 100 #MaxXp is used to mark max level of player (eg. 100 Bob[Lv100])
  23. #---------------------------------------------------------------------------
  24.  
  25.  
  26.  
  27. variables:
  28. {mining.%player%} = 0
  29. {min.%player%} = 0
  30. {xp.%player%} = 0
  31. {lvl.%player%} = 0
  32.  
  33.  
  34. on any movement:
  35. if {@playerleveling} is true:
  36. if {mining.%player%} is greater or equal to {@xpforlvlup}:
  37. if {lvl.%player%} is greater or equal to {@maxlvl}:
  38. stop
  39. else:
  40. remove {@xpforlvlup} from {mining.%player%}
  41. remove {@xpforlvlup} from {xp.%player%}
  42. add 1 to {lvl.%player%}
  43. add 1 to {min.%player%}
  44. send "{@logo} &7レベルアップ!現在のLV: &a%{min.%player%}%" to player
  45. execute console command "/give %player% {@lvlupreward}"
  46. stop
  47. if {xp.%player%} is greater or equal to {@xpforlvlup}:
  48. if {lvl.%player%} is greater or equal to {@maxlvl}:
  49. stop
  50. else:
  51. remove {@xpforlvlup} from {xp.%player%}
  52. add 1 to {lvl.%player%}
  53. send "{@logo} &7レベルアップ!現在のLV: &a%{lvl.%player%}%" to player
  54. execute console command "/eco give %player% {@lvlupreward}"
  55. stop
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62. on mine of any ore:
  63. if {@playerleveling} is true:
  64. chance of 80%:
  65. add 1 to {mining.%player%}
  66. add 1 to {xp.%player%}
  67. send "{@logo} &7&l[&a&l+&7&l]&b 1 EXP " to player
  68.  
  69.  
  70. command /status [<offline player>]:
  71. trigger:
  72. if arg-1 is not set:
  73. send "&a"
  74. send "&7&l-:=|&6&l%player%&7&l|=:-:=&a&lstatus=:-|"
  75. send " &b&lLV&f: &e%{lvl.%player%}% "
  76. send " &6&lMineLV&f: &e%{min.%player%}% "
  77. send " &a&lXP&f: &e%{xp.%player%}% "
  78. send " &e&lMineExp&f: &e%{mining.%player%}% "
  79. send " &a&l{@xpforlvlup}までためるとLVUPします "
  80. send "&a"
  81. if arg-1 is set:
  82. send "&a"
  83. send "&7&l-:=|&6&l%arg-1%&7&l|=:-:=&a&lstatus=:-|"
  84. send " &b&lLV&f: &e%{lvl.%arg-1%}% "
  85. send " &6&lMineLV&f: &e%{min.%arg-1%}% "
  86. send " &a&lXP&f: &e%{xp.%arg-1%}% "
  87. send " &e&lMineExp&f: &e%{mining.%arg-1%}% "
  88. send " &a&l{@xpforlvlup}までためるとLVUPします "
  89. send "&a"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement