Use log, optional dimension param
This commit is contained in:
parent
990bdb3f25
commit
eb514b62a5
1 changed files with 6 additions and 4 deletions
|
|
@ -60,6 +60,9 @@ global.duplicateResources = [
|
||||||
|
|
||||||
global.metals = ['iron', 'gold', 'copper', 'tin', 'silver', 'lead', 'aluminum', 'zinc', 'nickel'];
|
global.metals = ['iron', 'gold', 'copper', 'tin', 'silver', 'lead', 'aluminum', 'zinc', 'nickel'];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {Internal.RecipeEventJS} event
|
||||||
|
*/
|
||||||
global.recipes = event => {
|
global.recipes = event => {
|
||||||
return {
|
return {
|
||||||
/**
|
/**
|
||||||
|
|
@ -69,12 +72,11 @@ global.recipes = event => {
|
||||||
*/
|
*/
|
||||||
dissolution: (result, items, fluid, processingTime) => {
|
dissolution: (result, items, fluid, processingTime) => {
|
||||||
if (items.length > 8) {
|
if (items.length > 8) {
|
||||||
console.error(
|
console.log(
|
||||||
`Received ${items.length} items for a dissolution chamber recipe - max permitted is 8`
|
`Received ${items.length} items for a dissolution chamber recipe - max permitted is 8`
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
event.custom({
|
event.custom({
|
||||||
type: 'industrialforegoing:dissolution_chamber',
|
type: 'industrialforegoing:dissolution_chamber',
|
||||||
input: items.map(x => x.toJson()),
|
input: items.map(x => x.toJson()),
|
||||||
|
|
@ -92,12 +94,12 @@ global.recipes = event => {
|
||||||
acceptMirrored: false,
|
acceptMirrored: false,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
warping: (input, output) => {
|
warping: (input, output, dimension) => {
|
||||||
event.custom({
|
event.custom({
|
||||||
type: 'architects_palette:warping',
|
type: 'architects_palette:warping',
|
||||||
ingredient: [Item.of(input).toJson()],
|
ingredient: [Item.of(input).toJson()],
|
||||||
result: output.toResultJson(),
|
result: output.toResultJson(),
|
||||||
dimension: 'minecraft:the_nether',
|
dimension: dimension ? dimension : 'minecraft:the_nether',
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
pressurizing: (inputs, results, pressure) => {
|
pressurizing: (inputs, results, pressure) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue