Farmer Recipes

Mystical Automation allows you to easily add your own Farmer recipes using both Datapacks and CraftTweaker.

Datapacks

Prerequisites
  • You can learn more about using vanilla datapacks here.
  • You can learn more about creating recipe JSON files here.

The Recipe File

This section will go over the values available to use in a Farmer recipe. Syntax can be inferred from the example JSON below.

FieldRequiredDescription
typeThe recipe type must be mysticalautomation:farmer.
seedsThe item that will be placed in the Seed slot.
soilThe item that will be placed in the Soil slot.
cruxThe item that will be placed in the Crux slot.
stagesThe amount of growth stages required for this recipe.
resultsThe potential result items including their item and chance of dropping.

Example File

{
  "type": "mysticalautomation:farmer",
  "seeds": {
    "item": "minecraft:carrot"
  },
  "soil": {
    "item": "minecraft:farmland"
  },
  "crux": {
    "item": "minecraft:cobblestone"
  },
  "stages": 7,
  "results": [
    {
      "item": {
        "id": "minecraft:apple"
      },
      "chance": 1.0
    },
    {
      "item": {
        "id": "minecraft:diamond"
      },
      "chance": 0.5
    }
  ]
}

CraftTweaker

Mystical Automation allows you to easily add your own Farmer recipes using CraftTweaker.

Note

CraftTweaker integration supports Recipe Managers! Access all applicable methods using <recipetype:mysticalautomation:farmer>!

Adding A Recipe

<recipetype:mysticalautomation:farmer>.addRecipe(name, <seeds>, <soil>, stages, {results...});
<recipetype:mysticalautomation:farmer>.addRecipe(name, <seeds>, <soil>, <crux>, stages, {results...});
FieldRequiredDescription
nameA unique name for this recipe. Must be all lower case and have no spaces.
seedsThe item that will be placed in the Seed slot.
soilThe item that will be placed in the Soil slot.
cruxThe item that will be placed in the Crux slot.
stagesThe amount of growth stages required for this recipe.
resultsThe potential result items including their item and chance of dropping.

Example

<recipetype:mysticalautomation:farmer>.addRecipe("test_farmer_no_crux",
  <item:mysticalagriculture:prosperity_seed_base>, <item:mysticalagriculture:inferium_farmland>, 3,
  {
    <item:minecraft:carrot>: 1.0 as float?,
    <item:minecraft:potato>: 0.25 as float?
  }
);

<recipetype:mysticalautomation:farmer>.addRecipe("test_farmer_crux",
  <item:mysticalagriculture:prosperity_seed_base>, <item:mysticalagriculture:prudentium_farmland>, <item:minecraft:cobblestone>, 5,
  {
    <item:minecraft:carrot>: 1.0 as float?,
    <item:minecraft:potato>: 0.25 as float?
  }
);

Removing Recipes

<recipetype:mysticalautomation:farmer>.removeBySeeds(<seeds>);
FieldRequiredDescription
seedsThe item to remove all recipes for.