-
Notifications
You must be signed in to change notification settings - Fork 13
Brewing recipes
Sortilege exposes a lot of the brewing and potion system to datapacks. One of the main uses of this is making pack developpers able to define custom brewing stand recipes.
To do so, it adds a new recipe type accessible to datapacks, sortilege:brewing.
{
"type": "sortilege:brewing",
"input": Object,
"ingredient": Object,
"output": Object
}input
The item put in the bottom slots of the brewing stand, that will be transformed.
Either
{ "item": itemid }
or
{ "potion": potionid }
.
If the key is item, that item must be used as the input.
If the key is potion, any potion item containing that potion may be used as the input.
ingredient
The item put in the top slot.
Must be of the form
{ "item": itemid }
.
output
The item put in the bottom slots of the brewing stand, after the recipe is complete.
Either
{ "item": itemid }
or
{ "potion": potionid }
, key must match input.
If the key is item, that item will be the recipe's output.
If the key is potion, the container from the input will stay the same, but the potion inside will be changed.
{
"type": "sortilege:brewing",
"input": {
"item": "minecraft:glass_bottle"
},
"ingredient": {
"item": "minecraft:echo_shard"
},
"output": {
"item": "minecraft:experience_bottle"
}
}Brewing Echo Shards into Glass Bottles turns them into Experience Bottles (built in).