zen-flow 2.3.0 → 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 +7 -0
- package/dist/zenflow.mjs +2 -1
- package/package.json +5 -2
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
|
@@ -96,6 +96,13 @@ declare type RecipeInscriber = {
|
|
|
96
96
|
out: Ingredient;
|
|
97
97
|
type: 'inscribe' | 'press';
|
|
98
98
|
};
|
|
99
|
+
/**
|
|
100
|
+
* Common values:
|
|
101
|
+
* - Ingot: `2 turns`
|
|
102
|
+
* - Ore: `4 turns`
|
|
103
|
+
*
|
|
104
|
+
* Bonus `n` must be between `0` and `1`
|
|
105
|
+
*/
|
|
99
106
|
declare const addGrinder: (recipe: RecipeGrinder) => string;
|
|
100
107
|
declare const removeGrinder: (id: string) => string;
|
|
101
108
|
declare const addInscriber: (recipe: RecipeInscriber) => 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})`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zen-flow",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"description": "MineTweaker ZenScript made easy.",
|
|
5
5
|
"main": "dist/zenflow.cjs",
|
|
6
6
|
"module": "dist/zenflow.mjs",
|
|
@@ -19,7 +19,10 @@
|
|
|
19
19
|
"files": [
|
|
20
20
|
"dist/**/*"
|
|
21
21
|
],
|
|
22
|
-
"repository":
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/chronoDave/zen-flow.git"
|
|
25
|
+
},
|
|
23
26
|
"author": "Chronocide",
|
|
24
27
|
"license": "MIT",
|
|
25
28
|
"engines": {
|