🍳מתכונים

In order to create a recipe for your items in your namespace you have to create a special section in one of your .yml files (or on each one, you decide how you want to organize the plugin).

Example 3x3 recipe

info:
  namespace: myitems
recipes:
  crafting_table:
    deadmau5_hat:
      permission: myitems.deadmau5_hat
      enabled: true
      pattern:
      - BXB
      - XBX
      - XXX
      ingredients:
        B: LIGHT_BLUE_WOOL
      result:
        item: myitems:deadmau5_hat
        amount: 1

As you can see I created the recipes section in the .yml file, this section can contain each type of recipe. In this example I created a crafting_table recipe called deadmau5_hat

Example 2x2 recipe

taco:
  permission: itemsadder.taco
  enabled: true
  pattern:
  - XXX
  - XSC
  - XPB
  ingredients:
    B: itemsadder:baguette
    C: itemsadder:sliced_roast_beef
    P: itemsadder:potato_sticks
    S: itemsadder:lettuce

You must set first line to XXX, and every ingredient on the bottom right.

You can create multiple patterns per recipe, just make sure that the attribute starts with 'pattern' text. For example pattern_2.

turquoise_sword:
  permission: itemsadder.turquoise_sword
  enabled: true
  pattern:
  - XRX
  - XRX
  - XSX
  pattern_2:
  - XXX
  - XRX
  - XSX
  ingredients:
    R: itemsadder:turquoise
    S: STICK
  result:
    item: itemsadder:turquoise_sword
    amount: 1

Last updated