Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- #---------------------------------------------------------------------------
- #-----------------------------------Logo------------------------------------
- logo: &8[&bK2RServer&8]&7|
- #---------------------------------------------------------------------------
- #---------------------------------------------------------------------------
- #-----------------------------------Types-----------------------------------
- playerleveling: true
- monsterleveling: true
- #---------------------------------------------------------------------------
- #---------------------------------------------------------------------------
- #---------------------------------PLeveling---------------------------------
- #PlayerLeveling (Reward uses vault!)
- xpforlvlup: 50
- lvlupreward: minecraft:book 1 0 {"display":{"Name":"§aLVUP報酬カード"},"ench":[{"id":0s,"lvl":0s}],"HideFlags":1}
- #---------------------------------------------------------------------------
- #---------------------------------------------------------------------------
- #----------------------------------MaxLvL-----------------------------------
- maxlvl: 100 #MaxXp is used to mark max level of player (eg. 100 Bob[Lv100])
- #---------------------------------------------------------------------------
- variables:
- {mining.%player%} = 0
- {min.%player%} = 0
- {xp.%player%} = 0
- {lvl.%player%} = 0
- 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 "/eco give %player% {@lvlupreward}"
- stop
- on mine of any ore:
- if {@playerleveling} is true:
- chance of 80%:
- add 1 to {mining.%player%}
- add 1 to {xp.%player%}
- send "{@logo} &7&l[&a&l+&7&l]&b 1 EXP " to player
- command /status [<offline player>]:
- trigger:
- if arg-1 is not set:
- send "&a"
- send "&7&l-:=|&6&l%player%&7&l|=:-:=&a&lstatus=:-|"
- 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