Skip to content

Commit

Permalink
Merge pull request #354 from Kanzaji/Random_Fixes
Browse files Browse the repository at this point in the history
Add Create Netherrack Generation (#353)
  • Loading branch information
NielsPilgaard authored Mar 9, 2023
2 parents 39eb372 + e52de75 commit b4900b6
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
15 changes: 15 additions & 0 deletions kubejs/server_scripts/base/recipes/create/filling.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
onEvent('recipes', (event) => {
const id_prefix = 'enigmatica:base/create/filling/';
const recipes = [
{
input: 'minecraft:cobblestone',
fluid: Fluid.of('minecraft:lava', 500),
output: 'minecraft:magma_block',
id: `${id_prefix}magma_block_from_lava`
}
];

recipes.forEach((recipe) => {
event.recipes.create.filling(recipe.output, [recipe.fluid, recipe.input]).id(recipe.id);
});
});
14 changes: 14 additions & 0 deletions kubejs/server_scripts/base/recipes/create/haunting.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
onEvent('recipes', (event) => {
const id_prefix = 'enigmatica:base/create/haunting/';
const recipes = [
{
outputs: ['minecraft:netherrack'],
input: 'minecraft:magma_block',
id: `${id_prefix}haunting_netherrack`
}
]

recipes.forEach((recipe) => {
event.recipes.create.haunting(recipe.outputs, recipe.input).id(recipe.id);
});
});

0 comments on commit b4900b6

Please sign in to comment.