zen-flow 2.3.1 → 2.3.2
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 +1 -0
- package/dist/zenflow.cjs +2 -1
- package/dist/zenflow.d.ts +2 -0
- package/dist/zenflow.mjs +2 -1
- package/package.json +1 -1
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,7 +164,8 @@ const formatArgs = (...args) => {
|
|
|
164
164
|
};
|
|
165
165
|
|
|
166
166
|
const addGrinder = (recipe) => {
|
|
167
|
-
const
|
|
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
171
|
const removeGrinder = (id) => `mods.appeng.Grinder.removeRecipe(${id})`;
|
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,7 +160,8 @@ const formatArgs = (...args) => {
|
|
|
160
160
|
};
|
|
161
161
|
|
|
162
162
|
const addGrinder = (recipe) => {
|
|
163
|
-
const
|
|
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
167
|
const removeGrinder = (id) => `mods.appeng.Grinder.removeRecipe(${id})`;
|