Randomizer: Difference between revisions
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
|availability=Survival | |availability=Survival | ||
|firstver=v4.0.0 | |firstver=v4.0.0 | ||
| | |data=11 | ||
|multipartid=pr_sgate | |||
|nameid=None | |||
}} | }} | ||
Line 31: | Line 33: | ||
=== I/O === | === I/O === | ||
The Randomizer has 1 input and 3 outputs. When placed, on the ground, the input is the side facing the player while the others are the outputs. | The Randomizer has 1 input and 3 outputs. When placed, on the ground, the input is the side facing the player while the others are the outputs. | ||
=== Logic === | === Logic === | ||
While the input is receiving power, the randomizer continuously shuffles the states of the three outputs using the Java random number generator. When the input is not receiving power, the current outputs are locked in place. | While the input is receiving power, the randomizer continuously shuffles the states of the three outputs using the Java random number generator. When the input is not receiving power, the current outputs are locked in place. | ||
=== Configuration === | |||
A shift-right-click with a [[Screwdriver|screwdriver]] can toggle which outputs are active. Disabled outputs don't emit power when it should, nor will said outputs connect to wires. | |||
When shift+right-clicked, the gate's outputs are manipulated in this order: All active, right disabled, front disabled, left disabled, right and left disabled, front and left disabled, right and front disabled. | |||
It is recommended that any unused sides be disabled to avoid unnecessary block updates. | |||
=== Applications === | === Applications === | ||
The primary use of this gate is for map makers who wish to add a truly "random" (i.e. pseudorandom) aspect to their maps. Such randomness is not possible with traditional Minecraft methods. | The primary use of this gate is for map makers who wish to add a truly "random" (i.e. pseudorandom) aspect to their maps. Such randomness is not possible with traditional Minecraft methods. This gate is not intended to be driving with the input receiving a continuous signal. Instead, it should only receive a pulse when a new random signal is needed. | ||
==History== | ==History== | ||
Line 43: | Line 54: | ||
| v4.0.0 | | v4.0.0 | ||
| Added the Randomizer. | | Added the Randomizer. | ||
|- | |||
| v4.5.11 | |||
| Added ability to configure outputs on randomizer. | |||
|} | |} | ||
== Issues == | == Issues == | ||
{{Issues}} | {{Issues}} |
Revision as of 15:52, 17 March 2015
Type |
Multipart block |
---|---|
Physics |
No |
Transparency |
Yes (partial) |
Luminance |
Yes, 7 |
Blast resistance | |
Tool |
Any tool |
Renewable |
Yes |
Stackable |
Yes (64) |
Flammable |
No |
Availability |
Survival |
First appearance | |
Drops |
Itself |
Data value |
dec: 11 hex: B bin: 1011 |
Multipart ID |
pr_sgate |
The Randomizer is a simple truth-table based logic gate with 1 input and 3 outputs with added tick based functions. It can be used to create a random series of signals.
Obtaining
Crafting
Ingredients | Crafting recipe |
---|---|
Circuit Plate + Energized Silicon Chip + Conductive Plate |
Usage
I/O
The Randomizer has 1 input and 3 outputs. When placed, on the ground, the input is the side facing the player while the others are the outputs.
Logic
While the input is receiving power, the randomizer continuously shuffles the states of the three outputs using the Java random number generator. When the input is not receiving power, the current outputs are locked in place.
Configuration
A shift-right-click with a screwdriver can toggle which outputs are active. Disabled outputs don't emit power when it should, nor will said outputs connect to wires.
When shift+right-clicked, the gate's outputs are manipulated in this order: All active, right disabled, front disabled, left disabled, right and left disabled, front and left disabled, right and front disabled.
It is recommended that any unused sides be disabled to avoid unnecessary block updates.
Applications
The primary use of this gate is for map makers who wish to add a truly "random" (i.e. pseudorandom) aspect to their maps. Such randomness is not possible with traditional Minecraft methods. This gate is not intended to be driving with the input receiving a continuous signal. Instead, it should only receive a pulse when a new random signal is needed.
History
Version | Changes |
---|---|
v4.0.0 | Added the Randomizer. |
v4.5.11 | Added ability to configure outputs on randomizer. |
Issues
Issues pertaining to "Randomizer" are maintained on the ProjectRed Github page. Report issues there.