Skip to content

Bitwise XOR Gate

Commoble edited this page Jun 4, 2021 · 3 revisions

The Bitwise XOR Gate is a two-input, single-output bitwise logic block, applying the XOR operator to individual channels of bundled cable signals.

Bitwise XOR Gate

Contents
  1. Obtaining
    1. Crafting Recipe
  2. Usage
  3. Data
    1. Block Entity Data
  4. History

Obtaining

Crafting Recipe

Recipe Type Ingredients Output Example
Gatecrafting 1x Bitwise XOR Gate Gatecrafting Recipe for Bitwise XOR Gates

Usage

The Bitwise XOR Gate can be placed in 24 different orientations, on floors, walls, and ceilings.

When placing the block, the flat side will be placed against the face clicked by the player, and the output side will point to the edge of the clicked face nearest to where the player clicked. A transparent preview is rendered to assist with orienting the block; this can be disabled in the Client Config if this is undesired.

Bitwise logic plates can connect to Bundled Network Cables, Colored Network Cables, or similar blocks. For each color channel, if the Bitwise XOR Gate is receiving power from one input on that channel (but not both inputs), the output side will output a full-strength signal on that channel (equivalent to a != (NOT EQUALS) operator on binary input).

Bitwise XOR Gate with input combinations

Data

Block Block/Item ID Localization Key
Bitwise XOR Gate morered:bitwise_xor_gate block.morered.bitwise_xor_gate
Block Properties Value
Map Color Quartz
Blocks Movement Yes
Flammable No
Liquid No
Opaque No
Replaceable No
Solid No
Blast Resistance 0
Hardness 0
Light Output 0
Tool Required No
Flammable No
Piston Reaction Pushable
Render Type Cutout
Item Properties Value
Stack Limit 64
Blockstate Properties Values
facing {"down", "up", "north", "south", "west", "east"}
rotation [0,3]
Block Tags
None
Item Tags
None

Block Entity Data

<root>
{
	"power": [array of 16 power values]
}
Data Field Format Description
"power" Byte Array (16 values) Array of the power value stored on each channel (in wool color order); each value has valid range [0,31].

History

Version Changelog
2.1.1.0 Added to game
Clone this wiki locally