zen-flow 4.2.0 → 4.3.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
@@ -134,7 +134,7 @@ const clamp = (min, max, n) => Math.max(min, Math.min(max, n));
134
134
  const addGrinder = (id, recipe) => {
135
135
  const formatBonus = (stack) => `${stack.id}, ${clamp(0, 1, stack.n)}`;
136
136
  const out = formatArgs(
137
- formatIngredient(recipe.in),
137
+ formatIngredient(recipe.input),
138
138
  formatIngredient(id),
139
139
  Math.max(1, recipe.turns),
140
140
  recipe.bonus && formatBonus(recipe.bonus.primary),
@@ -158,8 +158,8 @@ const removeInscriber = (id) => `mods.appeng.Inscriber.removeRecipe(${id});`;
158
158
  const addCompressor = (id, recipe) => {
159
159
  const out = formatArgs(
160
160
  id,
161
- Math.max(1, recipe.in.n),
162
- recipe.in.id,
161
+ Math.max(1, recipe.input.n),
162
+ recipe.input.id,
163
163
  recipe.exact
164
164
  );
165
165
  return `mods.avaritia.Compressor.add(${out});`;
@@ -350,7 +350,7 @@ const removeFermenterFuel = (id) => `mods.forestry.Fermenter.removeFuel(${id});`
350
350
  const addMoistener = (id, recipe) => {
351
351
  const out = formatArgs(
352
352
  id,
353
- recipe.in,
353
+ recipe.input,
354
354
  recipe.ticks
355
355
  );
356
356
  return `mods.forestry.Moistener.addRecipe(${out});`;
@@ -360,7 +360,7 @@ const addSqueezer = (liquid, recipe) => {
360
360
  const out = formatArgs(
361
361
  formatStack(liquid),
362
362
  formatBonus$1(recipe.bonus),
363
- recipe.in.map(formatIngredient),
363
+ recipe.input.map(formatIngredient),
364
364
  recipe.ticks
365
365
  );
366
366
  return `mods.forestry.Squeezer.addRecipe(${out});`;
@@ -448,7 +448,7 @@ const addMirror = (item, recipe) => {
448
448
  );
449
449
  return `recipes.addShapedMirrored(${out});`;
450
450
  };
451
- const addFurnace = (id, recipe) => `furnace.addRecipe(${formatArgs(id, recipe.in, recipe.xp)});`;
451
+ const addFurnace = (id, recipe) => `furnace.addRecipe(${formatArgs(id, recipe.input, recipe.xp)});`;
452
452
  const removeFurnace = (id, recipe) => {
453
453
  if (typeof recipe === "string") return `furnace.remove(${formatArgs(id, recipe)});`;
454
454
  return `furnace.remove(${formatArgs(id)});`;
package/dist/zenflow.d.ts CHANGED
@@ -40,7 +40,7 @@ declare const COLORS: readonly ["black", "darkBlue", "darkGreen", "darkAqua", "d
40
40
  declare const STYLES: readonly ["obfuscated", "bold", "strikethrough", "underline", "italic"];
41
41
 
42
42
  type RecipeGrinder = {
43
- in: string;
43
+ input: string;
44
44
  turns: number;
45
45
  bonus?: {
46
46
  primary: Stack;
@@ -87,7 +87,7 @@ declare const addInscriber: (id: Ingredient, recipe: RecipeInscriber) => string;
87
87
  declare const removeInscriber: (id: string) => string;
88
88
 
89
89
  type RecipeCompressor = {
90
- in: Stack;
90
+ input: Stack;
91
91
  exact?: boolean;
92
92
  };
93
93
  /**
@@ -377,7 +377,7 @@ declare const addFermenterFuel: (id: string, recipe: RecipeFermenterFuel) => str
377
377
  */
378
378
  declare const removeFermenterFuel: (id: string) => string;
379
379
  type RecipeMoistener = {
380
- in: string;
380
+ input: string;
381
381
  ticks: number;
382
382
  };
383
383
  /**
@@ -393,7 +393,7 @@ declare const addMoistener: (id: string, recipe: RecipeMoistener) => string;
393
393
  */
394
394
  declare const removeMoistener: (id: string) => string;
395
395
  type RecipeSqueezer = {
396
- in: Ingredient[];
396
+ input: Ingredient[];
397
397
  ticks: number;
398
398
  bonus: Bonus;
399
399
  };
@@ -556,7 +556,7 @@ declare const remove: (id: string) => string;
556
556
  */
557
557
  declare const addMirror: (item: Ingredient, recipe: RecipeShaped) => string;
558
558
  type RecipeFurnace = {
559
- in: string;
559
+ input: string;
560
560
  xp?: number;
561
561
  };
562
562
  /**
package/dist/zenflow.mjs CHANGED
@@ -132,7 +132,7 @@ const clamp = (min, max, n) => Math.max(min, Math.min(max, n));
132
132
  const addGrinder = (id, recipe) => {
133
133
  const formatBonus = (stack) => `${stack.id}, ${clamp(0, 1, stack.n)}`;
134
134
  const out = formatArgs(
135
- formatIngredient(recipe.in),
135
+ formatIngredient(recipe.input),
136
136
  formatIngredient(id),
137
137
  Math.max(1, recipe.turns),
138
138
  recipe.bonus && formatBonus(recipe.bonus.primary),
@@ -156,8 +156,8 @@ const removeInscriber = (id) => `mods.appeng.Inscriber.removeRecipe(${id});`;
156
156
  const addCompressor = (id, recipe) => {
157
157
  const out = formatArgs(
158
158
  id,
159
- Math.max(1, recipe.in.n),
160
- recipe.in.id,
159
+ Math.max(1, recipe.input.n),
160
+ recipe.input.id,
161
161
  recipe.exact
162
162
  );
163
163
  return `mods.avaritia.Compressor.add(${out});`;
@@ -348,7 +348,7 @@ const removeFermenterFuel = (id) => `mods.forestry.Fermenter.removeFuel(${id});`
348
348
  const addMoistener = (id, recipe) => {
349
349
  const out = formatArgs(
350
350
  id,
351
- recipe.in,
351
+ recipe.input,
352
352
  recipe.ticks
353
353
  );
354
354
  return `mods.forestry.Moistener.addRecipe(${out});`;
@@ -358,7 +358,7 @@ const addSqueezer = (liquid, recipe) => {
358
358
  const out = formatArgs(
359
359
  formatStack(liquid),
360
360
  formatBonus$1(recipe.bonus),
361
- recipe.in.map(formatIngredient),
361
+ recipe.input.map(formatIngredient),
362
362
  recipe.ticks
363
363
  );
364
364
  return `mods.forestry.Squeezer.addRecipe(${out});`;
@@ -446,7 +446,7 @@ const addMirror = (item, recipe) => {
446
446
  );
447
447
  return `recipes.addShapedMirrored(${out});`;
448
448
  };
449
- const addFurnace = (id, recipe) => `furnace.addRecipe(${formatArgs(id, recipe.in, recipe.xp)});`;
449
+ const addFurnace = (id, recipe) => `furnace.addRecipe(${formatArgs(id, recipe.input, recipe.xp)});`;
450
450
  const removeFurnace = (id, recipe) => {
451
451
  if (typeof recipe === "string") return `furnace.remove(${formatArgs(id, recipe)});`;
452
452
  return `furnace.remove(${formatArgs(id)});`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-flow",
3
- "version": "4.2.0",
3
+ "version": "4.3.0",
4
4
  "description": "MineTweaker ZenScript made easy.",
5
5
  "main": "dist/zenflow.cjs",
6
6
  "module": "dist/zenflow.mjs",