zen-flow 2.3.1 → 2.3.3

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/README.md CHANGED
@@ -200,6 +200,7 @@ withName('<minecraft:bread>', [
200
200
  #### Applied Energistics 2
201
201
 
202
202
  - `addGrinder` - Add Quartz Grindstone recipe
203
+ - `bonus` must be a value between `0` and `1`
203
204
  - `removeGrinder` - Remove Quartz Grindstone recipe
204
205
  - `addInscriber` - Add Inscriber recipe
205
206
  - `removeInscriber` - Remove Inscriber recipe
package/dist/zenflow.cjs CHANGED
@@ -164,10 +164,11 @@ const formatArgs = (...args) => {
164
164
  };
165
165
 
166
166
  const addGrinder = (recipe) => {
167
- const out = formatArgs(formatIngredient(recipe.in), formatIngredient(recipe.out), recipe.turns, recipe.bonus && formatStack(recipe.bonus.primary), recipe.bonus?.secondary && formatStack(recipe.bonus.secondary));
167
+ const formatBonus = (stack) => `${stack.id}, ${stack.n}`;
168
+ const out = formatArgs(formatIngredient(recipe.in), formatIngredient(recipe.out), recipe.turns, recipe.bonus && formatBonus(recipe.bonus.primary), recipe.bonus?.secondary && formatBonus(recipe.bonus.secondary));
168
169
  return `mods.appeng.Grinder.addRecipe(${out});`;
169
170
  };
170
- const removeGrinder = (id) => `mods.appeng.Grinder.removeRecipe(${id})`;
171
+ const removeGrinder = (id) => `mods.appeng.Grinder.removeRecipe(${id});`;
171
172
  const addInscriber = (recipe) => {
172
173
  const out = formatArgs([formatIngredient(recipe.in)], recipe.plate.top, recipe.plate.bottom, formatIngredient(recipe.out), capitalize(recipe.type));
173
174
  return `mods.appeng.Inscriber.addRecipe(${out});`;
package/dist/zenflow.d.ts CHANGED
@@ -100,6 +100,8 @@ declare type RecipeInscriber = {
100
100
  * Common values:
101
101
  * - Ingot: `2 turns`
102
102
  * - Ore: `4 turns`
103
+ *
104
+ * Bonus `n` must be between `0` and `1`
103
105
  */
104
106
  declare const addGrinder: (recipe: RecipeGrinder) => string;
105
107
  declare const removeGrinder: (id: string) => string;
package/dist/zenflow.mjs CHANGED
@@ -160,10 +160,11 @@ const formatArgs = (...args) => {
160
160
  };
161
161
 
162
162
  const addGrinder = (recipe) => {
163
- const out = formatArgs(formatIngredient(recipe.in), formatIngredient(recipe.out), recipe.turns, recipe.bonus && formatStack(recipe.bonus.primary), recipe.bonus?.secondary && formatStack(recipe.bonus.secondary));
163
+ const formatBonus = (stack) => `${stack.id}, ${stack.n}`;
164
+ const out = formatArgs(formatIngredient(recipe.in), formatIngredient(recipe.out), recipe.turns, recipe.bonus && formatBonus(recipe.bonus.primary), recipe.bonus?.secondary && formatBonus(recipe.bonus.secondary));
164
165
  return `mods.appeng.Grinder.addRecipe(${out});`;
165
166
  };
166
- const removeGrinder = (id) => `mods.appeng.Grinder.removeRecipe(${id})`;
167
+ const removeGrinder = (id) => `mods.appeng.Grinder.removeRecipe(${id});`;
167
168
  const addInscriber = (recipe) => {
168
169
  const out = formatArgs([formatIngredient(recipe.in)], recipe.plate.top, recipe.plate.bottom, formatIngredient(recipe.out), capitalize(recipe.type));
169
170
  return `mods.appeng.Inscriber.addRecipe(${out});`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-flow",
3
- "version": "2.3.1",
3
+ "version": "2.3.3",
4
4
  "description": "MineTweaker ZenScript made easy.",
5
5
  "main": "dist/zenflow.cjs",
6
6
  "module": "dist/zenflow.mjs",