Randomizer: Difference between revisions
No edit summary |
No edit summary |
||
Line 35: | Line 35: | ||
=== Logic === | === Logic === | ||
While the input is receiving power, the randomizer continuously | While the input is receiving power, the randomizer continuously shuffles the states of the outputs using the Java random number generator. When the input is not receiving power, the current outputs are locked in place. | ||
=== Configuration === | === Configuration === | ||
Line 45: | Line 45: | ||
=== 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. This gate is not intended to be | 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 driven with the input receiving a continuous signal. Instead, it should only receive a pulse when a new random output is needed. | |||
==History== | ==History== | ||
Line 56: | Line 58: | ||
|- | |- | ||
| v4.5.11 | | v4.5.11 | ||
| Added ability to configure outputs | | Added ability to configure enabled outputs. | ||
|} | |} | ||
== Issues == | == Issues == | ||
{{Issues}} | {{Issues}} |
Revision as of 15:58, 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 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 driven with the input receiving a continuous signal. Instead, it should only receive a pulse when a new random output is needed.
History
Version | Changes |
---|---|
v4.0.0 | Added the Randomizer. |
v4.5.11 | Added ability to configure enabled outputs. |
Issues
Issues pertaining to "Randomizer" are maintained on the ProjectRed Github page. Report issues there.