Skip to content

Shaped Craft

Zazsona edited this page Jul 7, 2021 · 2 revisions

About

Heads with this source type can be crafted by putting the ingredients in a fixed shape within the crafting grid.

Specification

Source Type Key: SHAPED_CRAFT
Required Permissions: decorheads.craftheads

Example

  myhead:
    name: My Head
    texture: eyJ0ZXh0dXJlcyI6eyJTS0lOI...
    sources:
      my-drop-source:
        source-type: SHAPED_CRAFT
        ingredients:
        - OAK_PLANKS
        - PAPER
        grid:
        - '0 0 0'
        - '0 1 0'
        - '0 / 0'

Required Filters

Ingredients

Tag: ingredients
Description: Sets the ingredients required to craft this head. There must be at least one, and at most nine ingredients.
Example:

ingredients:
- GLASS_BOTTLE
- INK_SAC

Grid

Tag: grid
Description: Sets the shape ingredients must be placed in to craft the head.
Within the grid, ingredients are identified by their position in the ingredients list, starting at 0. Empty spaces can be set using /. Example:

ingredients:
- GLASS_BOTTLE  # Position 0
- INK_SAC       # Position 1
grid:
- '0 0 0'
- '0 1 0'
- '0 / 0'

The grid can be of a variable size, and will automatically work on smaller crafting grids, such as the inventory, as long as it fits.
2x2 Example:

grid:
- '0 0'
- '1 1'

Alternatively, the grid does not have to be a perfect square, and can be defined as lines.
Example:

grid:                          grid:
- '0'                          - '0 1 0'
- '1'            OR        
- '0'

Optional Filters

This source has no additional filters.

Clone this wiki locally