Skip to main content

Module fence_gate_block

Module fence_gate_block 

Source
Expand description

Fence gate block behavior.

Vanilla equivalent: FenceGateBlock + HorizontalDirectionalBlock.

Fence gates open/close on use, sit flush in walls (IN_WALL), and react to redstone (POWERED/OPEN driven by Level.hasNeighborSignal).

Structsยง

FenceGateBlock
Behavior for all fence gate variants.

Constantsยง

FACING ๐Ÿ”’
Horizontal facing of the gate.
IN_WALL ๐Ÿ”’
Whether the gate is lowered to sit flush inside a wall.
OPEN ๐Ÿ”’
Whether the gate is open.
POWERED ๐Ÿ”’
Whether the gate is powered by redstone.