Skip to content

API reference Obsidian.API.Crafting

DyeRecipe class

Dyes an item (minecraft:crafting_dye, 26.1): one DyeRecipe.Target and any number of DyeRecipe.Dye items with a dye color craft DyeRecipe.Result, which keeps the target's components and mixes the dyes into its minecraft:dyed_color, like vanilla's leather armour.

public sealed class DyeRecipe : ICraftingRecipe, IRecipe

In Obsidian.API.

Properties

public required CraftingBookCategory Category { get; init; }

Dye

public required Ingredient Dye { get; init; }

The dyes; only items with a minecraft:dye component match.

public string Group { get; init; }public required string Identifier { get; init; }

Result

public required ItemStack Result { get; init; }

The item and count the target becomes, and the components it sets and removes over the target's.

Target

public required Ingredient Target { get; init; }

The item dyed.

public required CraftingType Type { get; init; }

On this page