🧱 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 ID steel_anvil.


🧩 JSON Structure

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"
  ]
}


🧱 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

item

LiteItem

The visual item that represents the station (used in GUI, interaction, etc.)

recipes

List<String>

List of recipe IDs available from this station

use_animation

String

ID of animation to play when the station is used

work_animation

String

(Optional) Animation to play during crafting progress

item_slots

List<String>

Offset position where the items will be placed

πŸ” Example: steel_anvil.json

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 in workstations/ defines a station ID
  • Use item to define its appearance
  • Assign multiple recipes via the recipes list
  • Add use_animation and work_animation for full feedback
  • Modular and fully customizable

Search