Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /status [<player>]:
- trigger:
- if arg 1 is not set:
- send "&7---&bYour Status&7---"
- send "&eレベル&7:&a%{level.%uuid of player%}%&7/999"
- send "&e所持経験値&7:&a%{xp.%uuid of player%}%"
- if {level.%uuid of player%} is not 999:
- send "&e次のレベルに必要な経験値&7:&a%{nextlv.%uuid of player%}%"
- stop
- send "&7---&b%arg 1%'s Status&7---"
- send "&eレベル&7:&a%{level.%uuid of arg 1%}%&7/999"
- send "&e所持経験値&7:&a%{xp.%uuid of arg 1%}%"
- if {level.%uuid of arg 1%} is not 999:
- send "&e次のレベルに必要な経験値&7:&a%{nextlv.%uuid of arg 1%}%"
- on break:
- if event-block is stone:
- add 1 to {xp.%uuid of player%}
- if event-block is coal ore:
- add 5 to {xp.%uuid of player%}
- if event-block is iron ore:
- add 10 to {xp.%uuid of player%}
- if event-block is gold ore:
- add 15 to {xp.%uuid of player%}
- if event-block is diamond ore:
- add 20 to {xp.%uuid of player%}
- if event-block is lapis ore:
- add 25 to {xp.%uuid of player%}
- if event-block is redstone ore:
- add 30 to {xp.%uuid of player%}
- if event-block is emerald ore:
- add 35 to {xp.%uuid of player%}
- if event-block is obsidian:
- add 40 to {xp.%uuid of player%}
- if {xp.%uuid of player%} is more than or equal to {nextlv.%uuid of player%}:
- if {level.%uuid of player%} is 999:
- stop
- add 1 to {level.%uuid of player%}
- broadcast "&7--&dLevel Up!&7--"
- broadcast "&a%player%&eさんのレベルが&b%{level.%uuid of player%}%&eになりました!"
- broadcast "&7-----------------"
- if {level.%uuid of player%} is 999:
- stop
- set {nextlv.%uuid of player%} to {nextlv.%uuid of player%} * 2
- send "&b次のレベルアップに必要な経験値は&a%{nextlv.%uuid of player%}%&bポイントです。"
- stop
- on join:
- if {level.%uuid of player%} is not set:
- set {level.%uuid of player%} to 1
- set {nextlv.%uuid of player%} to 75
- on script load:
- loop all players:
- if {level.%uuid of loop-player%} is not set:
- set {level.%uuid of loop-player%} to 1
- set {nextlv.%uuid of loop-player%} to 75
- every second:
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&eステータス"
- set score "&aプレイヤー数&7:&d %amount of players%人&7/%maximum players%人" in sidebar of loop-player to 5
- set score "&r" in sidebar of loop-player to 4
- set score "&aレベル&7:&d%{level.%uuid of loop-player%}%&7/999" in sidebar of loop-player to 3
- set score "&a所持経験値&7:&d%{xp.%uuid of loop-player%}%" in sidebar of loop-player to 2
- if {level.%uuid of loop-player%} is not 999:
- 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