Soul Extraction Recipes

Mystical Agriculture allows you easily add your own Soul Extractor 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 Soul Extraction recipe. Syntax can be inferred from the example json below.

FieldRequiredDescription
typeThe recipe type must be mysticalagriculture:soul_extraction.
inputThe item that will be placed in the input slot.
outputThe souls granted from this item.

Example File

{
  "type": "mysticalagriculture:soul_extraction",
  "input": {
    "item": "minecraft:blaze_rod"
  },
  "output": {
    "type": "mysticalagriculture:blaze",
    "souls": 0.5
  }
}

CraftTweaker

As of version 4.2.0, Mystical Agriculture allows you easily add your own Soul Extraction recipes using CraftTweaker. Here's how you do it.

Recipe Manager Support

As of version 7.0.4, CraftTweaker integration now supports Recipe Managers! Access all applicable methods using <recipetype:mysticalagriculture:soul_extraction>!

Adding A Recipe

mods.mysticalagriculture.SoulExtractorCrafting.addRecipe(name, <output>, <input>);
FieldRequiredDescription
nameA unique name for this recipe. Must be all lower case and have no spaces.
inputThe item that is required to make the output.
typeThe id of the resulting mob soul type.
soulsThe amount of the resulting mob soul type.

Example

mods.mysticalagriculture.SoulExtractorCrafting.addRecipe("test", <tag:forge:ingots/iron>, "mysticalagriculture:spider", 0.5);

Removing Recipes

Remove By Item

mods.mysticalagriculture.SoulExtractorCrafting.remove(<output>);
FieldRequiredDescription
outputThe item to remove all recipes for.

Remove By Mob Soul Type

mods.mysticalagriculture.SoulExtractorCrafting.remove("type");
FieldRequiredDescription
typeThe mob soul type to remove all recipes for.