Soulium Spawner Recipes

Mystical Agriculture allows you easily add your own Soulium Spawner 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:soulium_spawner.
inputThe item that will be placed in the input slot with an optional count of how many items are required per spawn. Max 512.
entitiesA weighted list of entities to spawn. Each entity is listed as an object with an entity field, which takes an entity ID, and an optional weight field, which specifies the spawn weight relative to all other entries.

Example File

{
  "type": "mysticalagriculture:soulium_spawner",
  "input": {
    "item": "mysticalagriculture:zombie_essence",
    "count": 16
  },
  "entities": [
    {
      "entity": "minecraft:zombie",
      "weight": 19
    },
    {
      "entity": "minecraft:zombie_villager",
      "weight": 1
    }
  ]
}

CraftTweaker

As of version 7.0.5, Mystical Agriculture allows you easily add your own Soulium Spawner 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:soulium_spawner>!

Adding A Recipe

mods.mysticalagriculture.SouliumSpawnerCrafting.addRecipe(name, <input>, <inputCount>, [<entities>]);
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.
inputCountThe amount of the input item required to spawn a mob. Max 512.
entitiesThe IDs of the entities that will be spawned using the provided input items. Entity IDs can be appended with @<weight> to specify spawn weights.

Example

mods.mysticalagriculture.SouliumSpawnerCrafting.addRecipe("test_spawner", <item:minecraft:apple>, 20, ["minecraft:zombie"]);
mods.mysticalagriculture.SouliumSpawnerCrafting.addRecipe("test_spawner_weights", <item:minecraft:carrot>, 16, ["minecraft:skeleton@5", "minecraft:wither_skeleton@1"]);

Removing Recipes

Remove By Entity ID

mods.mysticalagriculture.SouliumSpawnerCrafting.remove("entity");
FieldRequiredDescription
entityThe entity to remove all recipes for.