kjfalkeiae

Untitled

Mar 17th, 2019
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 KB | None | 0 0
  1. command /status [<player>]:
  2. trigger:
  3. if arg 1 is not set:
  4. send "&7---&bYour Status&7---"
  5. send "&eレベル&7:&a%{level.%uuid of player%}%&7/999"
  6. send "&e所持経験値&7:&a%{xp.%uuid of player%}%"
  7. if {level.%uuid of player%} is not 999:
  8. send "&e次のレベルに必要な経験値&7:&a%{nextlv.%uuid of player%}%"
  9. stop
  10. send "&7---&b%arg 1%'s Status&7---"
  11. send "&eレベル&7:&a%{level.%uuid of arg 1%}%&7/999"
  12. send "&e所持経験値&7:&a%{xp.%uuid of arg 1%}%"
  13. if {level.%uuid of arg 1%} is not 999:
  14. send "&e次のレベルに必要な経験値&7:&a%{nextlv.%uuid of arg 1%}%"
  15.  
  16. on break:
  17. if event-block is stone:
  18. add 1 to {xp.%uuid of player%}
  19. if event-block is coal ore:
  20. add 5 to {xp.%uuid of player%}
  21. if event-block is iron ore:
  22. add 10 to {xp.%uuid of player%}
  23. if event-block is gold ore:
  24. add 15 to {xp.%uuid of player%}
  25. if event-block is diamond ore:
  26. add 20 to {xp.%uuid of player%}
  27. if event-block is lapis ore:
  28. add 25 to {xp.%uuid of player%}
  29. if event-block is redstone ore:
  30. add 30 to {xp.%uuid of player%}
  31. if event-block is emerald ore:
  32. add 35 to {xp.%uuid of player%}
  33. if event-block is obsidian:
  34. add 40 to {xp.%uuid of player%}
  35. if {xp.%uuid of player%} is more than or equal to {nextlv.%uuid of player%}:
  36. if {level.%uuid of player%} is 999:
  37. stop
  38. add 1 to {level.%uuid of player%}
  39. broadcast "&7--&dLevel Up!&7--"
  40. broadcast "&a%player%&eさんのレベルが&b%{level.%uuid of player%}%&eになりました!"
  41. broadcast "&7-----------------"
  42. if {level.%uuid of player%} is 999:
  43. stop
  44. set {nextlv.%uuid of player%} to {nextlv.%uuid of player%} * 2
  45. send "&b次のレベルアップに必要な経験値は&a%{nextlv.%uuid of player%}%&bポイントです。"
  46. stop
  47.  
  48. on join:
  49. if {level.%uuid of player%} is not set:
  50. set {level.%uuid of player%} to 1
  51. set {nextlv.%uuid of player%} to 75
  52.  
  53. on script load:
  54. loop all players:
  55. if {level.%uuid of loop-player%} is not set:
  56. set {level.%uuid of loop-player%} to 1
  57. set {nextlv.%uuid of loop-player%} to 75
  58.  
  59. every second:
  60. loop all players:
  61. wipe loop-player's sidebar
  62. set name of sidebar of loop-player to "&eステータス"
  63. set score "&aプレイヤー数&7:&d %amount of players%人&7/%maximum players%人" in sidebar of loop-player to 5
  64. set score "&r" in sidebar of loop-player to 4
  65. set score "&aレベル&7:&d%{level.%uuid of loop-player%}%&7/999" in sidebar of loop-player to 3
  66. set score "&a所持経験値&7:&d%{xp.%uuid of loop-player%}%" in sidebar of loop-player to 2
  67. if {level.%uuid of loop-player%} is not 999:
  68. set score "&aレベルアップに必要な経験値&7:&d%{nextlv.%uuid of loop-player%}%" in sidebar of loop-player to 1
Advertisement
Add Comment
Please, Sign In to add comment