🧾How items works

Item variants

Every item variant have its own yml file, in the /items directory.

  • items.yml is for normal items

  • component_items.yml is for items associated with components

  • tool_items.yml is for items associated with tools

Item configuration

This is the default schema for item files:

blockbreaker: # The item id
  component-id: ore-blockbreaker # Optional, only for the component variant
  name: "<aqua>BlockBreaker" # The item name
  material: dispenser # The item type/material
  lore: # A list of lines for the lore
    - "<gray>Breaks the block it looking at" # First line
    - "<gray>low energy will slow it down" # Second line, add as many as you want

# You can add as many items you want just by following the schema pattern, explained above.
blockplacer:
  component-id: stone-blockplacer
  name: "<aqua>BlockPlacer"
  material: dispenser
  lore:
    - "<gray>Places blocks from its inventory"

Item Recipes

All recipes are created in recipes.yml , to create a recipe use the following format:

super-treectter-recipe: # The recipe id
  "result": "factory:super-treecutter" # The result item
  "pattern":
    - "CTC"
    - "C C"
    - "CCC"
  "keys":
    "C": "minecraft:copper_ingot"
    "T": "factory:treecutter"
  • The result item, can be a custom item, as in the example, or an vanilla item: minecraft:stick

  • The key items can as the result item be both vanilla and custom items.

The recipe input for the example above

Last updated