Skip to content

Commit

Permalink
Merge pull request #792 from MuteTiefling/develop
Browse files Browse the repository at this point in the history
remove duplicate sawing recipes
  • Loading branch information
MuteTiefling authored Nov 26, 2023
2 parents 80c9abd + 01604a7 commit 02ab7b6
Showing 1 changed file with 0 additions and 53 deletions.
53 changes: 0 additions & 53 deletions kubejs/server_scripts/expert/recipes/thermal/sawmill.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,59 +17,6 @@ ServerEvents.recipes((event) => {
}
];

wood_properties.forEach((material) => {
// Log to Stripped
let input = material.log.block,
output = material.log.stripped;
recipes.push({
ingredient: { item: input },
result: [
{ item: output, count: 1 },
{ item: bark, chance: 1.25 }
],
energy: 1000,
id: `${id_prefix}${output.replace(':', '_')}_from_${input.replace(':', '_')}`
});

// Wood to Stripped
input = material.wood.block;
output = material.wood.stripped;
recipes.push({
ingredient: { item: input },
result: [
{ item: output, count: 1 },
{ item: bark, chance: 1.25 }
],
energy: 1000,
id: `${id_prefix}${output.replace(':', '_')}_from_${input.replace(':', '_')}`
});

// Stripped to Plank
input = material.log.stripped;
output = material.plank.block;
recipes.push({
ingredient: [{ item: input }],
result: [
{ item: output, count: 6 },
{ item: sawdust, chance: 0.5 }
],
energy: 1000,
id: `${id_prefix}${output.replace(':', '_')}_from_${input.replace(':', '_')}`
});

input = material.wood.stripped;
output = material.plank.block;
recipes.push({
ingredient: [{ item: input }],
result: [
{ item: output, count: 6 },
{ item: sawdust, chance: 0.5 }
],
energy: 1000,
id: `${id_prefix}${output.replace(':', '_')}_from_${input.replace(':', '_')}`
});
});

recipes.forEach((recipe) => {
recipe.type = 'thermal:sawmill';
event.custom(recipe).id(recipe.id);
Expand Down

0 comments on commit 02ab7b6

Please sign in to comment.