Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- add 0 to {lv.%player%} if {lv.%player%} is not set
- add 0 to {exp.%player%} if {exp.%player%} is not set
- add 0 to {exp1.%player%} if {exp1.%player%} is not set
- add 0 to {str.%player%} if {str.%player%} is not set
- add 0 to {vit.%player%} if {vt.%player%} is not set
- set name of sidebar of player to "&f&lステータス"
- set id based score "&6&lLv:%{lv.%player%}%" in sidebar of player to 9 with id "%player%.id9"
- set id based score "&a&lEXP:%{exp.%player%}%/%{exp1.%player%}%" in sidebar of player to 7 with id "%player%.id7"
- set id based score "&d&lHP:%player's health * 2%/%player's max health * 2%" in sidebar of player to 5 with id "%player%.id5"
- set id based score "&c&l攻撃力:%{str.%player%}%" in sidebar of player to 3 with id "%player%.id3"
- set id based score "&b&l防御力:%{vit.%player%}%" in sidebar of player to 1 with id "%player%.id1"
- #以下空白
- set id based score "&7=========== " in sidebar of player to 10 with id "%player%.id10"
- set id based score " " in sidebar of player to 8 with id "%player%.id8"
- set id based score " " in sidebar of player to 6 with id "%player%.id6"
- set id based score " " in sidebar of player to 4 with id "%player%.id4"
- set id based score " " in sidebar of player to 2 with id "%player%.id2"
- set id based score "&7===========" in sidebar of player to 0 with id "%player%.id0"
- every second in "world":
- loop all players:
- set loop-player's max health to 10 + {hp.%loop-player%} * 0.5
- if {lv.%loop-player%} < 100 :
- set {exp1.%loop-player%} to {lv.%loop-player%} ^ 2 * 2 + {lv.%loop-player%} * 5
- if {exp.%loop-player%} >= {exp1.%loop-player%}:
- add 1 to {lv.%loop-player%}
- set {exp.%loop-player%} to 0
- add 2 to {sp.%loop-player%}
- if {lv.%loop-player%} = 100 :
- if {exp.%loop-player%} >= {exp1.%loop-player%}:
- set {exp.%loop-player%} to 0
- update score with id "%loop-player%.id9" to "&6&lLv:%{lv.%loop-player%}%" and 9
- update score with id "%loop-player%.id7" to "&a&lEXP:%{exp.%loop-player%}%/%{exp1.%loop-player%}%" and 7
- update score with id "%loop-player%.id5" to "&d&lHP:%loop-player's health * 2%/%loop-player's max health * 2%" and 5
- update score with id "%loop-player%.id3" to "&c&l攻撃力:%{str.%loop-player%}%" and 3
- update score with id "%loop-player%.id1" to "&b&l防御力:%{vit.%loop-player%}%" and 1
- command /exp <num>:
- permission: op
- trigger:
- add arg 1 to {exp.%player%}
- command /expreset:
- permission: op
- trigger:
- set {lv.%player%} to 0
- set {exp.%player%} to 0
- set {exp1.%player%} to 0
- set {str.%player%} to 0
- set {vit.%player%} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement