So, I've again decided to have a go at making an analog clocktower with redstone and lamps after tabling the project for a while. The issue I'm having is that clearly, players are going to sleep through some of the nights and that will throw off the timing. I can deal with that and reset the clock to the correct time with minimal delay (about 10 minecraft minutes). That is, if I know when the players have slept.
Originally I was just going to have a circuit checking if a daylight sensor had skipped from outputting less than 6 power to outputting 7 power (what it outputs when you wake up from a bed). The issue is that daylight sensors output different levels depending on the weather. And if it's thundering, you can sleep at any time.
Meaning that you could go to sleep at 1040 ticks when it's thundering, and the daylight sensor is outputting 7 strong, and it would bump the time back to 0 ticks and still be outputting 7, leaving my clock off by 1040 ticks. Can anyone think of a way around this? I know it's an edge case, but still. (besides, just having a nailed down redstone indicator of "beds have been used" would be nice).
Sorry, I should have been more specific! I'm trying to do this without command blocks. If I was using them I would definitely be using that command at the start of every day to check that things were synced up
I'd say this is more possible/easier with mods or server plugins then Vanilla Redstone, meaning if you want player names/actions or otherwise. That or if it were how many are in a bed like with the mod "Morpheus". But without commands and not going with mods/plugins I don't know if it's possible, but if so might be tricky to pull off.
Rollback Post to RevisionRollBack
Niche Community Content Finder, Youtuber, Modpack/Map Maker, Duck
Forum Thread Maintainer for APortingCore, Liteloader Download HUB, Asphodel Meadows, Fabric Project, Legacy Fabric/Cursed Fabric, Power API, Rift/Fabric/Forge 1.13 to 1.17.
I'm having trouble understanding exactly what the Wiki says about inverted day light sensors but it most definitely states that they aren't affected by weather so I'd play around with them and see if they provide a useful signal.
Yeah the wiki is pretty weird, I actually plan on updating it and maybe adding a chart (because seriously even if it's simple there should be a chart for both). There's some stuff that's flat-out wrong, too.
I did find that there's two times that inverted daylight sensors are all the same, regardless of weather (about 4:20 and 7:20). From my testing though weather actually does impact the sensors, as long as you're not in a desert. I'm guessing that part was put in by someone on a redstone superflat world. I'm getting someone else to check first to make sure I'm not going crazy before I change the wiki at all though
There are a few different ideas that i have. The first it to hook up a system that only uses the daylight sensor to reset the clock an nothing else. This may be able to be done with comparator locking but im not sure.
Another is to use item filters as a timer for the system. So work out how many redstone ticks it is from waking up to the time you are able to sleep again. Filter items into droppers to display the signal you want on the clock, and the only thing that the daylight sensor would do its unlock the hoppers at the bottom letting the clock be reset and all the items go back into the storage at the top waiting to be filtered again.
This is a very complex system so im having a hard time conveying my thoughts but maybe you get the idea.
So, I've again decided to have a go at making an analog clocktower with redstone and lamps after tabling the project for a while. The issue I'm having is that clearly, players are going to sleep through some of the nights and that will throw off the timing. I can deal with that and reset the clock to the correct time with minimal delay (about 10 minecraft minutes). That is, if I know when the players have slept.
Originally I was just going to have a circuit checking if a daylight sensor had skipped from outputting less than 6 power to outputting 7 power (what it outputs when you wake up from a bed). The issue is that daylight sensors output different levels depending on the weather. And if it's thundering, you can sleep at any time.
Meaning that you could go to sleep at 1040 ticks when it's thundering, and the daylight sensor is outputting 7 strong, and it would bump the time back to 0 ticks and still be outputting 7, leaving my clock off by 1040 ticks. Can anyone think of a way around this? I know it's an edge case, but still. (besides, just having a nailed down redstone indicator of "beds have been used" would be nice).
I not very good with commands but can't you access the result of "/time query daytime" somehow?
Just testing.
Sorry, I should have been more specific! I'm trying to do this without command blocks. If I was using them I would definitely be using that command at the start of every day to check that things were synced up
I'd say this is more possible/easier with mods or server plugins then Vanilla Redstone, meaning if you want player names/actions or otherwise. That or if it were how many are in a bed like with the mod "Morpheus". But without commands and not going with mods/plugins I don't know if it's possible, but if so might be tricky to pull off.
Niche Community Content Finder, Youtuber, Modpack/Map Maker, Duck
Forum Thread Maintainer for APortingCore, Liteloader Download HUB, Asphodel Meadows, Fabric Project, Legacy Fabric/Cursed Fabric, Power API, Rift/Fabric/Forge 1.13 to 1.17.
Wikis I Maintain: https://modwiki.miraheze.org/wiki/User:SuntannedDuck2
I'm having trouble understanding exactly what the Wiki says about inverted day light sensors but it most definitely states that they aren't affected by weather so I'd play around with them and see if they provide a useful signal.
Just testing.
Yeah the wiki is pretty weird, I actually plan on updating it and maybe adding a chart (because seriously even if it's simple there should be a chart for both). There's some stuff that's flat-out wrong, too.
I did find that there's two times that inverted daylight sensors are all the same, regardless of weather (about 4:20 and 7:20). From my testing though weather actually does impact the sensors, as long as you're not in a desert. I'm guessing that part was put in by someone on a redstone superflat world. I'm getting someone else to check first to make sure I'm not going crazy before I change the wiki at all though
There are a few different ideas that i have. The first it to hook up a system that only uses the daylight sensor to reset the clock an nothing else. This may be able to be done with comparator locking but im not sure.
Another is to use item filters as a timer for the system. So work out how many redstone ticks it is from waking up to the time you are able to sleep again. Filter items into droppers to display the signal you want on the clock, and the only thing that the daylight sensor would do its unlock the hoppers at the bottom letting the clock be reset and all the items go back into the storage at the top waiting to be filtered again.
This is a very complex system so im having a hard time conveying my thoughts but maybe you get the idea.
Hope all goes well!
Check me out on YouTube!