zen-flow 2.1.2 → 2.2.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/README.md +5 -4
- package/dist/zenflow.cjs +5 -0
- package/dist/zenflow.d.ts +5 -1
- package/dist/zenflow.mjs +5 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<a href="/LICENSE">
|
|
7
7
|
<img alt="License MIT" src="https://img.shields.io/badge/license-MIT-blue.svg" />
|
|
8
8
|
</a>
|
|
9
|
-
<a href="
|
|
9
|
+
<a href="https://www.npmjs.com/package/zen-flow">
|
|
10
10
|
<img alt="NPM - ZenFlow" src="https://img.shields.io/npm/v/zen-flow" />
|
|
11
11
|
</a>
|
|
12
12
|
</div>
|
|
@@ -74,7 +74,7 @@ Array.from({ length: 11 })
|
|
|
74
74
|
.map(generator => [
|
|
75
75
|
vanilla.remove(generator),
|
|
76
76
|
nei.hide(generator)
|
|
77
|
-
].join('\n'))
|
|
77
|
+
].join('\n'));
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
80
|
* recipes.remove(<ExtraUtilities:generator>);
|
|
@@ -82,7 +82,7 @@ Array.from({ length: 11 })
|
|
|
82
82
|
* [...]
|
|
83
83
|
* recipes.remove(<ExtraUtilities:generator.64:10>);
|
|
84
84
|
* NEI.hide(<ExtraUtilities:generator.64:10>);
|
|
85
|
-
|
|
85
|
+
**/
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
## API
|
|
@@ -90,7 +90,7 @@ Array.from({ length: 11 })
|
|
|
90
90
|
- [Types](#types)
|
|
91
91
|
- MineCraft
|
|
92
92
|
- [Vanilla](#vanilla)
|
|
93
|
-
- [Crafting patterns](#
|
|
93
|
+
- [Crafting patterns](#crafting-patterns)
|
|
94
94
|
- [Items](#items)
|
|
95
95
|
- [Formatting](#formatting)
|
|
96
96
|
- Mods
|
|
@@ -152,6 +152,7 @@ type Text = string | TextRich;
|
|
|
152
152
|
- `add` - Add a crafting table recipe.
|
|
153
153
|
- Shaped recipe: `object`
|
|
154
154
|
- Shapeless recipe: `Array`
|
|
155
|
+
- `addMirror` - Adds a shaped crafting table recipe with mirrored variant.
|
|
155
156
|
- `remove` - Removes both shaped and shapeless recipes
|
|
156
157
|
- `removeShaped` - Removes only shaped recipes
|
|
157
158
|
- `removeShapeless` - Removes only shaped recipes
|
package/dist/zenflow.cjs
CHANGED
|
@@ -283,6 +283,10 @@ const add = (item, recipe) => {
|
|
|
283
283
|
const out = formatArgs(formatIngredient(item), Array.isArray(recipe) ? formatList(recipe) : formatRecipe(recipe));
|
|
284
284
|
return `recipes.add${type}(${out});`;
|
|
285
285
|
};
|
|
286
|
+
const addMirror = (item, recipe) => {
|
|
287
|
+
const out = formatArgs(formatIngredient(item), formatRecipe(recipe));
|
|
288
|
+
return `recipes.addShapedMirrored(${out});`;
|
|
289
|
+
};
|
|
286
290
|
const remove = (id) => `recipes.remove(${id});`;
|
|
287
291
|
const removeShaped = (id, recipe) => `recipes.removeShaped(${id}${recipe ? `, ${formatRecipe(recipe)}` : ""});`;
|
|
288
292
|
const removeShapeless = (id, recipe) => `recipes.removeShapeless(${id}${recipe ? `, ${formatList(recipe)}` : ""});`;
|
|
@@ -325,6 +329,7 @@ exports.addFurnaceThermal = addFurnace$1;
|
|
|
325
329
|
exports.addHammer = addHammer;
|
|
326
330
|
exports.addInsolator = addInsolator;
|
|
327
331
|
exports.addLaser = addLaser;
|
|
332
|
+
exports.addMirror = addMirror;
|
|
328
333
|
exports.addNEI = addNEI;
|
|
329
334
|
exports.addPulverizer = addPulverizer;
|
|
330
335
|
exports.addQED = addQED;
|
package/dist/zenflow.d.ts
CHANGED
|
@@ -315,6 +315,10 @@ declare type RecipeFurnace = {
|
|
|
315
315
|
* - Recipe: `[]` => Shapeless recipe
|
|
316
316
|
*/
|
|
317
317
|
declare const add: (item: Ingredient, recipe: Recipe) => string;
|
|
318
|
+
/**
|
|
319
|
+
* Add shaped crafint recipe with mirror
|
|
320
|
+
*/
|
|
321
|
+
declare const addMirror: (item: Ingredient, recipe: RecipeShaped) => string;
|
|
318
322
|
/**
|
|
319
323
|
* Remove all crafting recipes (shaped & shapeless)
|
|
320
324
|
*/
|
|
@@ -372,4 +376,4 @@ declare const replace: (ingredient: Ingredient, recipe: Recipe) => string;
|
|
|
372
376
|
declare const replaceAll: (ingredient: Ingredient, recipe: Recipe) => string;
|
|
373
377
|
declare const replaceMany: (ingredient: Ingredient, recipes: Recipe[]) => string;
|
|
374
378
|
|
|
375
|
-
export { Enchantment, Ingredient, Recipe, RecipeShaped, RecipeShapeless, Stack, Text, TextRich, add, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addDict, addExtreme, addFoci, addFurnace, addFurnace$1 as addFurnaceThermal, addHammer, addInsolator, addLaser, addNEI, addPulverizer, addQED, addSawmill, addSieve, addSmelter, addTransposerExtract, addTransposerFill, hide, remove, removeComposter, removeCompressor, removeCrucible$1 as removeCrucibleNihilo, removeCrucibleSource, removeCrucible as removeCrucibleThermal, removeDict, removeExtreme, removeFoci, removeFurnace, removeFurnace$1 as removeFurnaceThermal, removeHammer, removeInsolator, removeLaser, removePulverizer, removeQED, removeSawmill, removeShaped, removeShapeless, removeSieve, removeSmelter, removeTransposerExtract, removeTransposerFill, replace, replaceAll, replaceMany, replaceQED, withEnchantment, withName, withTag, withTooltip, withTooltipShift };
|
|
379
|
+
export { Enchantment, Ingredient, Recipe, RecipeShaped, RecipeShapeless, Stack, Text, TextRich, add, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addDict, addExtreme, addFoci, addFurnace, addFurnace$1 as addFurnaceThermal, addHammer, addInsolator, addLaser, addMirror, addNEI, addPulverizer, addQED, addSawmill, addSieve, addSmelter, addTransposerExtract, addTransposerFill, hide, remove, removeComposter, removeCompressor, removeCrucible$1 as removeCrucibleNihilo, removeCrucibleSource, removeCrucible as removeCrucibleThermal, removeDict, removeExtreme, removeFoci, removeFurnace, removeFurnace$1 as removeFurnaceThermal, removeHammer, removeInsolator, removeLaser, removePulverizer, removeQED, removeSawmill, removeShaped, removeShapeless, removeSieve, removeSmelter, removeTransposerExtract, removeTransposerFill, replace, replaceAll, replaceMany, replaceQED, withEnchantment, withName, withTag, withTooltip, withTooltipShift };
|
package/dist/zenflow.mjs
CHANGED
|
@@ -279,6 +279,10 @@ const add = (item, recipe) => {
|
|
|
279
279
|
const out = formatArgs(formatIngredient(item), Array.isArray(recipe) ? formatList(recipe) : formatRecipe(recipe));
|
|
280
280
|
return `recipes.add${type}(${out});`;
|
|
281
281
|
};
|
|
282
|
+
const addMirror = (item, recipe) => {
|
|
283
|
+
const out = formatArgs(formatIngredient(item), formatRecipe(recipe));
|
|
284
|
+
return `recipes.addShapedMirrored(${out});`;
|
|
285
|
+
};
|
|
282
286
|
const remove = (id) => `recipes.remove(${id});`;
|
|
283
287
|
const removeShaped = (id, recipe) => `recipes.removeShaped(${id}${recipe ? `, ${formatRecipe(recipe)}` : ""});`;
|
|
284
288
|
const removeShapeless = (id, recipe) => `recipes.removeShapeless(${id}${recipe ? `, ${formatList(recipe)}` : ""});`;
|
|
@@ -307,4 +311,4 @@ const replaceMany = (ingredient, recipes) => [
|
|
|
307
311
|
...recipes.map((recipe) => add(ingredient, recipe))
|
|
308
312
|
].join("\n");
|
|
309
313
|
|
|
310
|
-
export { add, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addDict, addExtreme, addFoci, addFurnace, addFurnace$1 as addFurnaceThermal, addHammer, addInsolator, addLaser, addNEI, addPulverizer, addQED, addSawmill, addSieve, addSmelter, addTransposerExtract, addTransposerFill, hide, remove, removeComposter, removeCompressor, removeCrucible$1 as removeCrucibleNihilo, removeCrucibleSource, removeCrucible as removeCrucibleThermal, removeDict, removeExtreme, removeFoci, removeFurnace, removeFurnace$1 as removeFurnaceThermal, removeHammer, removeInsolator, removeLaser, removePulverizer, removeQED, removeSawmill, removeShaped, removeShapeless, removeSieve, removeSmelter, removeTransposerExtract, removeTransposerFill, replace, replaceAll, replaceMany, replaceQED, withEnchantment, withName, withTag, withTooltip, withTooltipShift };
|
|
314
|
+
export { add, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addDict, addExtreme, addFoci, addFurnace, addFurnace$1 as addFurnaceThermal, addHammer, addInsolator, addLaser, addMirror, addNEI, addPulverizer, addQED, addSawmill, addSieve, addSmelter, addTransposerExtract, addTransposerFill, hide, remove, removeComposter, removeCompressor, removeCrucible$1 as removeCrucibleNihilo, removeCrucibleSource, removeCrucible as removeCrucibleThermal, removeDict, removeExtreme, removeFoci, removeFurnace, removeFurnace$1 as removeFurnaceThermal, removeHammer, removeInsolator, removeLaser, removePulverizer, removeQED, removeSawmill, removeShaped, removeShapeless, removeSieve, removeSmelter, removeTransposerExtract, removeTransposerFill, replace, replaceAll, replaceMany, replaceQED, withEnchantment, withName, withTag, withTooltip, withTooltipShift };
|