MC1025

From MinecraftOnline
Jump to navigation Jump to search

MC1025 is a Craftbook IC that outputs a signal based on the current world time modulo a specified value.

World Time Modulus
About
ID MC1025
Type AISO
Self-Triggering No
Clickable No
Input Any
Output Single
Sign Format
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; defaults to 2.
      • Specifies the length of the IC's repeating cycle, being the deviser value.
      • Smaller values result in more frequent changes in output, while larger values result in longer cycles.
      • Needs to be a whole integer value.
  • Fourth Line
    • (y) optional; defaults to 0.
      • Specifies how long the output remains high within each cycle, being the value to compare the remainder against.
      • Smaller values result in longer high periods, while values closer to x result in shorter high periods.
      • Needs to be a whole integer value.


When activated, the IC outputs high if the current world time in seconds, modulo x, is greater than y. Otherwise, it outputs low.

In other words, the output is high when ([World time] % x) >= y.

The IC will output high for x - y - 1 seconds out of every x seconds, assuming the world time progresses normally.

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.

By default, x is 2 and y is 0. This means the IC outputs high whenever the current world time is odd, and low whenever it is even.

Examples

Example Setup

line1:
line2: [MC1026]
line3: 5
line4: 3

The following table shows the output of MC1025 with 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.

See Also