Craft recipe

Recipe to craft the current custom item

craft_recipe:
  enabled: true
  amount: 2 #amount of resulting item
  pattern:
    - XXX
    - XPX
    - DKD
  ingredients:
    P: philosopher_stone
    K: knife
    D: diamond
  return_items: #gives some items back when crafting without consuming them 
                #(like water bucket in vanilla Minecraft)
    play_sound: knife #plays a sound on craft
    reduce_durability: #reduces durability of an item in the crafting table
                       #and doesn't consume it on crafting
                       #(must be a tool or sword to lose durability)
      knife: 1 #<item name or material>: <amount>
    increment_durability:  #increments durability of an item in the crafting table
                           #and doesn't consume it on crafting
                           #(must be a tool or sword to get durability)
      philosopher_stone: 1 #<item name or material>: <amount>
    replace: #replaces an item in the crafting table and doesn't consume it on craft
        DIAMOND: crystal #<old item name or material>: <new item name or material>

Example

An example can be the peeled potato

peeled_potato:
   #....
   craft_recipe:
      enabled: true
      pattern:
         - XXX
         - XKP
         - XXX
      ingredients:
         K: knife
         P: POTATO
      return_items:
         play_sound: knife
         reduce_durability:
            knife: 1

To peel a potato you need to put a knife and a potato in the crafting table like this:

Taking the peeled potato from the result slot will reduce knife durability as specified by the property

reduce_durability:
    knife: 1

Last updated