zen-flow 2.5.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/zenflow.cjs CHANGED
@@ -239,8 +239,8 @@ const addCentrifuge = (ingredients, recipe) => {
239
239
  return `mods.forestry.Centrifuge.addRecipe(${out});`;
240
240
  };
241
241
  const removeCentrifuge = (id) => `mods.forestry.Centrifuge.removeRecipe(${id});`;
242
- const addFermenter = (liquid, recipe) => {
243
- const out = formatArgs(liquid.id, recipe.in, recipe.liquid.id, liquid.n, recipe.liquid.n);
242
+ const addFermenter = (recipe) => {
243
+ const out = formatArgs(recipe.out.id, recipe.top, recipe.in.id, recipe.in.n, recipe.out.n / recipe.in.n);
244
244
  return `mods.forestry.Fermenter.addRecipe(${out});`;
245
245
  };
246
246
  const removeFermenter = (id) => `mods.forestry.Fermenter.removeRecipe(${id});`;
@@ -337,7 +337,7 @@ const addTransposerFill = (recipe) => {
337
337
  };
338
338
  const removeTransposerFill = (id, liquid) => `mods.thermalexpansion.Transposer.removeFillRecipe(${formatArgs(id, liquid)});`;
339
339
  const addTransposerExtract = (recipe) => {
340
- const out = formatArgs(recipe.rf, recipe.in, formatStack(recipe.liquid), recipe.bonus && recipe.bonus.id, recipe.bonus && recipe.bonus.n);
340
+ const out = formatArgs(recipe.rf, recipe.in, formatStack(recipe.liquid), recipe.bonus.id, recipe.bonus.n);
341
341
  return `mods.thermalexpansion.Transposer.addExtractRecipe(${out});`;
342
342
  };
343
343
  const removeTransposerExtract = (id) => `mods.thermalexpansion.Transposer.removeExtractRecipe(${id});`;
package/dist/zenflow.d.ts CHANGED
@@ -189,8 +189,9 @@ declare type RecipeCentrifuge = {
189
189
  ticks: number;
190
190
  };
191
191
  declare type RecipeFermenter = {
192
- in: string;
193
- liquid: Stack;
192
+ in: Stack;
193
+ out: Stack;
194
+ top: string;
194
195
  };
195
196
  declare type RecipeFermenterFuel = {
196
197
  id: string;
@@ -220,7 +221,7 @@ declare const addCarpenter: (ingredient: Ingredient, recipe: RecipeCarpenter) =>
220
221
  declare const removeCarpenter: (id: string, liquid?: string | undefined) => string;
221
222
  declare const addCentrifuge: (ingredients: Ingredient[], recipe: RecipeCentrifuge) => string;
222
223
  declare const removeCentrifuge: (id: string) => string;
223
- declare const addFermenter: (liquid: Stack, recipe: RecipeFermenter) => string;
224
+ declare const addFermenter: (recipe: RecipeFermenter) => string;
224
225
  declare const removeFermenter: (id: string) => string;
225
226
  declare const addFermenterFuel: (recipe: RecipeFermenterFuel) => string;
226
227
  declare const removeFermenterFuel: (id: string) => string;
@@ -342,7 +343,7 @@ declare type RecipeTransposerExtract = {
342
343
  rf: number;
343
344
  in: string;
344
345
  liquid: Stack;
345
- bonus?: Stack;
346
+ bonus: Stack;
346
347
  };
347
348
  /**
348
349
  * Common values:
package/dist/zenflow.mjs CHANGED
@@ -235,8 +235,8 @@ const addCentrifuge = (ingredients, recipe) => {
235
235
  return `mods.forestry.Centrifuge.addRecipe(${out});`;
236
236
  };
237
237
  const removeCentrifuge = (id) => `mods.forestry.Centrifuge.removeRecipe(${id});`;
238
- const addFermenter = (liquid, recipe) => {
239
- const out = formatArgs(liquid.id, recipe.in, recipe.liquid.id, liquid.n, recipe.liquid.n);
238
+ const addFermenter = (recipe) => {
239
+ const out = formatArgs(recipe.out.id, recipe.top, recipe.in.id, recipe.in.n, recipe.out.n / recipe.in.n);
240
240
  return `mods.forestry.Fermenter.addRecipe(${out});`;
241
241
  };
242
242
  const removeFermenter = (id) => `mods.forestry.Fermenter.removeRecipe(${id});`;
@@ -333,7 +333,7 @@ const addTransposerFill = (recipe) => {
333
333
  };
334
334
  const removeTransposerFill = (id, liquid) => `mods.thermalexpansion.Transposer.removeFillRecipe(${formatArgs(id, liquid)});`;
335
335
  const addTransposerExtract = (recipe) => {
336
- const out = formatArgs(recipe.rf, recipe.in, formatStack(recipe.liquid), recipe.bonus && recipe.bonus.id, recipe.bonus && recipe.bonus.n);
336
+ const out = formatArgs(recipe.rf, recipe.in, formatStack(recipe.liquid), recipe.bonus.id, recipe.bonus.n);
337
337
  return `mods.thermalexpansion.Transposer.addExtractRecipe(${out});`;
338
338
  };
339
339
  const removeTransposerExtract = (id) => `mods.thermalexpansion.Transposer.removeExtractRecipe(${id});`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-flow",
3
- "version": "2.5.0",
3
+ "version": "2.6.0",
4
4
  "description": "MineTweaker ZenScript made easy.",
5
5
  "main": "dist/zenflow.cjs",
6
6
  "module": "dist/zenflow.mjs",