Cucumber
Extended Crafting
Iron Jetpacks
Mystical Agriculture
Soulium Spawner Recipes
Mystical Agriculture allows you easily add your own Soulium Spawner recipes using both Datapacks and CraftTweaker.
Datapacks
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.
Field | Required | Description |
---|---|---|
type | ✓ | The recipe type must be mysticalagriculture:soulium_spawner . |
input | ✓ | The item that will be placed in the input slot with an optional count of how many items are required per spawn. Max 512. |
entities | ✓ | A 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
Mystical Agriculture allows you easily add your own Soulium Spawner recipes using CraftTweaker. Here's how you do it.
Recipe Manager Support
CraftTweaker integration supports Recipe Managers! Access all applicable methods using <recipetype:mysticalagriculture:soulium_spawner>!
Adding A Recipe
<recipetype:mysticalagriculture:soulium_spawner>.addRecipe(name, <input>, input_count, [entities]);
Field | Required | Description |
---|---|---|
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. |
input_count | ✓ | The amount of the input item required to spawn a mob. Max 512. |
entities | ✓ | The 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
<recipetype:mysticalagriculture:soulium_spawner>.addRecipe("test_spawner", <item:minecraft:apple>, 20, ["minecraft:zombie"]);
<recipetype:mysticalagriculture:soulium_spawner>.addRecipe("test_spawner_weights", <item:minecraft:carrot>, 16, ["minecraft:skeleton@5", "minecraft:wither_skeleton@1"]);
Removing Recipes
Remove By Entity ID
<recipetype:mysticalagriculture:soulium_spawner>.removeByEntity("entity");
Field | Required | Description |
---|---|---|
entity | ✓ | The entity to remove all recipes for. |