Описание
# Logic Gate
This mod adds a logic gate as a redstone component similar to a repeater or a comparator, with toggleable logic modes.
## Obtaining
A logic gate can be obtained via crafting. Check out the crafting recipe in the [gallery](https://modrinth.com/mod/logic-gate/gallery).
## Available Logic Modes
- Single-input (back): `BUFFER`, `NOT`
- Double-input (left and right): `OR`, `AND`, `XOR`, `NOR`, `NAND`, `IMPLY`, `NIMPLY`
## Toggle between Logic Modes
- **Right-click** on the logic gate to cycle through modes.
- **Hold Shift and right-click** to cycle in **reversed** order.
- Default mode when placed: BUFFER
- Logic modes are cycled in the following order: `BUFFER`, `NOT`, `OR`, `AND`, `XOR`, `NOR`, `NAND`, `IMPLY`, `NIMPLY`
## Configurables
- All the configurables can be done using commands (both client and server) or via [Mod Menu](https://modrinth.com/mod/modmenu) (client only, with [Cloth Config API](https://modrinth.com/mod/cloth-config) or [YetAnotherConfigLib (YACL)](https://modrinth.com/mod/yacl) installed).
### Gate Delay
- Gate delays can be configured independently for each mode.
- Query: `/logic_gate gateDelay query [mode]`
- `mode`: `buffer|not|or|and|xor|nor|nand|imply|nimply`.
- Modify: `/logic_gate gateDelay set [mode] [x|default]`
- `mode`: same as the query command.
- `x`: an integer between 0 and 20 (inclusive).
- `default`: sets the delay tick value to 2
- Requires permission level of at least 2.
### Smart Redstone Wire Connection
- If enabled, redstone wires will only automatically connect to input sides used by the current logic mode.
- Example: Redstone wires will only automatically connect to the back input side when the logic gate is in `BUFFER` mode, not the left and right input sides.
- Existing redstone wires need to receive a block update after changing this setting.
- Setting info obtainable and configurable via command
- Querying: `/logic_gate smartRedstoneWireConnection query`
- Modifying: `/logic_gate smartRedstoneWireConnection set [true|false|default]`
- `default`: sets the value to false.
- Requires permission level of at least 2.