Workstations and Multiblocks
Workstations are the physical locations in the Minecraft world where crafting processes occur. Defined as YAML files in plugins/CraftingEngine/stations/, workstations bind blocks to capabilities, recipe menus, and multiblock patterns.
1. Station Architectures
CraftingEngine supports three distinct workstation architectures:
SINGLE_BLOCK: Standard blocks (e.g.ANVIL,SMITHING_TABLE,BREWING_STAND, or custom ExecutableBlockseb:<id>).MULTIBLOCK: Complex 3D voxel structures requiring precise arrangement of blocks around an interactive core block.FLUID_BASIN: Cauldron-based alchemical workstations holding fluids and responding to environmental heat (see Fluid Basins).
2. Single-Block Workstation Configuration
id: "blacksmith_anvil"name: "<gradient:#b0bec5:#78909c>Master Blacksmith Anvil</gradient>"type: "SINGLE_BLOCK"
# Matching block materialsblocks: - "ANVIL" - "CHIPPED_ANVIL" - "DAMAGED_ANVIL"
# Capabilities provided to recipes at this stationcapabilities: - "forging" - high_temperature: drain: variable: "temperature" drain_per_second: 5.0 drain_per_use: 10.0 min_threshold: 200.0
# Interaction behaviorsopen_gui_on_click: truefallback_to_vanilla: trueclose_gui_on_craft: falsecancel_on_gui_close: falseKey Properties
blocks: List of Bukkit block material names that act as this workstation.capabilities: Capabilities granted to recipes initiated at this station. Supports:- Flat String: Permanent capability (e.g.
- "forging"). - Structured Consumable Capability (
drain:): Governed byCapabilityDrainPolicy, tracking a state variable, continuous per-second/per-tick drain, per-use deduction on craft start, and a minimum operational threshold (see Modular Capabilities).
- Flat String: Permanent capability (e.g.
fallback_to_vanilla: Whentrue, if a player interacts without matching a custom recipe or opening a menu, vanilla anvil interaction proceeds. Whenfalse, vanilla interaction is completely intercepted.pdc_key: (Optional) Enforces that the block state contains a specific Persistent Data Container tag.
3. 3D Multiblock Workstations
Multiblock workstations allow building expansive industrial furnaces, runic altars, or arcane shrines:
Layer 2 (Y = +1) Layer 1 (Y = 0) Core +---+---+---+ +---+---+---+ | B | L | B | | S | M | S | +---+---+---+ +---+---+---+ | . | . | . | | M | C | M | <-- (C = Core Anvil) +---+---+---+ +---+---+---+ | B | L | B | | S | M | S | +---+---+---+ +---+---+---+Multiblock YAML Definition
id: "example_runic_forge"name: "<gradient:#ff4500:#ff8c00>Ancestral Runic Forge</gradient>"type: "MULTIBLOCK"
capabilities: - "forging" - "high_temperature" - "runic_infusion"
multiblock: core_symbol: "C" allowed_rotations: - "NORTH" - "SOUTH" - "EAST" - "WEST"
palette: "C": "ANVIL" "S": "STONE_BRICKS" "M": "MAGMA_BLOCK" "B": "IRON_BARS" "L": "SOUL_LANTERN" ".": "AIR"
layers: - name: "base" pattern: - "S M S" - "M C M" - "S M S" - name: "upper_pillars" pattern: - "B . B" - "L . L" - "B . B"Rotation Solver & Validation
- Cardinal Rotations: When
allowed_rotationsincludesNORTH,SOUTH,EAST,WEST, CraftingEngine uses matrix 2D rotational transformations () to validate the structure regardless of player facing orientation. - In-Game Inspection: Players with permission
craftingengine.command.multiblock.checkcan look at any block and execute/cfe multiblock checkto test structure validity.
4. Virtual Ghost Block Previews
When a player right-clicks an incomplete multiblock core, CraftingEngine streams client-side PacketEvents ghost block packets to highlight missing or misaligned blocks.
- Zero World Modification: Ghost blocks exist solely in client memory. No physical world blocks are altered.
- Auto-Cleanup: Ghost previews fade or despawn automatically when the player walks away or completes the structure.
Next Steps
- Fluid Basins Guide - Learn physical item-tossing and cauldron temperature mechanics.
- Station Holograms & Displays - Configure floating progress text and 3D item visuals above your stations.