Skip to content

Cutting Board Recipes

Lucas Barcellos edited this page Apr 26, 2022 · 5 revisions

This page contains instructions on how to write a custom recipe for Farmer's Delight's Cutting Board.

Template

Example 1: Axe-cutting, 1:1 input:output

{
  "type": "farmersdelight:cutting",
  "ingredients": [
    {
      "item": "namespace:your_item"
    }
  ],
  "tool": {
    "type": "farmersdelight:tool",
    "tool": "axe"
  },
  "result": [
    {
      "item": "namespace:your_result_1"
    }
  ],
  "sound": "namespace:sound.to.play"
}

Example 2: Knife-cutting, 1:2 input:output

{
  "type": "farmersdelight:cutting",
  "ingredients": [
    {
      "item": "namespace:your_item"
    }
  ],
  "tool": {
    "tag": "forge:tools/knives"
  },
  "result": [
    {
      "item": "namespace:your_result_1",
      "count": 2
    },
    {
      "item": "namespace:your_result_2",
      "count": 2,
      "chance": 0.5
    }
  ],
  "sound": "namespace:sound.to.play"
}

Elements

Required:

  • ingredients: A single ingredient to be placed on the Cutting Board and processed with the specified tool.
  • tool: The tool used to process the item. This can be any custom Ingredient, but here are the common cases:
    • tag: An item tag. Currently used by Knives and Shears in Farmer's Delight; an example can be found here.
    • type: A custom Ingredient type. Farmer's Delight provides farmersdelight:tool, which lets you specify a ToolType, used within code to determine what a tool is. This is used largely for vanilla tool types, as knives do not have a ToolType. Vanilla tools use the following, as of 1.16:
      • pickaxe;
      • axe;
      • shovel;
      • hoe;
  • result: Up to four (4) items to be output after processing the item. At least one result is required.

Optional:

  • sound: An override for the sound event played when processing the item. Sometimes you may want an item to sound different than the default tool/block sounds when cutting. This is currently employed by all log-stripping recipes, to play the corresponding sound instead of wood-breaking.
  • result/chance: Specifies a chance, in percentage, for this item to drop when the recipe is processed. Range is between 0.0 and 1.0.

Mechanics

Clone this wiki locally