π§± Crafting Stations
ποΈ Crafting Stations
Crafting stations are special blocks that allow players to access and use recipes. Each station is fully configurable and can represent anything β from an anvil to a magic altar, a cooking pot, or a ritual circle.
LiteCooking allows you to create unlimited custom stations, each with their own visuals and recipe list.
π Where They Are Stored
Crafting station configurations are stored as JSON files in:
plugins/LiteCooking/workstations/
Each file represents a single station ID, based on the filename. Example:steel_anvil.json
defines the station IDsteel_anvil
.
π§© JSON Structure
{
"item": {
"material": "ANVIL",
"display_name": "{#C2C2C2}Steel anvil"
},
"recipes": [
"steel_sword",
"gold_sword"
],
"work_animation": "anvil_working",
"use_animation": "anvil_use",
"item_slots": [
"0,0,0.2",
"0,0,-0.2"
]
}
π§± Field Explanation
To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Field | Type | Description |
---|---|---|
|
| The visual item that represents the station (used in GUI, interaction, etc.) |
|
| List of recipe IDs available from this station |
|
| ID of animation to play when the station is used |
|
| (Optional) Animation to play during crafting progress |
| List<String> | Offset position where the items will be placed |
π Example: steel_anvil.json
{
"item": {
"material": "ANVIL",
"display_name": "{#C2C2C2}Steel anvil"
},
"recipes": [
"steel_sword",
"gold_sword"
],
"work_animation": "anvil_working",
"use_animation": "anvil_use",
"item_slots": [
"0,0,0.2",
"0,0,-0.2"
]
}
This defines a station called steel_anvil
:
- Appears as an Anvil with a custom display name
- Allows crafting steel_sword and gold_sword recipes
- Plays the animation
anvil_use
when interacted with
π‘ How to Use in Game
Stations are normally placed or triggered in-game by the plugin logic. Each station is linked to recipes by ID β players will only see the recipes listed in the recipes
array.
You can have multiple stations for different professions or gameplay styles.
β¨ Additional Features
- You can use
custom_model_data
to display unique station blocks in GUIs - Use
work_animation
for visual feedback during crafting (e.g. glowing, smoke, etc.) - Combine with
permission
checks in recipes for role-based crafting systems
β Summary
- Each
.json
inworkstations/
defines a station ID - Use
item
to define its appearance - Assign multiple recipes via the
recipes
list - Add
use_animation
andwork_animation
for full feedback - Modular and fully customizable