MC1025
| About | |
|---|---|
| ID | MC1025 |
| Self Triggered | No |
| Clickable | No |
| Input | Yes |
| Output | Yes |
| First line | TIME MODULUS |
| Second line | [MC1025] |
| Third line | x (optional; default 2) |
| Fourth line | y (optional; default 0) |
| Craftbook Page | |
Details
- Second Line
- [MC1025]
- Third Line
- x (optional; default 2) = The divisor
- Fourth Line
- y (optional; default 0) = The number to compare the remainder to
When activated, outputs high if the current world time (in seconds) mod x is greater than y. Otherwise, outputs low.
In other words: outputs high if ([world time] % x) > y. Or: output will be high for x - y - 1 out of every x seconds.
World time in this case is in reference to the current time provided by Minecraft's daylight cycle. The units for this time are in seconds.
Generally speaking, the smaller the value of x is the faster the IC will activate. Additionally, if y is closer to 0 the IC will likely output high for a longer period of time, where as if it is closer to x it will only be on for short pulses.
Default behaviour is to output high if the current world time is odd. More specifically, x is set to 2 and y is set to 0 by default.
Examples
The following table shows the output of MC1025 for x = 5 and y = 3:
| Seconds | Remainder | Output |
|---|---|---|
| 1 | 1 | LOW |
| 2 | 2 | LOW |
| 3 | 3 | LOW |
| 4 | 4 | HIGH |
| 5 | 0 | LOW |
| 6 | 1 | LOW |
| 7 | 2 | LOW |
| 8 | 3 | LOW |
| 9 | 4 | HIGH |
| 10 | 0 | LOW |
Notable and Practical Uses
This IC can be used to make asymmetrical and long-period clocks. This can be useful for:
- Clocks that have periods of hours or days
- Lights that blink instead of staying on and off for the same amount of time
- Calendars
- Combining the functions of MCU440 and MC0420
The world time value is directly tied to the current in-game time, making this IC suitable for day/night cycle measurements and other gameplay-related timing systems.
Because the value follows the world's time progression, actions that change world time (such as skipping the night or /time changes) will immediately affect this IC's behavior.