Skip to main content

Bag Ingredient

The bag ingredient requires an ordered block pattern from a structure bag.

This is a premium ingredient.

Example

ingredients:
glowstone_bag:
type: bag
ingredients:
A: GLOWSTONE
bag: "AA"
consume: true

Fields

FieldTypeDescription
ingredientsSectionCharacter-to-material legend.
bagTextRequired ordered pattern.
consumeBooleanWhether matching blocks are consumed.

When to use

Use bag when the exact order matters.

For example, this requires GLOWSTONE, then AMETHYST_BLOCK:

ingredients:
pattern:
type: bag
ingredients:
A: GLOWSTONE
B: AMETHYST_BLOCK
bag: "AB"