SHARE
TWEET

Untitled

K2Rk1o Nov 17th, 2018 121 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # MINE LEVEL SYSTEM
  2. options:
  3.     #CONFIG
  4.     #---------------------------------------------------------------------------
  5.     #-----------------------------------Logo------------------------------------
  6.     logo: &8[&bK2RServer&8]&7|
  7.     #---------------------------------------------------------------------------
  8.    
  9.     #---------------------------------------------------------------------------
  10.     #-----------------------------------Types-----------------------------------
  11.     playerleveling: true
  12.     #---------------------------------------------------------------------------
  13.    
  14.     #---------------------------------------------------------------------------
  15.     #---------------------------------PLeveling---------------------------------
  16.     #PlayerLeveling (Reward uses vault!)
  17.     xpforlvlup: 500
  18.     lvlupreward: iron_ingot
  19.     #---------------------------------------------------------------------------
  20.  
  21.     #---------------------------------------------------------------------------
  22.     #----------------------------------MaxLvL-----------------------------------
  23.     maxlvl: 1000 #MaxXp is used to mark max level of player (eg. 100 Bob[Lv100])
  24.     #---------------------------------------------------------------------------
  25.  
  26.     #---------------------------------------------------------------------------
  27.     #----------------------------------Suffix-----------------------------------
  28.     suffix: true
  29.     setsuffix: &8[&7Lv%{lvl.%player%}%&8] #Do NOT touch %{lvl.%player%}%
  30.     #---------------------------------------------------------------------------
  31.  
  32. #------------------------------------------------------------------------------------------------------
  33. every 5 second:
  34.     loop all players:
  35.         wipe loop-player's sidebar
  36.         set name of sidebar of loop-player to "&6&l%loop-player% status"
  37.         set score " &b&lLV&f: &e%{lvl.%loop-player%}%" in sidebar of loop-player to 8
  38.         set score " &6&lMineLV&f: &e%{min.%loop-player%}% " in sidebar of loop-player to 7
  39.         set score " &e&lMineExp&f: &e%{mining.%loop-player%}% " in sidebar of loop-player to 6
  40.         set score " &a&lXP&f: &e%{xp.%loop-player%}%  " in sidebar of loop-player to 5
  41.         set score " &e&lランク≫ %{prefix::%uuid of loop-player%}%" in sidebar of loop-player to 4
  42.         set score " &3  " in sidebar of loop-player to 3
  43.         set score " &2 " in sidebar of loop-player to 2
  44.  
  45. #------------------------------------------------------------------------------------------------------
  46. #
  47. #&e&lランク≫ %{prefix::%uuid of loop-player%}%
  48. #
  49. #
  50. #
  51. #
  52. #
  53.  
  54. variables:
  55.     {mining.%player%} = 0
  56.     {min.%player%} = 1
  57.     {xp.%player%} = 0
  58.     {lvl.%player%} = 1
  59.  
  60.  
  61. on any movement:
  62.     if {@playerleveling} is true:
  63.         if {mining.%player%} is greater or equal to {@xpforlvlup}:
  64.             if {lvl.%player%} is greater or equal to {@maxlvl}:
  65.                 stop
  66.             else:
  67.                 remove {@xpforlvlup} from {mining.%player%}
  68.                 remove {@xpforlvlup} from {xp.%player%}
  69.                 add 1 to {lvl.%player%}
  70.                 add 1 to {min.%player%}
  71.                 send "{@logo} &7レベルアップ!現在のLV: &a%{min.%player%}%" to player
  72.                 execute console command "/give %player% {@lvlupreward}"
  73.                 stop
  74.             if {xp.%player%} is greater or equal to {@xpforlvlup}:
  75.             if {lvl.%player%} is greater or equal to {@maxlvl}:
  76.                 stop
  77.             else:
  78.                 remove {@xpforlvlup} from {xp.%player%}
  79.                 add 1 to {lvl.%player%}
  80.                 send "{@logo} &7レベルアップ!現在のLV: &a%{lvl.%player%}%" to player
  81.                 execute console command "/give %player% {@lvlupreward}"
  82.                 stop
  83.  
  84. on break of stone:
  85.     if {@playerleveling} is true:
  86.         chance of 100%:
  87.             add 1 to {mining.%player%}
  88.             add 1 to {xp.%player%}
  89.             send "{@logo} &7&l[&a&l+&7&l]&b 1 EXP " to player
  90.  
  91. on break of coal_ore:
  92.     if {@playerleveling} is true:
  93.         chance of 99%:
  94.             add 2 to {mining.%player%}
  95.             add 2 to {xp.%player%}
  96.             send "{@logo} &7&l[&a&l+&7&l]&b 2 EXP " to player
  97.  
  98. on break of lapis_ore:
  99.     if {@playerleveling} is true:
  100.         chance of 99%:
  101.             add 4 to {mining.%player%}
  102.             add 4 to {xp.%player%}
  103.             send "{@logo} &7&l[&a&l+&7&l]&b 4 EXP " to player
  104.  
  105. on break of iron_ore:
  106.     if {@playerleveling} is true:
  107.         chance of 80%:
  108.             add 5 to {mining.%player%}
  109.             add 5 to {xp.%player%}
  110.             send "{@logo} &7&l[&a&l+&7&l]&b 5 EXP " to player
  111.  
  112. on break of gold_ore:
  113.     if {@playerleveling} is true:
  114.         chance of 80%:
  115.             add 7 to {mining.%player%}
  116.             add 7 to {xp.%player%}
  117.             send "{@logo} &7&l[&a&l+&7&l]&b 7 EXP " to player
  118.  
  119. on break of redstone_ore:
  120.     if {@playerleveling} is true:
  121.         chance of 70%:
  122.             add 10 to {mining.%player%}
  123.             add 10 to {xp.%player%}
  124.             send "{@logo} &7&l[&a&l+&7&l]&b 10 EXP " to player
  125.  
  126. on break of diamond_ore:
  127.     if {@playerleveling} is true:
  128.         chance of 40%:
  129.             add 15 to {mining.%player%}
  130.             add 15 to {xp.%player%}
  131.             send "{@logo} &7&l[&a&l+&7&l]&b 15 EXP " to player
  132.  
  133. on break of emerald_ore:
  134.     if {@playerleveling} is true:
  135.         chance of 20%:
  136.             add 20 to {mining.%player%}
  137.             add 20 to {xp.%player%}
  138.             send "{@logo} &7&l[&a&l+&7&l]&b 20 EXP " to player
  139.  
  140. on break of quartz_ore:
  141.     if {@playerleveling} is true:
  142.         chance of 10%:
  143.             add 30 to {mining.%player%}
  144.             add 30 to {xp.%player%}
  145.             send "{@logo} &7&l[&a&l+&7&l]&b 30 EXP " to player
  146.  
  147. command /resetstatus [<offline player>]:
  148.     permission: skript.k2r
  149.     permission message: あなたは権限を持っていません。
  150.     trigger:
  151.         if arg-1 is not set:
  152.             set {mining.%player%} to 0
  153.             set {min.%player%} to 1
  154.             set {xp.%player%} to 0
  155.             set {lvl.%player%} to 1
  156.             send "%player%のステータスをリセットしました"
  157.         if arg-1 is set:
  158.             set {mining.%arg-1%} to 0
  159.             set {min.%arg-1%} to 1
  160.             set {xp.%arg-1%} to 0
  161.             set {lvl.%arg-1%} to 1
  162.             send "%arg-1%のステータスをリセットしました"
  163.        
  164.  
  165. command /status [<offline player>]:
  166.     trigger:
  167.         if arg-1 is not set:
  168.             send "&a"
  169.             send "&7&l-:=|&6&l%player%&7&l|=:-:=&a&lstatus&7&l=:-|"
  170.             send "     &b&lLV&f: &e%{lvl.%player%}%           "
  171.             send "     &6&lMineLV&f: &e%{min.%player%}%          "
  172.             send "     &a&lXP&f: &e%{xp.%player%}%              "
  173.             send "     &e&lMineExp&f: &e%{mining.%player%}%  "
  174.             send "     &a&l{@xpforlvlup}までためるとLVUPします      "
  175.             send "&a"
  176.         if arg-1 is set:
  177.             send "&a"
  178.             send "&7&l-:=|&6&l%arg-1%&7&l|=:-:=&a&lstatus=:-|"
  179.             send "     &b&lLV&f: &e%{lvl.%arg-1%}%           "
  180.             send "     &6&lMineLV&f: &e%{min.%arg-1%}%          "
  181.             send "     &a&lXP&f: &e%{xp.%arg-1%}%              "
  182.             send "     &e&lMineExp&f: &e%{mining.%arg-1%}%  "
  183.             send "     &a&l{@xpforlvlup}までためるとLVUPします      "
  184.             send "&a"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top