Example Configurations - jojodmo/CustomItems GitHub Wiki

Example Configurations

Example Item Configuration (Example file name: customItem.yml)

item:
      material: LEATHER_CHESTPLATE
      displayName: "&6My Custom Item"
      lore:
         - "This is line one"
          - "This is line two"
          - "&lThis&7 line is &cformatted"
     itemDamage: 24
     enchantments:
        #Add the enchantments Thorns 2
         "minecraft:THORNS": 2
     color: "00AAFF"
     # making color from RGB values
     color:
         red: 10
         green: 127
         blue: 255

Info Configuration

Example information configuration for an item (same file as item configuration):

info:
      description: "This is an awesome custom item I made"
      usage: "You don't need to use this custom item. Just look at it in awe"
      relatedItems:
         - "minecraft:STICK"
          - "minecraft:DIAMOND"

Recipes Configuration

Example recipes configuration for an item (same file as item configuration):

# Pay close attention to the indentation
recipes:
       # The start of a new recipe
        -
            # Remember to indent
            shaped: false
            resultAmount: 4
            items:
                 # The start of a new item
                  -
                      # Remember to indent
                      item: "minecraft:BLAZE_ROD"
                      amount: 5
                  # The start of a new item
                  -
                      item: "anotherCustomItem"
                      amount: 2
        # The start of a new recipe
        -
            shaped: true

            # If we look at items below, we see each 'a' references a gold ingot
            # and each 'b' references the custom item 'anotherCustomItem'.
            # 'x' does not belong to any item in the below list, so it will be
            # regarded as an empty slot. If we pretend 'anotherCustomItem' is
            # a stick, and this recipe creates a blaze rod,
            # this will create the below crafting recipe
            shape:
               - "axa"
                - "aba"
                - "axa"
            items:
                 # The start of a new item
                  -
                      item: "minecraft:GOLD_INGOT"
                      key: 'a'
                  # The start of a new item
                  -
                      item: "anotherCustomItem"
                      key: 'b'

The above custom recipe would create a recipe ingame like so

You can view more Example Configurations listed here: Compressed Cobblestone Magic Stick