Well-rounded Minecraft 1.18.2 modpack featuring Tech, Magic, Exploration and Decoration content. Made with love. 💚
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 sawmill recipe (from Corail Woodcutter)
|
|
|
|
function sawmill(event, output, input) {
|
|
|
|
let i = Ingredient.of(input);
|
|
|
|
let o = Item.of(output);
|
|
|
|
event.custom({
|
|
|
|
type: "corail_woodcutter:woodcutting",
|
|
|
|
ingredient: i.toJson(), result: o.getId(), count: o.getCount()
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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));
|
|
|
|
}
|