mirror of
https://git.fellies.tech/minecraft/fellies.git
synced 2021-02-13 10:18:48 +00:00
29 lines
779 B
JavaScript
29 lines
779 B
JavaScript
// priority: 10
|
|
|
|
events.listen('recipes', function (event) {
|
|
|
|
// Cutting Board Axe Recipes
|
|
const axeCutting = (output, input) => {
|
|
event.custom({
|
|
type: "farmersdelight:cutting",
|
|
ingredients: [
|
|
Ingredient.of(input).toJson()
|
|
],
|
|
tool: {
|
|
type: "axe"
|
|
},
|
|
result: [
|
|
Item.of(output).toResultJson(),
|
|
Item.of("farmersdelight:tree_bark").toResultJson()
|
|
],
|
|
sound: "minecraft:item.axe.strip"
|
|
})
|
|
}
|
|
|
|
axeCutting('druidcraft:stripped_darkwood_log', 'druidcraft:darkwood_log')
|
|
axeCutting('druidcraft:stripped_darkwood_wood', 'druidcraft:darkwood_wood')
|
|
axeCutting('druidcraft:stripped_elder_log', 'druidcraft:elder_log')
|
|
axeCutting('druidcraft:stripped_elder_wood', 'druidcraft:elder_wood')
|
|
|
|
})
|