Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # MINE LEVEL SYSTEM
- options:
- #CONFIG
- #---------------------------------------------------------------------------
- #-----------------------------------Logo------------------------------------
- logo: &8[&bK2RServer&8]&7|
- #---------------------------------------------------------------------------
- #---------------------------------------------------------------------------
- #-----------------------------------Types-----------------------------------
- playerleveling: true
- #---------------------------------------------------------------------------
- #---------------------------------------------------------------------------
- #---------------------------------PLeveling---------------------------------
- #PlayerLeveling (Reward uses vault!)
- xpforlvlup: 500
- lvlupreward: iron_ingot
- #---------------------------------------------------------------------------
- #---------------------------------------------------------------------------
- #----------------------------------MaxLvL-----------------------------------
- maxlvl: 1000 #MaxXp is used to mark max level of player (eg. 100 Bob[Lv100])
- #---------------------------------------------------------------------------
- #---------------------------------------------------------------------------
- #----------------------------------Suffix-----------------------------------
- suffix: true
- setsuffix: &8[&7Lv%{lvl.%player%}%&8] #Do NOT touch %{lvl.%player%}%
- #---------------------------------------------------------------------------
- #------------------------------------------------------------------------------------------------------
- every 5 second:
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&6&l%loop-player% status"
- set score " &b&lLV&f: &e%{lvl.%loop-player%}%" in sidebar of loop-player to 8
- set score " &6&lMineLV&f: &e%{min.%loop-player%}% " in sidebar of loop-player to 7
- set score " &e&lMineExp&f: &e%{mining.%loop-player%}% " in sidebar of loop-player to 6
- set score " &a&lXP&f: &e%{xp.%loop-player%}% " in sidebar of loop-player to 5
- set score " &e&lランク≫ %{prefix::%uuid of loop-player%}%" in sidebar of loop-player to 4
- set score " &3 " in sidebar of loop-player to 3
- set score " &2 " in sidebar of loop-player to 2
- #------------------------------------------------------------------------------------------------------
- #
- #&e&lランク≫ %{prefix::%uuid of loop-player%}%
- #
- #
- #
- #
- #
- variables:
- {mining.%player%} = 0
- {min.%player%} = 1
- {xp.%player%} = 0
- {lvl.%player%} = 1
- on any movement:
- if {@playerleveling} is true:
- if {mining.%player%} is greater or equal to {@xpforlvlup}:
- if {lvl.%player%} is greater or equal to {@maxlvl}:
- stop
- else:
- remove {@xpforlvlup} from {mining.%player%}
- remove {@xpforlvlup} from {xp.%player%}
- add 1 to {lvl.%player%}
- add 1 to {min.%player%}
- send "{@logo} &7レベルアップ!現在のLV: &a%{min.%player%}%" to player
- execute console command "/give %player% {@lvlupreward}"
- stop
- if {xp.%player%} is greater or equal to {@xpforlvlup}:
- if {lvl.%player%} is greater or equal to {@maxlvl}:
- stop
- else:
- remove {@xpforlvlup} from {xp.%player%}
- add 1 to {lvl.%player%}
- send "{@logo} &7レベルアップ!現在のLV: &a%{lvl.%player%}%" to player
- execute console command "/give %player% {@lvlupreward}"
- stop
- on break of stone:
- if {@playerleveling} is true:
- chance of 100%:
- add 1 to {mining.%player%}
- add 1 to {xp.%player%}
- send "{@logo} &7&l[&a&l+&7&l]&b 1 EXP " to player
- on break of coal_ore:
- if {@playerleveling} is true:
- chance of 99%:
- add 2 to {mining.%player%}
- add 2 to {xp.%player%}
- send "{@logo} &7&l[&a&l+&7&l]&b 2 EXP " to player
- on break of lapis_ore:
- if {@playerleveling} is true:
- chance of 99%:
- add 4 to {mining.%player%}
- add 4 to {xp.%player%}
- send "{@logo} &7&l[&a&l+&7&l]&b 4 EXP " to player
- on break of iron_ore:
- if {@playerleveling} is true:
- chance of 80%:
- add 5 to {mining.%player%}
- add 5 to {xp.%player%}
- send "{@logo} &7&l[&a&l+&7&l]&b 5 EXP " to player
- on break of gold_ore:
- if {@playerleveling} is true:
- chance of 80%:
- add 7 to {mining.%player%}
- add 7 to {xp.%player%}
- send "{@logo} &7&l[&a&l+&7&l]&b 7 EXP " to player
- on break of redstone_ore:
- if {@playerleveling} is true:
- chance of 70%:
- add 10 to {mining.%player%}
- add 10 to {xp.%player%}
- send "{@logo} &7&l[&a&l+&7&l]&b 10 EXP " to player
- on break of diamond_ore:
- if {@playerleveling} is true:
- chance of 40%:
- add 15 to {mining.%player%}
- add 15 to {xp.%player%}
- send "{@logo} &7&l[&a&l+&7&l]&b 15 EXP " to player
- on break of emerald_ore:
- if {@playerleveling} is true:
- chance of 20%:
- add 20 to {mining.%player%}
- add 20 to {xp.%player%}
- send "{@logo} &7&l[&a&l+&7&l]&b 20 EXP " to player
- on break of quartz_ore:
- if {@playerleveling} is true:
- chance of 10%:
- add 30 to {mining.%player%}
- add 30 to {xp.%player%}
- send "{@logo} &7&l[&a&l+&7&l]&b 30 EXP " to player
- command /resetstatus [<offline player>]:
- permission: skript.k2r
- permission message: あなたは権限を持っていません。
- trigger:
- if arg-1 is not set:
- set {mining.%player%} to 0
- set {min.%player%} to 1
- set {xp.%player%} to 0
- set {lvl.%player%} to 1
- send "%player%のステータスをリセットしました"
- if arg-1 is set:
- set {mining.%arg-1%} to 0
- set {min.%arg-1%} to 1
- set {xp.%arg-1%} to 0
- set {lvl.%arg-1%} to 1
- send "%arg-1%のステータスをリセットしました"
- command /status [<offline player>]:
- trigger:
- if arg-1 is not set:
- send "&a"
- send "&7&l-:=|&6&l%player%&7&l|=:-:=&a&lstatus&7&l=:-|"
- send " &b&lLV&f: &e%{lvl.%player%}% "
- send " &6&lMineLV&f: &e%{min.%player%}% "
- send " &a&lXP&f: &e%{xp.%player%}% "
- send " &e&lMineExp&f: &e%{mining.%player%}% "
- send " &a&l{@xpforlvlup}までためるとLVUPします "
- send "&a"
- if arg-1 is set:
- send "&a"
- send "&7&l-:=|&6&l%arg-1%&7&l|=:-:=&a&lstatus=:-|"
- send " &b&lLV&f: &e%{lvl.%arg-1%}% "
- send " &6&lMineLV&f: &e%{min.%arg-1%}% "
- send " &a&lXP&f: &e%{xp.%arg-1%}% "
- send " &e&lMineExp&f: &e%{mining.%arg-1%}% "
- send " &a&l{@xpforlvlup}までためるとLVUPします "
- send "&a"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement