Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function scoreboard(p: player):
- wipe {_p}'s sidebar
- set name of sidebar of {_p} to "&3Quests"
- set score "&bZombies:" in sidebar of {_p} to 10
- if {quest.%{_p}%.zombieskilled} is not set:
- set score "&90/10 Zombies" in sidebar of {_p} to 9
- else:
- if {quest.%{_p}%.zombieskilled} is more than 9:
- set score "&910/10 Zombies" in sidebar of {_p} to 9
- else:
- set score "&9%{quest.%{_p}%.zombieskilled}%/10 Zombies" in sidebar of {_p} to 9
- set score "" in sidebar of {_p} to 8
- set score "&bDirt" in sidebar of {_p} to 7
- if {quest.%{_p}%.dirtmined} is not set:
- set score "&90/10 Dirt" in sidebar of {_p} to 6
- else:
- if {quest.%{_p}%.dirtmined} is more than 9:
- set score "&910/10 Dirt" in sidebar of {_p} to 6
- else:
- set score "&9%{quest.%{_p}%.dirtmined}%/10 Dirt" in sidebar of {_p} to 6
- every 1 tick:
- loop all players in world "CraftWars":
- scoreboard(loop-player)
Advertisement
Add Comment
Please, Sign In to add comment