Crafting
namespace Griff.Modules.BlockWorlds;
public sealed class Crafting : ComponentMakes things from what the Inventory holds. Press Key (C) to open the list of Recipes and click one to make it; the ones there’s enough for are lit up.
A recipe is what it makes (and how many), “=”, then what it takes joined with “+”: “Torch 4 = Wood + Coal”. Add “@ Workbench” to need a workbench nearby: a placed block of that item, or an entity of that name.
This is a component: its saved properties are on its component page.
Properties
Section titled “Properties”IsOpen
Section titled “IsOpen”public bool IsOpen { get; set; }True while the list is open.
public Key Key { get; set; }The key that opens and closes the list.
Parsed
Section titled “Parsed”public IReadOnlyList<Recipe> Parsed { get; }The recipes, read from Recipes; rows that don’t make sense are left out.
Recipes
Section titled “Recipes”public IReadOnlyList<string> Recipes { get; set; }One recipe per row, e.g. “Planks 4 = Wood” or “Furnace = Stone 8 @ Workbench”.
public string? Sound { get; set; }A sound played when something is made.
StationReach
Section titled “StationReach”public float StationReach { get; set; }How close a recipe’s workbench has to be, in world units.