Brewing - AstralyaStudios/Hexalia GitHub Wiki

Herbs


The Small Cauldron is a brewing station that allows players to create magical concoctions through a heating and brewing process. This system provides a more complex crafting interface compared to simple crafting tables, requiring specific ingredients and heat sources.

To know more about the recipes and each effect, check out Brews.

Technical Specifications

Block Entity Components

  • Item Slots: 5 total slots (3 input, 1 output, 1 bottle)
  • Processing Time: Variable brewing time (default: 175 ticks)
  • Experience System: Grants XP to the last interacting player upon completion
  • Ingredients can be placed in any of the three input slots (order doesn't matter)

Functional Requirements

Brewing Prerequisites

  1. Heat Source: The cauldron must be heated. The Rustic Oven block has been designed for this.
  2. Valid Recipe: Ingredients must match a registered SmallCauldronRecipe
  3. Empty Output: Output slot must have space for the result
  4. Bottle Present: A Rustic Bottle must be in the bottle slot

Crafting Sequence

  1. Item Consumption: All input items and bottle are consumed
  2. Output Generation: Result item is placed in output slot
  3. Experience Granting: XP is awarded to the last interacting player

Failure Conditions

  • Missing Heat: Brewing stops if heat source is removed
  • Insufficient Ingredients: Progress resets if ingredients are removed during brewing
  • Output Blocked: Process halts if output slot becomes full or invalid