My friends and I are coding a sandbox game in Minecraft. Instead of using the default daylight cycle, I want to make a button that causes the time to change. Of course, I could simply make two buttons, one for
/time set noon and one for
/time set midnight, but I want to make one button that basically changes night to day and day to night.
I have no idea where to even start, and although I've been working with commands for a while now, I've never tried anything like this.
Some background information:
I am on Java edition, so please don't suggest any bedrock ideas.
I can use chain command blocks if needed, as I have plenty of space to use.
I can use scoreboards if I must, but I'd much rather use one simple command. However, if scoreboards are necessary, I am willing to!
If any selection tool has to be used, I would much rather use @p than anything else. Please take this into consideration!
Please use only command blocks and minimal redstone. I cannot use daylight sensors as these command blocks will be underground and I can't have any circuits sticking out.
I know these are pretty picky rules, but I would really appreciate it if you could help me with this. Of course, like I mentioned, I could just have two separate buttons, so if there's no way, I am willing to do so.