Advertisement
sirayasiki

Lv

Mar 25th, 2021 (edited)
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. on join:
  2. add 0 to {lv.%player%} if {lv.%player%} is not set
  3. add 0 to {exp.%player%} if {exp.%player%} is not set
  4. add 0 to {exp1.%player%} if {exp1.%player%} is not set
  5. add 0 to {str.%player%} if {str.%player%} is not set
  6. add 0 to {vit.%player%} if {vt.%player%} is not set
  7.  
  8. set name of sidebar of player to "&f&lステータス"
  9. set id based score "&6&lLv:%{lv.%player%}%" in sidebar of player to 9 with id "%player%.id9"
  10. set id based score "&a&lEXP:%{exp.%player%}%/%{exp1.%player%}%" in sidebar of player to 7 with id "%player%.id7"
  11. 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"
  12. set id based score "&c&l攻撃力:%{str.%player%}%" in sidebar of player to 3 with id "%player%.id3"
  13. set id based score "&b&l防御力:%{vit.%player%}%" in sidebar of player to 1 with id "%player%.id1"
  14. #以下空白
  15. set id based score "&7=========== " in sidebar of player to 10 with id "%player%.id10"
  16. set id based score " " in sidebar of player to 8 with id "%player%.id8"
  17. set id based score " " in sidebar of player to 6 with id "%player%.id6"
  18. set id based score " " in sidebar of player to 4 with id "%player%.id4"
  19. set id based score " " in sidebar of player to 2 with id "%player%.id2"
  20. set id based score "&7===========" in sidebar of player to 0 with id "%player%.id0"
  21.  
  22.  
  23. every second in "world":
  24. loop all players:
  25. set loop-player's max health to 10 + {hp.%loop-player%} * 0.5
  26.  
  27. if {lv.%loop-player%} < 100 :
  28. set {exp1.%loop-player%} to {lv.%loop-player%} ^ 2 * 2 + {lv.%loop-player%} * 5
  29. if {exp.%loop-player%} >= {exp1.%loop-player%}:
  30. add 1 to {lv.%loop-player%}
  31. set {exp.%loop-player%} to 0
  32. add 2 to {sp.%loop-player%}
  33. if {lv.%loop-player%} = 100 :
  34. if {exp.%loop-player%} >= {exp1.%loop-player%}:
  35. set {exp.%loop-player%} to 0
  36.  
  37. update score with id "%loop-player%.id9" to "&6&lLv:%{lv.%loop-player%}%" and 9
  38. update score with id "%loop-player%.id7" to "&a&lEXP:%{exp.%loop-player%}%/%{exp1.%loop-player%}%" and 7
  39. update score with id "%loop-player%.id5" to "&d&lHP:%loop-player's health * 2%/%loop-player's max health * 2%" and 5
  40. update score with id "%loop-player%.id3" to "&c&l攻撃力:%{str.%loop-player%}%" and 3
  41. update score with id "%loop-player%.id1" to "&b&l防御力:%{vit.%loop-player%}%" and 1
  42.  
  43.  
  44.  
  45.  
  46. command /exp <num>:
  47. permission: op
  48. trigger:
  49. add arg 1 to {exp.%player%}
  50.  
  51. command /expreset:
  52. permission: op
  53. trigger:
  54. set {lv.%player%} to 0
  55. set {exp.%player%} to 0
  56. set {exp1.%player%} to 0
  57. set {str.%player%} to 0
  58. set {vit.%player%} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement