stfwi / redstonepen

Minecraft mod adding a pen to draw Redstone tracks in all directions, a PLC for Redstone, and relays.
MIT License
15 stars 2 forks source link

[Feature Request] Redstone Timer #8

Closed rabrunos closed 2 years ago

rabrunos commented 2 years ago

Redstone Timer

Adjustment Fields Activation: 8000 ticks Deactivation 10000 ticks

When the day reaches 8000 ticks the timer emits a redstone signal and then deactivates the signal only when the day reaches 10000 ticks.

Adjustment Fields Activation: 8000 ticks Deactivation 10000 ticks

The timer emits a redstone signal for 8000 ticks and after that time has passed, it is off for 10000 ticks and then on again for 8000 ticks and so on.

stfwi commented 2 years ago

Hi, here I can help ;) I added a Redstone Controller block (like a simplified PLC) that you can program freely. I also has timers (PLC timers TON, TOF, TP), which react depending on input signals, or also the clock() and time() functions. With clock() you can use the total game time in ticks as input, and with time() it's the day time from 0 to 24000 (0 is sunrise, 12000 sunset, 18000 midnight, etc). Have a look into the block, maybe that's exactly what you need ;)

rabrunos commented 2 years ago

I understood! I will review these settings! Glad your Controller has such power! I'll try to replicate what you said!