Fellies/kubejs[vs]/server_scripts/recipes/smelting.js

17 lines
475 B
JavaScript
Raw Normal View History

2021-02-06 11:01:02 +00:00
// priority: 10
events.listen('recipes', function (event) {
// Add a recipe to both furnace and blast furnace.
const smeltAndBlast = (output, input, xp) => {
event.smelting(output, input).xp(xp)
event.blasting(output, input).xp(xp)
}
// Create
smeltAndBlast(Item.of('mekanism:ingot_copper', 1), 'create:crushed_copper_ore', 0.1)
// Immersive Engineering
smeltAndBlast(Item.of('immersiveengineering:ingot_silver', 1), '#forge:dusts/silver', 0.35)
})