#How do i do this or is it possible?
1 messages · Page 1 of 1 (latest)
hmm, I think this is possible only with scripts
i don't think there is something that detects the time of day just with commands
There isn't unfortunately.
Technically yeah it's possible but it's tedious
Basically, you freeze the day so it can't advance automatically. Set the time to 0 and a score called "timeOfDay" to 0, then increment both the score and the time if the day (/time add iirc) at the same time. That's really the best solution that I know of
Good solution for vanilla
I don't normally recommend redstone for command stuff but daylight sensor would work just fine.
Depends on the desired time.
Redstone may or may not have enough of an accurate output strength to detect the exact specific time.
In this case "12001..23999", it would definitely work
Youd have to incorporate a daylight sensor because of sleeping
Yeah, true.
Upon hitting a certain amount with the daylight sensor, set the score back to zero
If they're enabling pvp then there's likely multiple users online at a given moment, but that is a very good point
I used this when I started learning commands for a daily msg system that told players the sun was setting or rising. Used a barrel with 4 nonstackable items to help with timing.
For a command system you'd need sleep detection, daycycle off, time commands to simulate day changing, and of course your scoreboard for enabling pvp
Thank you a lot guys!
For their help and amazing suggestions. The tips were extremely helpful, especially the ideas of incorporating the daylight sensor and adjusting the controls to deal with players' weather and sleep 