Soul Extraction Recipes

Mystical Agriculture allows you to easily add your own Soul Extraction 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
type✓The recipe type must be mysticalagriculture:soul_extraction.
input✓The item that will be placed in the input slot.
output✓The souls granted from this item.

Example File

{
  "type": "mysticalagriculture:soul_extraction",
  "input": {
    "item": "minecraft:blaze_powder"
  },
  "result": {
    "type": "mysticalagriculture:blaze",
    "souls": 0.25
  }
}

CraftTweaker

Mystical Agriculture allows you to easily add your own Soul Extraction recipes using CraftTweaker.

Recipe Manager Support

CraftTweaker integration supports Recipe Managers! Access all applicable methods using <recipetype:mysticalagriculture:soul_extraction>!

Adding A Recipe

<recipetype:mysticalagriculture:soul_extraction>.addRecipe(name, <input>, "type", souls);
FieldRequiredDescription
name✓A unique name for this recipe. Must be all lower case and have no spaces.
input✓The item that is required to make the output.
type✓The id of the resulting mob soul type.
souls✓The amount of the resulting mob soul type.

Example

<recipetype:mysticalagriculture:soul_extraction>.addRecipe("test", <tag:item:c:ingots/iron>, "mysticalagriculture:spider", 0.5);

Removing Recipes

Remove By Item

<recipetype:mysticalagriculture:soul_extraction>.removeByInput(<output>);
FieldRequiredDescription
output✓The item to remove all recipes for.

Remove By Mob Soul Type

<recipetype:mysticalagriculture:soul_extraction>.removeByMobSoulType("type");
FieldRequiredDescription
type✓The mob soul type to remove all recipes for.