Logic Blocks

From One Million Worlds Wiki
Jump to: navigation, search

The wire system is designed to be as compact as possible, as such there are a number of logic blocks:


Block Tool Description
And Block AndTool.png These blocks will output "true" if all their inputs are "true". Otherwise false.
Or Block OrTool.png These blocks will output "true" if any of their inputs are "true". Otherwise false
Not block NotTool.png These blocks will output the reverse of their input. So "true" -> "false", "false" -> "true" and 123 -> -123
Addition/Subtraction AdditionSubtractionTool.png These blocks will produce the sum of all signals into the (+) ports minus the sum of all signals into the (-) ports
Comparator ComparatorTool.png This block will return true if all the signals going into the (<▢) ports are less than all the signals into all the (▢<) ports and all the signals going into the

(▢ = ▢) ports are equal. Will return false otherwise.

All these blocks can be interacted with to change which port type each side is.

Blocks show their ports as follows

Port Type Image
Input (most blocks) SignalIn.png
Output SignalOut.png or AlternativeOutput.png
Input for Addition SignalAddition.png
Input for Subtraction SignalSubtraction.png
Input's to be tested to be less that ▢< and ▢ = ▢ ports LessThanPort.png
Input's to be tested to be greater than that <▢ and ▢ = ▢ ports GreaterThanPort.png
Input's to be tested to be equal to each other and greater than that <▢ and less than ▢< ports TestEqualityPort.png

Assorted Logic Blocks.png

If you want more complicated logic try the script block.