Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…atica8 into develop
  • Loading branch information
NielsPilgaard committed Sep 30, 2022
2 parents f95ccca + 4678129 commit cf05368
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
39 changes: 39 additions & 0 deletions kubejs/server_scripts/base/recipes/tconstruct/casting_basin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
onEvent('recipes', (event) => {
const id_prefix = 'enigmatica:tconstruct/casting_basin/';
var data = {
recipes: [
{
fluid: 'jaopca:molten.certus_quartz',
fluid_amount: 400,
output: 'ae2:quartz_block',
cooling_time: 132,
id: 'jaopca:tconstruct.molten_to_storage_block.certus_quartz'
}
]
};

data.recipes.forEach((recipe) => {
let constructed_recipe = {
type: 'tconstruct:casting_basin',
fluid: {
name: recipe.fluid,
amount: recipe.fluid_amount
},
result: recipe.output,
cooling_time: recipe.cooling_time
};

if (recipe.casts) {
constructed_recipe.cast = {
type: 'forge:intersection',
children: recipe.casts
};
constructed_recipe.cast_consumed = recipe.cast_consumed;
}

const re = event.custom(constructed_recipe);
if (recipe.id) {
re.id(recipe.id);
}
});
});
9 changes: 8 additions & 1 deletion kubejs/server_scripts/base/recipes/tconstruct/melting.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
onEvent('recipes', (event) => {
const id_prefix = 'enigmatica:base/tconstruct/melting/';
const id_prefix = 'enigmatica:tconstruct/melting/';
const recipes = [
{
ingredient: { item: 'minecraft:chain' },
result: { fluid: 'tconstruct:molten_iron', amount: 11 },
temperature: 800,
time: 58,
id: 'tconstruct:smeltery/melting/metal/iron/chain'
},
{
ingredient: { item: 'ae2:quartz_block' },
result: { fluid: 'jaopca:molten.certus_quartz', amount: 400 },
temperature: 700,
time: 99,
id: 'jaopca:tconstruct.storage_block_to_molten.certus_quartz'
}
];

Expand Down

0 comments on commit cf05368

Please sign in to comment.