Block reference

Redstone I/O

Redstone I/O is the programmable signal edge of XL Logic. It samples per-side redstone levels, can drive output levels, and participates in the 16-channel bus network.

Signal endpoint Bus aware Complete
Back to block overview
In game

Local controls and redstone behavior.

  • Right click captures current inputs and opens endpoint naming.
  • Shift-right-click cycles the mode between input and output.
  • Neighbor changes resample input levels automatically.
  • The block emits analog output based on its current per-side output state.
Python commands

Everything the redstone device exports.

  • get_mode() and set_mode("input" | "output").
  • read(side): read the current redstone level on one side.
  • write(side, level): set an output level from 0 to 15 on one side.
  • channel(side) and set_channel(side, channel): read or write the bus channel for one side.
  • levels(): dictionary of all current side levels.
  • channels(): dictionary of all current side channels.
  • side_aliases() and state(): structured side-name and runtime summary helpers.
  • rename(name): rename the endpoint locally.
redstone_gate.py
redstone = get_device("redstone_io")

if redstone is not None:
    redstone.set_mode("output")
    north = redstone.read("north")
    redstone.write("south", 15 if north >= 8 else 0)
    screen.show("Bus", redstone.channels())