Skip to content

Commit

Permalink
Merge branch 'develop' into e9e-tweakers-delight
Browse files Browse the repository at this point in the history
  • Loading branch information
MuteTiefling authored Jul 18, 2023
2 parents d3615f4 + 27383e2 commit 3a79198
Show file tree
Hide file tree
Showing 19 changed files with 58 additions and 20 deletions.
4 changes: 3 additions & 1 deletion kubejs/server_scripts/base/recipes/create/milling.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ ServerEvents.recipes((event) => {

recipes.forEach((recipe) => {
recipe.type = 'create:milling';
recipe.ingredients = recipe.inputs.map((input) => input.startsWith('#') ? { tag: input.slice(1) } : { item: input });
recipe.ingredients = recipe.inputs.map((input) =>
input.startsWith('#') ? { tag: input.slice(1) } : { item: input }
);
recipe.results = recipe.outputs;
event.custom(recipe).id(recipe.id);
});
Expand Down
4 changes: 3 additions & 1 deletion kubejs/server_scripts/base/recipes/create/pressing.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ ServerEvents.recipes((event) => {

recipes.forEach((recipe) => {
recipe.type = 'create:pressing';
recipe.ingredients = recipe.inputs.map((input) => input.startsWith('#') ? { tag: input.slice(1) } : { item: input });
recipe.ingredients = recipe.inputs.map((input) =>
input.startsWith('#') ? { tag: input.slice(1) } : { item: input }
);
recipe.results = recipe.outputs.map((output) => Item.of(output).toJson());
event.custom(recipe).id(recipe.id);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ ServerEvents.recipes((event) => {

recipes.forEach((recipe) => {
recipe.type = 'farmersdelight:cooking';
recipe.ingredients = recipe.inputs.map((input) => input.startsWith('#') ? { tag: input.slice(1) } : { item: input });
recipe.ingredients = recipe.inputs.map((input) =>
input.startsWith('#') ? { tag: input.slice(1) } : { item: input }
);
recipe.result = { item: recipe.output, count: recipe.count };
if (recipe.container) {
recipe.container = { item: recipe.container };
Expand Down
4 changes: 3 additions & 1 deletion kubejs/server_scripts/base/recipes/hexerei/mixingcauldron.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ ServerEvents.recipes((event) => {

recipes.forEach((recipe) => {
recipe.type = 'hexerei:mixingcauldron';
recipe.ingredients = recipe.inputs.map((input) => input.startsWith('#') ? { tag: input.slice(1) } : { item: input });
recipe.ingredients = recipe.inputs.map((input) =>
input.startsWith('#') ? { tag: input.slice(1) } : { item: input }
);
recipe.output = Item.of(recipe.output).toJson();
event.custom(recipe).id(recipe.id);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ ServerEvents.recipes((event) => {

recipes.forEach((recipe) => {
recipe.type = 'hexerei:pestle_and_mortar';
recipe.ingredients = recipe.inputs.map((input) => input.startsWith('#') ? { tag: input.slice(1) } : { item: input });
recipe.ingredients = recipe.inputs.map((input) =>
input.startsWith('#') ? { tag: input.slice(1) } : { item: input }
);
recipe.output = Item.of(recipe.output).toJson();

event.custom(recipe).id(recipe.id);
Expand Down
4 changes: 3 additions & 1 deletion kubejs/server_scripts/base/recipes/mekanism/enriching.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ ServerEvents.recipes((event) => {

recipes.forEach((recipe) => {
recipe.type = 'mekanism:enriching';
recipe.input = { ingredient: recipe.input.startsWith('#') ? { tag: recipe.input.slice(1) } : { item: recipe.input } };
recipe.input = {
ingredient: recipe.input.startsWith('#') ? { tag: recipe.input.slice(1) } : { item: recipe.input }
};
recipe.output = Item.of(recipe.output).toJson();
event.custom(recipe).id(recipe.id);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ ServerEvents.recipes((event) => {

recipes.forEach((recipe) => {
recipe.type = 'mekanism:infusion_conversion';
recipe.input = { ingredient: recipe.input.startsWith('#') ? { tag: recipe.input.slice(1) } : { item: recipe.input } };
recipe.input = {
ingredient: recipe.input.startsWith('#') ? { tag: recipe.input.slice(1) } : { item: recipe.input }
};
event.custom(recipe).id(recipe.id);
});
});
4 changes: 3 additions & 1 deletion kubejs/server_scripts/base/recipes/powah/energizing.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ ServerEvents.recipes((event) => {

recipes.forEach((recipe) => {
recipe.type = 'powah:energizing';
recipe.ingredients = recipe.inputs.map((input) => input.startsWith('#') ? { tag: input.slice(1) } : { item: input });
recipe.ingredients = recipe.inputs.map((input) =>
input.startsWith('#') ? { tag: input.slice(1) } : { item: input }
);
recipe.result = recipe.output.toJson();
event.custom(recipe).id(recipe.id);
});
Expand Down
4 changes: 3 additions & 1 deletion kubejs/server_scripts/expert/recipes/ae2/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ ServerEvents.recipes((event) => {

recipes.forEach((recipe) => {
recipe.type = 'ae2:transform';
recipe.ingredients = recipe.inputs.map((input) => input.startsWith('#') ? { tag: input.slice(1) } : { item: input });
recipe.ingredients = recipe.inputs.map((input) =>
input.startsWith('#') ? { tag: input.slice(1) } : { item: input }
);
recipe.result = Item.of(recipe.output).toJson();
event.custom(recipe).id(recipe.id);
});
Expand Down
4 changes: 3 additions & 1 deletion kubejs/server_scripts/expert/recipes/create/crushing.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ ServerEvents.recipes((event) => {

recipes.forEach((recipe) => {
recipe.type = 'create:crushing';
recipe.ingredients = recipe.inputs.map((input) => input.startsWith('#') ? { tag: input.slice(1) } : { item: input });
recipe.ingredients = recipe.inputs.map((input) =>
input.startsWith('#') ? { tag: input.slice(1) } : { item: input }
);
recipe.results = recipe.outputs;
event.custom(recipe).id(recipe.id);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ ServerEvents.recipes((event) => {
event
.custom({
type: 'create:milling',
ingredients: [recipe.input.startsWith('#') ? { tag: recipe.input.slice(1) } : { item: recipe.input }],
ingredients: [
recipe.input.startsWith('#') ? { tag: recipe.input.slice(1) } : { item: recipe.input }
],
results: outputs,
processingTime: duration
})
Expand Down Expand Up @@ -170,7 +172,9 @@ ServerEvents.recipes((event) => {
event
.custom({
type: 'create:crushing',
ingredients: [recipe.input.startsWith('#') ? { tag: recipe.input.slice(1) } : { item: recipe.input }],
ingredients: [
recipe.input.startsWith('#') ? { tag: recipe.input.slice(1) } : { item: recipe.input }
],
results: outputs,
processingTime: duration
})
Expand Down
4 changes: 3 additions & 1 deletion kubejs/server_scripts/expert/recipes/hexerei/drying_rack.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ ServerEvents.recipes((event) => {

recipes.forEach((recipe) => {
recipe.type = 'hexerei:drying_rack';
recipe.ingredients = recipe.inputs.map((input) => input.startsWith('#') ? { tag: input.slice(1) } : { item: input });
recipe.ingredients = recipe.inputs.map((input) =>
input.startsWith('#') ? { tag: input.slice(1) } : { item: input }
);
recipe.output = Item.of(recipe.output).toJson();

event.custom(recipe).id(recipe.id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ServerEvents.recipes((event) => {

recipes.forEach((recipe) => {
recipe.type = 'immersiveengineering:sawmill';
recipe.input = recipe.input.map((input) => input.startsWith('#') ? { tag: input.slice(1) } : { item: input });
recipe.input = recipe.input.map((input) => (input.startsWith('#') ? { tag: input.slice(1) } : { item: input }));
recipe.result = Item.of(recipe.output).toJson();
recipe.secondaries = recipe.secondaries.map((secondary) => ({
output: { item: secondary.output },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,9 @@ ServerEvents.recipes((event) => {

recipes.forEach((recipe) => {
recipe.type = 'industrialforegoing:dissolution_chamber';
recipe.input = recipe.inputs.map((input) => input.startsWith('#') ? { tag: input.slice(1) } : { item: input });
recipe.input = recipe.inputs.map((input) =>
input.startsWith('#') ? { tag: input.slice(1) } : { item: input }
);
recipe.output = Item.of(recipe.output).toJson();
event.custom(recipe).id(recipe.id);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,9 @@ ServerEvents.recipes((event) => {
];
recipes.forEach((recipe) => {
recipe.type = 'naturesaura:tree_ritual';
recipe.ingredients = recipe.ingredients.map((input) => input.startsWith('#') ? { tag: input.slice(1) } : { item: input });
recipe.ingredients = recipe.ingredients.map((input) =>
input.startsWith('#') ? { tag: input.slice(1) } : { item: input }
);
recipe.sapling = Item.of(recipe.sapling).toJson();
recipe.output = Item.of(recipe.output).toJson();
recipe.time = recipe.time * time_multiplier;
Expand Down
4 changes: 3 additions & 1 deletion kubejs/server_scripts/normal/recipes/ae2/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ ServerEvents.recipes((event) => {
recipes.forEach((recipe) => {
recipe.type = 'ae2:transform';
// ingredients: [{ item: 'minecraft:oak_log' }],
recipe.ingredients = recipe.inputs.map((input) => input.startsWith('#') ? { tag: input.slice(1) } : { item: input });
recipe.ingredients = recipe.inputs.map((input) =>
input.startsWith('#') ? { tag: input.slice(1) } : { item: input }
);
// result: { count: 2, item: 'ae2:fluix_crystal' }
recipe.result = recipe.output.toJson();
event.custom(recipe).id(recipe.id);
Expand Down
4 changes: 3 additions & 1 deletion kubejs/server_scripts/normal/recipes/create/pressing.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ ServerEvents.recipes((event) => {

recipes.forEach((recipe) => {
recipe.type = 'create:pressing';
recipe.ingredients = recipe.inputs.map((input) => input.startsWith('#') ? { tag: input.slice(1) } : { item: input });
recipe.ingredients = recipe.inputs.map((input) =>
input.startsWith('#') ? { tag: input.slice(1) } : { item: input }
);
recipe.results = recipe.outputs.map((output) => Item.of(output).toJson());
event.custom(recipe).id(recipe.id);
});
Expand Down
4 changes: 3 additions & 1 deletion kubejs/server_scripts/normal/recipes/occultism/ritual.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,9 @@ ServerEvents.recipes((event) => {
: { item: recipe.item_to_use };

recipe.ritual_dummy = Item.of(recipe.ritual_dummy).toJson();
recipe.ingredients = recipe.inputs.map((input) => input.startsWith('#') ? { tag: input.slice(1) } : { item: input });
recipe.ingredients = recipe.inputs.map((input) =>
input.startsWith('#') ? { tag: input.slice(1) } : { item: input }
);
recipe.result = Item.of(recipe.output).toJson();
event.custom(recipe).id(recipe.id);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ function recipetypes_crushing(event, material, exceptions, item, tag) {
event
.custom({
type: 'mekanism:crushing',
input: { ingredient: recipe.input.startsWith('#') ? { tag: recipe.input.slice(1) } : { item: recipe.input } },
input: {
ingredient: recipe.input.startsWith('#') ? { tag: recipe.input.slice(1) } : { item: recipe.input }
},
output: Item.of(recipe.outputs.primary.item, recipe.outputs.primary.count).toJson()
})
.id(`${id_prefix}mekanism_crushing/${recipe.id_suffix}`);
Expand Down

0 comments on commit 3a79198

Please sign in to comment.