Cucumber
Extended Crafting
Iron Jetpacks
Mystical Agriculture
Mystical Automation
Farmer Recipes
Mystical Automation allows you to easily add your own Farmer recipes using both Datapacks and CraftTweaker.
Datapacks
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.
Field | Required | Description |
---|---|---|
type | ✓ | The recipe type must be mysticalautomation:farmer . |
seeds | ✓ | The item that will be placed in the Seed slot. |
soil | ✓ | The item that will be placed in the Soil slot. |
crux | The item that will be placed in the Crux slot. | |
stages | ✓ | The amount of growth stages required for this recipe. |
results | ✓ | The 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...});
Field | Required | Description |
---|---|---|
name | ✓ | A unique name for this recipe. Must be all lower case and have no spaces. |
seeds | ✓ | The item that will be placed in the Seed slot. |
soil | ✓ | The item that will be placed in the Soil slot. |
crux | The item that will be placed in the Crux slot. | |
stages | ✓ | The amount of growth stages required for this recipe. |
results | ✓ | The 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>);
Field | Required | Description |
---|---|---|
seeds | ✓ | The item to remove all recipes for. |