I get output like this: [21:19:06] It's day 1 of 3
What I would like to capture is several redstone "on-off" outputs:
00 (night), 01 (morning), 10 (noon), 11 (evening). This could actually simply be four separate redstone outputs, each going to a "hand" of a redstone lamp clock tower. But only one "hand" is lit at a time. I've seen redstone clocks using the light detectors, but /timefold seems to confuse them too much where an explicit signal from /timefold would be much easier to deal with.
A second output for what cycle may be useful, but it isn't critical compared to knowing what phase it is in and displaying that on the clock tower "hand".
Would there be a tutorial I missed on how to isolate random text from output within a command block?
What exactly do you plan to be your end result? I think you are much better off using /time query gametime/daytime combined with /stats along with a little scoreboard math, but I have no idea what you are actually trying to create so I can't help with the details yet.
http://www.planetminecraft.com/project/guruths-medieval-clock-towers/ has a clock tower using a light detector and redstone. The problem is that /timefold waits until just before "sunset time," then resets the sun to sunup. On our server it is configured to do this 3 day cycles and 2 night cycles. Night can be skipped by using beds.
The redstone method seems to get confused. /timefold advances the day cycle rather than setting back to "/time set 0." Since /timefold will output the information I need (day, night, sunrise, sunset, ignoring what part of the cycle it is in) then I hope I can get an output to light up each line of the clock. I modified my clock to always have the center lit, then I use redstone to drive three redstone lamps, one for each position for "time of day".
I am still entirely confused as to what times you are trying to display on the clocks. Do you want it to provide a fake time based on the fact that day is 3 times as long? Like instead of going from sunrise to sunset and back to sunrise when the next day starts, make it pretend it should be night?
What exactly do you want the clock towers to do?
Also, a plugin is not needed to create a 3x day and 2x night cycle. You can do this in vanilla with command blocks.
I'm open to using command blocks instead, but when I first started command blocks were not a consideration until I had time to get more comfortable with how they worked. The 1.9 changes help also. But the plugin was easier to throw in and configure as I had already used it. Now that I'm getting comfortable with command blocks, I'm open to doing it that way. Sorry, but a newb's gotta start somewhere.
The clock tower has four "arms" of redstone lights in a plus (+) formation. The light in the center is always on. Each arm of the + indicates "day" status of day/ noon (pointing up from center), evening/ sunset (pointing right from center), night (down), and morning (left). Hooking up the redstone is easy enough. If Timefold and BetterBeds did not alter the time, pure redstone without command blocks would be just fine since each phase sets pistons to force the power from the light detector in the right "direction". Skipping the night seems to throw redstone solutions in disarray. The output from /timefold <world> is unambiguous. If I understood command blocks well enough, I would search for the phase using "midstring" in the output and call the job done.
The /timefold command also gives a convenient way for players to find out what "phase" the day cycle is, such as "day 2 of 2". I'm not clear if a command block solution will accept a query like that. But I'm open to what works.
I was able to work it out using a Craftbook IC and setting it to toggle a lever for specific times. Thank you for your help. What I wanted was to have redstone show in four states. If you turned the image counter-clockwise so "noon" is "up", and replace the "slices of pie" with redstone lamp "bars", that is what my Clock Tower now displays. The /timefold plugin cycles through "just after 0600" and "just before 1800" three times for a 30 real-life minute day, then "just after sunset/ just before sunset" twice for a 14 real-life minute night, otherwise leaving sunset and sunrise as normal. The exception is when beds are used to skip night.
A useful Command Block project for Single Player might be a clock tower like this, though perhaps smaller, and with command blocks inside that duplicate the TimeFold plugin, but in a way that can be configured. For pure Vanilla worlds, this would be a godsend until Mojang allows tweaking of the day/ night cycle to something other than 20 min. days. When we were testing the Snapshot, we were really annoyed by only having 10 min. of daylight to work in. I'm fortunate to have what I need in place to NOT have to build such a thing, but if we were already using it on a Vanilla snapshot, I would not be using the plugin.
Absolutely everything you are asking for is 100% possible in vanilla. Including manipulating how long an entire day cycle lasts, or even just day or night. You can even configure anything entirely using custom gamerules. (Which I personally find better than the strict config file that timefold offers.)
If you are still interested, let me know, I can easily write up some commands to do 300% of what you are asking. Since Mojang gave us timers (scoreboard) and the /time command, anything like this is possible.
Since what I have at the moment works, I'll go with it for now. Situations change, and it is entirely possible by next summer I'll be using Realms, in which case there are NO plugins. But until then, leaving working stuff alone is best until it is no longer working. Thank you for your time, though.
Spigot 1.11, I'm using the TimeFold plugin at https://dev.bukkit.org/bukkit-plugins/timefold/
I get output like this: [21:19:06] It's day 1 of 3
What I would like to capture is several redstone "on-off" outputs:
00 (night), 01 (morning), 10 (noon), 11 (evening). This could actually simply be four separate redstone outputs, each going to a "hand" of a redstone lamp clock tower. But only one "hand" is lit at a time. I've seen redstone clocks using the light detectors, but /timefold seems to confuse them too much where an explicit signal from /timefold would be much easier to deal with.
A second output for what cycle may be useful, but it isn't critical compared to knowing what phase it is in and displaying that on the clock tower "hand".
Would there be a tutorial I missed on how to isolate random text from output within a command block?
What exactly do you plan to be your end result? I think you are much better off using /time query gametime/daytime combined with /stats along with a little scoreboard math, but I have no idea what you are actually trying to create so I can't help with the details yet.
http://www.planetminecraft.com/project/guruths-medieval-clock-towers/ has a clock tower using a light detector and redstone. The problem is that /timefold waits until just before "sunset time," then resets the sun to sunup. On our server it is configured to do this 3 day cycles and 2 night cycles. Night can be skipped by using beds.
The redstone method seems to get confused. /timefold advances the day cycle rather than setting back to "/time set 0." Since /timefold will output the information I need (day, night, sunrise, sunset, ignoring what part of the cycle it is in) then I hope I can get an output to light up each line of the clock. I modified my clock to always have the center lit, then I use redstone to drive three redstone lamps, one for each position for "time of day".
I am still entirely confused as to what times you are trying to display on the clocks. Do you want it to provide a fake time based on the fact that day is 3 times as long? Like instead of going from sunrise to sunset and back to sunrise when the next day starts, make it pretend it should be night?
What exactly do you want the clock towers to do?
Also, a plugin is not needed to create a 3x day and 2x night cycle. You can do this in vanilla with command blocks.
I'm open to using command blocks instead, but when I first started command blocks were not a consideration until I had time to get more comfortable with how they worked. The 1.9 changes help also. But the plugin was easier to throw in and configure as I had already used it. Now that I'm getting comfortable with command blocks, I'm open to doing it that way. Sorry, but a newb's gotta start somewhere.
The clock tower has four "arms" of redstone lights in a plus (+) formation. The light in the center is always on. Each arm of the + indicates "day" status of day/ noon (pointing up from center), evening/ sunset (pointing right from center), night (down), and morning (left). Hooking up the redstone is easy enough. If Timefold and BetterBeds did not alter the time, pure redstone without command blocks would be just fine since each phase sets pistons to force the power from the light detector in the right "direction". Skipping the night seems to throw redstone solutions in disarray. The output from /timefold <world> is unambiguous. If I understood command blocks well enough, I would search for the phase using "midstring" in the output and call the job done.
The /timefold command also gives a convenient way for players to find out what "phase" the day cycle is, such as "day 2 of 2". I'm not clear if a command block solution will accept a query like that. But I'm open to what works.
So when the first day is over and the second day starts, what time do you want displayed on the clock towers? Morning or night?
I was able to work it out using a Craftbook IC and setting it to toggle a lever for specific times. Thank you for your help. What I wanted was to have redstone show in four states. If you turned the image counter-clockwise so "noon" is "up", and replace the "slices of pie" with redstone lamp "bars", that is what my Clock Tower now displays. The /timefold plugin cycles through "just after 0600" and "just before 1800" three times for a 30 real-life minute day, then "just after sunset/ just before sunset" twice for a 14 real-life minute night, otherwise leaving sunset and sunrise as normal. The exception is when beds are used to skip night.
A useful Command Block project for Single Player might be a clock tower like this, though perhaps smaller, and with command blocks inside that duplicate the TimeFold plugin, but in a way that can be configured. For pure Vanilla worlds, this would be a godsend until Mojang allows tweaking of the day/ night cycle to something other than 20 min. days. When we were testing the Snapshot, we were really annoyed by only having 10 min. of daylight to work in. I'm fortunate to have what I need in place to NOT have to build such a thing, but if we were already using it on a Vanilla snapshot, I would not be using the plugin.
Absolutely everything you are asking for is 100% possible in vanilla. Including manipulating how long an entire day cycle lasts, or even just day or night. You can even configure anything entirely using custom gamerules. (Which I personally find better than the strict config file that timefold offers.)
If you are still interested, let me know, I can easily write up some commands to do 300% of what you are asking. Since Mojang gave us timers (scoreboard) and the /time command, anything like this is possible.
Since what I have at the moment works, I'll go with it for now. Situations change, and it is entirely possible by next summer I'll be using Realms, in which case there are NO plugins. But until then, leaving working stuff alone is best until it is no longer working. Thank you for your time, though.