Jump to content

Help with countdown/time event


sdasdfadcD

Recommended Posts

I have this code and I'm trying to make it so I have a scoreboard that counts down to 0 and then it will clear the map, reset itself and so on. But I have 0 errors and I am completely stuck since it doesn't show up on my scoreboard at all

on command:
	if command is "mapclear":
		set {mapcleared} to now

every 1 seconds:
	loop all players:
		set {_difference} to difference between {mapcleared} and now
		set {_remaining-time} to difference between {_difference} and 2 hours
		wipe loop-player's sidebar
		set name of sidebar of loop-player to ""
		set score " &8&l» &7Mapclears in&f: %{_remaining-time}%" in sidebar of loop-player to 84

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...