Add missing cherry wood recipes

This commit is contained in:
NullBite 2023-10-24 19:32:22 -04:00
parent 72e92ae6b7
commit 6b1830e160
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
3 changed files with 101 additions and 1 deletions

View File

@ -60,6 +60,10 @@ hash = "6f5bf766cebabca0bcfa339eeb119956c48c40eba03c5aa39d7685eab67c56b5"
file = "config/yosbr/shaderpacks/rethinking-voxels_r0.1_alpha9b.zip.txt" file = "config/yosbr/shaderpacks/rethinking-voxels_r0.1_alpha9b.zip.txt"
hash = "6e7b02f11cb6feb7f08d1088d042518d1a04cb6b71a7b2b109cf997173510e3c" hash = "6e7b02f11cb6feb7f08d1088d042518d1a04cb6b71a7b2b109cf997173510e3c"
[[files]]
file = "kubejs/server_scripts/cherry_wood_fixes.js"
hash = "4f35c8097157e770778f53b4b81dbd3450c1b76d0d99cd8cca76d8551c5dda1e"
[[files]] [[files]]
file = "mods/ad-astra.pw.toml" file = "mods/ad-astra.pw.toml"
hash = "ff786550ebc945232c072bd3011919ab9fef52baf819705309d67c961332b604" hash = "ff786550ebc945232c072bd3011919ab9fef52baf819705309d67c961332b604"

View 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"
}
]
})
}
})

View File

@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0"
[index] [index]
file = "index.toml" file = "index.toml"
hash-format = "sha256" hash-format = "sha256"
hash = "865a4f638b2647638c739bc88fa2290764b09e877d9404f4a55a72177eab82a8" hash = "d622108831dbf250d08d1f52c968ad06407fe38b5d2dce2ef480fa5a1b0e0021"
[versions] [versions]
minecraft = "1.20.1" minecraft = "1.20.1"