Add missing cherry wood recipes
This commit is contained in:
parent
72e92ae6b7
commit
6b1830e160
@ -60,6 +60,10 @@ hash = "6f5bf766cebabca0bcfa339eeb119956c48c40eba03c5aa39d7685eab67c56b5"
|
||||
file = "config/yosbr/shaderpacks/rethinking-voxels_r0.1_alpha9b.zip.txt"
|
||||
hash = "6e7b02f11cb6feb7f08d1088d042518d1a04cb6b71a7b2b109cf997173510e3c"
|
||||
|
||||
[[files]]
|
||||
file = "kubejs/server_scripts/cherry_wood_fixes.js"
|
||||
hash = "4f35c8097157e770778f53b4b81dbd3450c1b76d0d99cd8cca76d8551c5dda1e"
|
||||
|
||||
[[files]]
|
||||
file = "mods/ad-astra.pw.toml"
|
||||
hash = "ff786550ebc945232c072bd3011919ab9fef52baf819705309d67c961332b604"
|
||||
|
96
kubejs/server_scripts/cherry_wood_fixes.js
Normal file
96
kubejs/server_scripts/cherry_wood_fixes.js
Normal file
@ -0,0 +1,96 @@
|
||||
console.info('fixing cherry wood :3')
|
||||
// we need plurals becuase "stripped_cherry_log" needs to be in
|
||||
// "#c:stripped_logs", thanks The English Language i appreciate it very much
|
||||
const logTypes = [
|
||||
{"name": "log", "plural": "logs"},
|
||||
{"name": "wood", "plural": "wood"}
|
||||
]
|
||||
const farmersDelightSalvageable = [
|
||||
"trapdoor",
|
||||
"sign",
|
||||
"door"
|
||||
]
|
||||
|
||||
ServerEvents.tags('item', event => {
|
||||
for (const type of logTypes) {
|
||||
event.add('c:stripped_' + type.plural, 'minecraft:stripped_cherry_' + type.name)
|
||||
}
|
||||
})
|
||||
|
||||
ServerEvents.recipes(event => {
|
||||
for (const type of logTypes) {
|
||||
// create recipes
|
||||
event.custom({
|
||||
"type": "create:cutting",
|
||||
"ingredients": [
|
||||
{
|
||||
"item": "minecraft:cherry_" + type.name
|
||||
}
|
||||
],
|
||||
"results": [
|
||||
{
|
||||
"item": "minecraft:stripped_cherry_" + type.name
|
||||
}
|
||||
],
|
||||
"processingTime": 50
|
||||
})
|
||||
event.custom({
|
||||
"type": "create:cutting",
|
||||
"ingredients": [
|
||||
{
|
||||
"item": "minecraft:stripped_cherry_" + type.name
|
||||
}
|
||||
],
|
||||
"results": [
|
||||
{
|
||||
"item": "minecraft:cherry_planks",
|
||||
"count": 6
|
||||
}
|
||||
],
|
||||
"processingTime": 50
|
||||
})
|
||||
|
||||
// farmer's delight recipes
|
||||
event.custom({
|
||||
"type": "farmersdelight:cutting",
|
||||
"ingredients": [
|
||||
{
|
||||
"item": "minecraft:cherry_" + type.name
|
||||
}
|
||||
],
|
||||
"tool": {
|
||||
"type": "farmersdelight:tool",
|
||||
"tag": "c:tools/axes"
|
||||
},
|
||||
"result": [
|
||||
{
|
||||
"item": "minecraft:stripped_cherry_" + type.name
|
||||
},
|
||||
{
|
||||
"item": "farmersdelight:tree_bark"
|
||||
}
|
||||
],
|
||||
"sound": "minecraft:item.axe.strip"
|
||||
})
|
||||
}
|
||||
|
||||
for (const item of farmersDelightSalvageable) {
|
||||
event.custom({
|
||||
"type": "farmersdelight:cutting",
|
||||
"ingredients": [
|
||||
{
|
||||
"item": "minecraft:cherry_" + item
|
||||
}
|
||||
],
|
||||
"tool": {
|
||||
"type": "farmersdelight:tool",
|
||||
"tag": "c:tools/axes"
|
||||
},
|
||||
"result": [
|
||||
{
|
||||
"item": "minecraft:cherry_planks"
|
||||
}
|
||||
]
|
||||
})
|
||||
}
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user