# Schematic Restock
**The ultimate survival building automation addon for Forgematica.**
Tired of grinding materials for hours just to build a beautiful schematic? Schematic Restock completely automates the material gathering, crafting, and building process, letting you focus on the fun part: creating!
## โจ Features
* ๐ฆ **One-Click Restock (V+M)**: Automatically scans nearby marked containers, calculates exactly what you're missing, and pulls the required materials directly into your inventory.
* ๐ช **Vanilla-Friendly Marking**: No confusing custom items needed! By default, simply use a **Golden Hoe** to mark your chests.
* ๐ ๏ธ **Recursive Ghost Crafting**: Only have logs? No problem! The mod will automatically craft intermediate items (e.g., Logs -> Planks -> Sticks -> Fences) using the server-side Recipe Manager without ever opening a crafting GUI.
* ๐ **Smart Storage Integration**: Pulled materials and crafted items are automatically deposited into your held Shulker Boxes, **Sophisticated Backpacks**, or items in your **Curios** slots.
* ๐๏ธ **Safe Auto-Build (V+U)**: Need to place thousands of blocks instantly? Press `V+U` and watch the mod place blocks with 100% accurate orientations (stairs, slabs, logs).
* ๐ก๏ธ **100% Redstone Safe**: The Auto-Build engine uses special BlockFlags to suppress neighbor updates. It will **never** trigger TNT, push pistons, or activate redstone circuits.
* ๐ง **Fluid Placement**: Water blocks in the schematic are placed automatically for free.
## ๐ฎ How to Use
1. Load your schematic with Forgematica.
2. Equip a **Golden Hoe** (or the custom wand if enabled in config).
3. **Right-click** chests to mark them as Material Chests. **Shift+Right-click** to box-select up to 64 chests at once.
4. *(Optional)* **Shift+Left-click** an empty chest to mark it as an Output Chest for excess crafted items.
5. Hold a Shulker Box / Backpack in your hand and press **`V+M`** to restock and craft all missing materials.
6. Press **`V+U`** to start the auto-builder. Press **`V+Y`** to cancel.
## โ ๏ธ Important Notice
Because the marking tool needs to intercept your right-clicks to function, **holding the Golden Hoe will block normal vanilla interactions** (like opening chests, tilling dirt, or placing blocks). Simply switch to another item in your hotbar when you are done marking!
## โ๏ธ Highly Configurable
Almost everything can be tweaked! Open `config/schematic_restock-common.toml` to change:
* The marker item (you can use *any* item ID).
* Auto-build speed and distance limits.
* Max recursive crafting depth.
* Whether to place fluids automatically.
## ๐ Requirements
* **Forgematica** (Required)
* **MaFgLib** (Required)
* **Curios API** (Optional)
* **Sophisticated Backpacks** (Optional)
---
*Found a bug or have a suggestion? Please report it on our GitHub Issues page!*