Zeldaboy111

Skript #143

Apr 10th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. function scoreboard(p: player):
  2. wipe {_p}'s sidebar
  3.  
  4. set name of sidebar of {_p} to "&3Quests"
  5. set score "&bZombies:" in sidebar of {_p} to 10
  6.  
  7. if {quest.%{_p}%.zombieskilled} is not set:
  8. set score "&90/10 Zombies" in sidebar of {_p} to 9
  9.  
  10. else:
  11. if {quest.%{_p}%.zombieskilled} is more than 9:
  12. set score "&910/10 Zombies" in sidebar of {_p} to 9
  13.  
  14. else:
  15. set score "&9%{quest.%{_p}%.zombieskilled}%/10 Zombies" in sidebar of {_p} to 9
  16.  
  17. set score "" in sidebar of {_p} to 8
  18. set score "&bDirt" in sidebar of {_p} to 7
  19.  
  20. if {quest.%{_p}%.dirtmined} is not set:
  21. set score "&90/10 Dirt" in sidebar of {_p} to 6
  22.  
  23. else:
  24. if {quest.%{_p}%.dirtmined} is more than 9:
  25. set score "&910/10 Dirt" in sidebar of {_p} to 6
  26.  
  27. else:
  28. set score "&9%{quest.%{_p}%.dirtmined}%/10 Dirt" in sidebar of {_p} to 6
  29.  
  30.  
  31.  
  32.  
  33. every 1 tick:
  34. loop all players in world "CraftWars":
  35. scoreboard(loop-player)
Advertisement
Add Comment
Please, Sign In to add comment