AdvancedItems
HomepageJoin DiscordMinecraft Hosting
  • Main Page
  • ⚔️Items
    • List of items
    • Creating items
    • Abilities Explained
    • Items Settings
      • General Settings
      • Item Abilities
      • Join Settings
      • Recipes and Crafting
      • Loot Generation
      • Custom Heads
  • ⚙️General information
    • Commands and Permissions
    • Giving Custom Items
  • 🪄Effects & Abilities
    • Effects
    • Triggers
    • Targets
    • Conditions
    • Functions
    • Variables
Powered by GitBook
On this page
  • Crafting Example
  • Using custom items in recipes

Was this helpful?

  1. Items
  2. Items Settings

Recipes and Crafting

This page covers the settings for crafting recipes in the AdvancedItems plugin. You can define custom crafting recipes for your items using the settings provided here.

PreviousJoin SettingsNextLoot Generation

Last updated 7 months ago

Was this helpful?

Crafting Example

recipe:
  # Layout for crafting. If you want no item in that slot, use a space ` `
  layout:
    - 'WWW'
    - 'WWW'
    - 'WWW'
  # Define each material below. Material name, e.g. `W` must be 1 capital letter
  materials:
    W: 
      type: CRAFTING_TABLE #Crafting Table

To create a custom crafting recipe, you will need to define a layout and a list of materials. The layout is a 3x3 grid represented by three strings with three characters each. Use a single capital letter to represent a specific material or a space if you want the slot to be empty.

In the materials section, you will map the single capital letter used in the layout to the actual Minecraft material. For example, in the example above, 'W' represents a crafting table.

Items use the universal item configuration format from our plugins,

Using custom items in recipes

You can also use other custom items in crafting recipes! Here's an example of how an item can co-depend on another custom item to be crafted:

recipe:
  # Layout for crafting. If you want no item in that slot, use a space ` `
  layout:
    - 'WWW'
    - 'WAW'
    - 'WWW'
  # Define each material below. Material name, e.g. `W` must be 1 capital letter
  materials:
    W:
      type: CRAFTING_TABLE #Crafting Table
    A:
      customItem: Teleporter

Simply define customItem in the config, which is custom item's name. This is case sensitive.

⚔️
https://wiki.advancedplugins.net/configuration/config-items