You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
// priority: 100
|
|
|
|
|
|
|
|
// Add brewing recipe (from Farmer's Respite)
|
|
|
|
// "brewingtime" tends to be 100 for simple recipes, 2400 for things that need to be brewed
|
|
|
|
// "needwater" can be set to false if liquid is already supplied
|
|
|
|
function brewing(event, output, inputs, options) {
|
|
|
|
let i = inputs.map(input => Ingredient.of(input).toJson());
|
|
|
|
let o = Item.of(output).toJson();
|
|
|
|
if (options && options.container)
|
|
|
|
options.container = Ingredient.of(options.container).toJson();
|
|
|
|
event.custom(Object.assign({
|
|
|
|
type: "farmersrespite:brewing",
|
|
|
|
ingredients: i,
|
|
|
|
result: o,
|
|
|
|
container: { item: "minecraft:glass_bottle" },
|
|
|
|
experience: 0.35,
|
|
|
|
brewingtime: 2400,
|
|
|
|
needwater: true,
|
|
|
|
}, options));
|
|
|
|
}
|