Turn BetterNEther glowstone stalactites into dust
This commit is contained in:
parent
99d9ceaa13
commit
51f2e2a51b
2 changed files with 73 additions and 15 deletions
|
|
@ -169,4 +169,69 @@ onEvent('server.datapack.first', _ => {
|
||||||
evt.custom({type: type, pattern: pattern, key: key, result: result});
|
evt.custom({type: type, pattern: pattern, key: key, result: result});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {IngredientJS} input
|
||||||
|
* @param {ItemStackJS} output
|
||||||
|
* @param {int | null} timeScale A scalar for how long the processing should take.
|
||||||
|
*/
|
||||||
|
global.genUniversalCrushingRecipe = (evt, input, output, timeScale) => {
|
||||||
|
const main = JSON.parse(input.toJson());
|
||||||
|
const t = timeScale || 1;
|
||||||
|
|
||||||
|
evt.custom({
|
||||||
|
type: 'immersiveengineering:crusher',
|
||||||
|
input: main,
|
||||||
|
result: {
|
||||||
|
count: output.getCount(),
|
||||||
|
base_ingredient: {item: output.getId()},
|
||||||
|
},
|
||||||
|
energy: 1500 * t,
|
||||||
|
});
|
||||||
|
|
||||||
|
evt.custom({
|
||||||
|
type: 'create:milling',
|
||||||
|
ingredients: [main],
|
||||||
|
results: [
|
||||||
|
{
|
||||||
|
item: output.getId(),
|
||||||
|
count: output.getCount(),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
processingTime: 500 * t,
|
||||||
|
});
|
||||||
|
|
||||||
|
evt.custom({
|
||||||
|
type: 'create:crushing',
|
||||||
|
ingredients: [main],
|
||||||
|
results: [
|
||||||
|
{
|
||||||
|
item: output.getId(),
|
||||||
|
count: output.getCount(),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
processingTime: 400 * t,
|
||||||
|
});
|
||||||
|
|
||||||
|
evt.custom({
|
||||||
|
type: 'mekanism:crushing',
|
||||||
|
input: {ingredient: main},
|
||||||
|
output: {
|
||||||
|
item: output.getId(),
|
||||||
|
count: output.getCount(),
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
evt.custom({
|
||||||
|
type: 'thermal:pulverizer',
|
||||||
|
ingredient: main,
|
||||||
|
result: [
|
||||||
|
{
|
||||||
|
item: output.getId(),
|
||||||
|
count: output.getCount(),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
experience: 0,
|
||||||
|
});
|
||||||
|
};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -483,25 +483,18 @@ onEvent('recipes', event => {
|
||||||
multiservoPress(event);
|
multiservoPress(event);
|
||||||
stonecutter(event);
|
stonecutter(event);
|
||||||
woodcutter(event);
|
woodcutter(event);
|
||||||
|
global.genUniversalCrushingRecipe(
|
||||||
|
event,
|
||||||
|
Ingredient.of('betternether:glowstone_stalactite'),
|
||||||
|
Item.of('8x minecraft:glowstone_dust'),
|
||||||
|
null
|
||||||
|
);
|
||||||
|
|
||||||
// Ender Singularity Crafting
|
// Ender Singularity Crafting
|
||||||
event.custom({
|
event.custom({
|
||||||
type: 'thermal:chiller',
|
type: 'thermal:chiller',
|
||||||
ingredients: [
|
ingredients: [{fluid: 'minecraft:water', amount: 1000}, {item: 'powah:ender_core'}],
|
||||||
{
|
result: [{item: 'kubejs:ender_singularity', count: 1}],
|
||||||
fluid: 'minecraft:water',
|
|
||||||
amount: 1000,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
item: 'powah:ender_core',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
result: [
|
|
||||||
{
|
|
||||||
item: 'kubejs:ender_singularity',
|
|
||||||
count: 1,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
energy: 20000,
|
energy: 20000,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue