I'm working on a map and I have just about everything set up but I need a 2 and a half minute timer exactly. I tried using a massive repeater clock but the map is big enough that the clock stops in certain locations which ruins the mechanic. I also have the map set to constant midnight so I can't use daylight sensors.
Is there a command or set of commands that will let me make a specific timer?
You could use a hopperclock and a scoreboard command. Make an objective named Timer. Hopperclocks operate at about 1 signal per second, so you could hook up a command adding 1 to the score of your objective. Then, have a testfor command so when it reaches 150, it does whatever you need it to do.
The Meaning of Life, the Universe, and Everything.
and there at once.
same as this one
Don't have one
Don't want one
/scoreboard objectives add timer dummy
/scoreboard players set fakeplayer timer 300 ((that number can be set higher or lower depending on how long you want the timer to take))
Place a hopper on the ground, then shift and place a hopper onto that one. Destroy the first hopper and shift place a hopper onto the second one. Place any item into either one. if it works, it should pass the item back and forth between the hoppers. Place a comparitor by one of the hoppers so that it lights up every second or so. Place a repeater right after that so the signal lasts longer. Then, wire up these commands to activate every second...
/scoreboard players remove fakeplayer timer 1
and... /scoreboard players test fakeplayer timer * 0
The second command will return true when the timer objective drops below 0. So, place a comparitor next to it and then a repeater. Hook this up to whatever you want to happen every time the clock pulses. In addition to that, if you want the clock to run again, have it activate this command...
/scoreboard players set fakeplayer timer 300 ((or whatever number))
That should make a clock that activates every couple of minutes. Try messing around with the value you set timer to in order to change how often the clock fires.