2 new Random bits ICs
LadyCailinBot opened this issue ยท 9 comments
CRAFTBOOK-2794 - Reported by jjkrause
1 - The MC2020 generates 3 random bits whenever the input (the "clock") goes from low to high. With MC2020, we can have 0, 1, 2 or 3 simultaneous highs on the output. A new IC which always outputs on 1, 2 OR 3 would be very useful. Basically the same setup as MC2020, but the resulting output would always be a single high on one of the three output lines.
- Redstone in front as input.
- Sign with IC number on block.
- Lever on left side of block.
- Lever on right side of block.
- Lever on the back side of block.
On a high input signal, the output would randomly be either on the left side, right side, or back.
- Basically the same as above, but with 2 outputs only. So the setup would be:
- Redstone in front as input.
- Sign with IC number on block.
- Lever on left side of block
- Lever on right side of block
On a high signal, the output would randomly be either on the left side or right side.
Example of uses:
If you combine both the 2 output and 3 output ICs you can very easily create a randomizer with as many outputs as needed.
This simple setup would create a 6 output randomizer (see attached picture).
- Clock.
- 2 Output Random IC.
- 3 output Random IC on the outputs of the 2 Output Random IC.
Thanks for considering this.
Comment by me4502
Already possible. Line 3 sets the how many should be on. Set it to 1
Comment by jjkrause
Ok, wasn't documented in the wiki nor the in-game IC help. Sometimes I get low/off on all 3 though, any way of forcing at least one high every time the sign is a activated?
Comment by me4502
Oh, I'll look into that.
And I plan on going through all the IC's and updating the wiki and ingame docs. Currently most are out of date
Comment by jjkrause
Also, what about using 2 outputs on MC2020? If I place two levers only, and set line 3 to 1, should I always get a high on either left or right side? I don't think that works as I'm getting a lot of "lows on both sides"... probably trying to trigger the non-existent lever on the back side.
Comment by me4502
Just connecting 2 should work, but I'll look into that also
Comment by jjkrause
One last question. If for example MC2020 chooses the output on the left side of the block twice in a row (randomly of course), it won't send a pulse the second time because the lever just stays in the UP position. Is there another undocumented feature of MC2020 that allows a full reset of the levers just before it randomizes? For example, when it would receive a tick, it would set all levers down, then randomly switch one up? Or even set all levers down on a down input signal. This would solve problems where nothing happens when MC2020 chooses the same output twice, three times in a row (or more). Maybe there could be a "reset" option on line 4... Awesome work by the way, Craftbook is amazing!
Comment by me4502
I'll look into that, but it may cause issues as redstone is updated every 2 ticks, meaning the ic may not trigger redstone in that case.
Comment by jjkrause
I see your point with the 2 ticks... Having an option to set levers down on low-signal would work well though. That way, if the same output is randomly chosen twice in a row, you will get a high signal twice down the output line.