Sure! Here's a clean, structured wiki-style page for the **CraftBook Gate** mechanic, formatted for the **Mine-Play Wiki**:

---

# CraftBook Gate

*Part of the Mine-Play Wiki – Mechanics*

## Overview

The **Gate** mechanic in CraftBook allows players to create vertically-opening gates or portcullises using fences or iron bars. These gates can be toggled open and closed with redstone power or signs, enabling functional, aesthetic entrances for castles, prisons, or secure areas.

This mechanic is ideal for immersive builds and works seamlessly with redstone contraptions or permission-based systems.

---

## Features

* Works with fences and iron bars
* Vertical sliding open/close motion
* Redstone toggle support
* Optional `[Gate]` sign control
* Supports permission and logic integration (e.g., redstone, levers)

---

## Usage

### Gate Construction

1. Build a vertical column of fences or iron bars (the gate material).
2. Place a `[Gate]` sign within 3 block of the gate (usually beside it).
3. Power the sign with redstone to open or close the gate.

   * **Unpowered** = gate extended (closed)
   * **Powered** = gate retracted (open)

### Sign Syntax

```
Line 1: <leave empty>
Line 2: [Gate]
```

---

## Redstone Integration

The gate responds directly to redstone power:

* Power the sign block or a block adjacent to it.
* The gate retracts (opens) when the circuit is on, and extends (closes) when off.
* Combine with levers, buttons, daylight sensors, or pressure plates for more complex setups.

---

## Tips

* Only fences and iron bars are supported by default.
* Make sure the `[Gate]` sign is within 3 block horizontally or vertically from the gate.
* For larger gates, multiple `[Gate]` signs can control different sections.

---

## Example Build

```
   F
   F
   F
[Gate]
```

* "F" = Fence
* `[Gate]` sign placed beside or under the gate column
* Power the sign with a lever or button to control the gate

---

## Troubleshooting

| Issue                       | Cause/Resolution                               |
| --------------------------- | ---------------------------------------------- |
| Gate doesn’t move           | Ensure the sign is within 3 block of the gate  |
| Only part of the gate moves | Check for block obstructions or invalid layout |
| Doesn’t respond to redstone | Ensure redstone reaches the correct block/sign |

---

## Related Mechanics

* **Bridge** – Horizontal movement with blocks
* **Lift** – Vertical teleportation system
* **Gate Advanced** – Complex automation with logic circuits
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9