zen-flow 1.13.1 → 1.15.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 +2 -3
- package/dist/zenflow.cjs +14 -8
- package/dist/zenflow.d.ts +63 -6
- package/dist/zenflow.mjs +13 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -115,7 +115,6 @@ Array.from({ length: 11 })
|
|
|
115
115
|
- `replaceMany` - Remove all recipes and add multiple recipes
|
|
116
116
|
- `addFurnace` - Adds furnace recipe
|
|
117
117
|
- `removeFurnace` - Removes furnace recipe
|
|
118
|
-
- `removeFurnaceAll` - Removes all furnace recipe
|
|
119
118
|
|
|
120
119
|
### Crafting patterns
|
|
121
120
|
|
|
@@ -251,8 +250,8 @@ exnihilo.addSieve('<minecraft:cobblestone>', {
|
|
|
251
250
|
|
|
252
251
|
- `addLaser` - Add ore to the Mining Laser ore table
|
|
253
252
|
- `removeLaser` - Remove ore from the Mining Laser ore table
|
|
254
|
-
- `
|
|
255
|
-
- `
|
|
253
|
+
- `addFoci` - Add ores to the Laser Focus ore table
|
|
254
|
+
- `removeFoci` - Remove ores from the Laser Focus ore table
|
|
256
255
|
|
|
257
256
|
## NEI
|
|
258
257
|
|
package/dist/zenflow.cjs
CHANGED
|
@@ -79,17 +79,21 @@ const ENCHANTMENTS = {
|
|
|
79
79
|
flame: 50,
|
|
80
80
|
infinity: 51
|
|
81
81
|
};
|
|
82
|
-
const
|
|
82
|
+
const MFR_FOCI = {
|
|
83
83
|
white: 0,
|
|
84
84
|
orange: 1,
|
|
85
|
+
magenta: 2,
|
|
85
86
|
lightBlue: 3,
|
|
86
87
|
yellow: 4,
|
|
87
88
|
lime: 5,
|
|
89
|
+
pink: 6,
|
|
88
90
|
gray: 7,
|
|
89
91
|
lightGray: 8,
|
|
92
|
+
cyan: 9,
|
|
90
93
|
purple: 10,
|
|
91
94
|
blue: 11,
|
|
92
95
|
brown: 12,
|
|
96
|
+
green: 13,
|
|
93
97
|
red: 14,
|
|
94
98
|
black: 15
|
|
95
99
|
};
|
|
@@ -226,8 +230,8 @@ const withEnchantments = (enchantment) => {
|
|
|
226
230
|
|
|
227
231
|
const addLaser = (item) => `MiningLaser.addOre(${formatArgs(item)});`;
|
|
228
232
|
const removeLaser = (ingredient) => `MiningLaser.removeOre(${ingredient});`;
|
|
229
|
-
const
|
|
230
|
-
const
|
|
233
|
+
const addFoci = (lens, ingredients) => ingredients.map((ingredient) => `MiningLaser.addPreferredOre(${formatArgs(MFR_FOCI[lens], ingredient)});`).join("\n");
|
|
234
|
+
const removeFoci = (lens, ingredients) => ingredients.map((ingredient) => `MiningLaser.removePreferredOre(${formatArgs(MFR_FOCI[lens], ingredient)});`).join("\n");
|
|
231
235
|
|
|
232
236
|
const hide = (ingredient) => `NEI.hide(${ingredient});`;
|
|
233
237
|
const addNEI = (ingredient) => `NEI.addEntry(${ingredient});`;
|
|
@@ -281,8 +285,11 @@ const remove = (ingredient) => `recipes.remove(${ingredient});`;
|
|
|
281
285
|
const removeShaped = (ingredient) => `recipes.removeShaped(${ingredient});`;
|
|
282
286
|
const removeShapeless = (ingredient) => `recipes.removeShapeless(${ingredient});`;
|
|
283
287
|
const addFurnace = (recipe) => `furnace.addRecipe(${formatArgs(recipe.out, recipe.in)});`;
|
|
284
|
-
const removeFurnace = (
|
|
285
|
-
|
|
288
|
+
const removeFurnace = (recipe) => {
|
|
289
|
+
if (typeof recipe === "string")
|
|
290
|
+
return `furnace.remove(<*>, ${recipe});`;
|
|
291
|
+
return `furnace.remove(${formatArgs(recipe.out, recipe.in)})`;
|
|
292
|
+
};
|
|
286
293
|
const replace = (item, recipe) => {
|
|
287
294
|
const ingredient = Array.isArray(item) ? item[0] : item;
|
|
288
295
|
return [
|
|
@@ -307,12 +314,12 @@ exports.addCrucibleSource = addCrucibleSource;
|
|
|
307
314
|
exports.addCrucibleThermal = addCrucible;
|
|
308
315
|
exports.addDict = addDict;
|
|
309
316
|
exports.addExtreme = addExtreme;
|
|
317
|
+
exports.addFoci = addFoci;
|
|
310
318
|
exports.addFurnace = addFurnace;
|
|
311
319
|
exports.addFurnaceThermal = addFurnace$1;
|
|
312
320
|
exports.addHammer = addHammer;
|
|
313
321
|
exports.addInsolator = addInsolator;
|
|
314
322
|
exports.addLaser = addLaser;
|
|
315
|
-
exports.addLaserPreferred = addLaserPreferred;
|
|
316
323
|
exports.addNEI = addNEI;
|
|
317
324
|
exports.addPulverizer = addPulverizer;
|
|
318
325
|
exports.addQED = addQED;
|
|
@@ -330,13 +337,12 @@ exports.removeCrucibleSource = removeCrucibleSource;
|
|
|
330
337
|
exports.removeCrucibleThermal = removeCrucible;
|
|
331
338
|
exports.removeDict = removeDict;
|
|
332
339
|
exports.removeExtreme = removeExtreme;
|
|
340
|
+
exports.removeFoci = removeFoci;
|
|
333
341
|
exports.removeFurnace = removeFurnace;
|
|
334
|
-
exports.removeFurnaceAll = removeFurnaceAll;
|
|
335
342
|
exports.removeFurnaceThermal = removeFurnace$1;
|
|
336
343
|
exports.removeHammer = removeHammer;
|
|
337
344
|
exports.removeInsolator = removeInsolator;
|
|
338
345
|
exports.removeLaser = removeLaser;
|
|
339
|
-
exports.removeLaserPreferred = removeLaserPreferred;
|
|
340
346
|
exports.removePulverizer = removePulverizer;
|
|
341
347
|
exports.removeQED = removeQED;
|
|
342
348
|
exports.removeSawmill = removeSawmill;
|
package/dist/zenflow.d.ts
CHANGED
|
@@ -24,17 +24,21 @@ declare const ENCHANTMENTS: {
|
|
|
24
24
|
readonly flame: 50;
|
|
25
25
|
readonly infinity: 51;
|
|
26
26
|
};
|
|
27
|
-
declare const
|
|
27
|
+
declare const MFR_FOCI: {
|
|
28
28
|
readonly white: 0;
|
|
29
29
|
readonly orange: 1;
|
|
30
|
+
readonly magenta: 2;
|
|
30
31
|
readonly lightBlue: 3;
|
|
31
32
|
readonly yellow: 4;
|
|
32
33
|
readonly lime: 5;
|
|
34
|
+
readonly pink: 6;
|
|
33
35
|
readonly gray: 7;
|
|
34
36
|
readonly lightGray: 8;
|
|
37
|
+
readonly cyan: 9;
|
|
35
38
|
readonly purple: 10;
|
|
36
39
|
readonly blue: 11;
|
|
37
40
|
readonly brown: 12;
|
|
41
|
+
readonly green: 13;
|
|
38
42
|
readonly red: 14;
|
|
39
43
|
readonly black: 15;
|
|
40
44
|
};
|
|
@@ -88,8 +92,14 @@ declare type RecipeExtreme = [
|
|
|
88
92
|
Partial<[string, string, string, string, string, string, string, string, string]>
|
|
89
93
|
];
|
|
90
94
|
declare const addCompressor: (recipe: RecipeCompressor) => string;
|
|
95
|
+
/**
|
|
96
|
+
* @param ingredient Compressor output
|
|
97
|
+
*/
|
|
91
98
|
declare const removeCompressor: (ingredient: string) => string;
|
|
92
99
|
declare const addExtreme: (item: Item, recipe: RecipeExtreme) => string;
|
|
100
|
+
/**
|
|
101
|
+
* @param ingredient Extreme Crafting output
|
|
102
|
+
*/
|
|
93
103
|
declare const removeExtreme: (ingredient: string) => string;
|
|
94
104
|
|
|
95
105
|
declare type RecipeComposter = [
|
|
@@ -131,10 +141,19 @@ declare const addSieve: (ingredient: string, recipe: RecipeSieve) => string;
|
|
|
131
141
|
declare const removeSieve: (ingredient: string) => string;
|
|
132
142
|
|
|
133
143
|
declare const addQED: (item: Item, recipe: RecipeShaped) => string;
|
|
144
|
+
/**
|
|
145
|
+
* @param ingredient QED output
|
|
146
|
+
*/
|
|
134
147
|
declare const removeQED: (ingredient: string) => string;
|
|
135
148
|
declare const replaceQED: (item: Item, recipe: RecipeShaped) => string;
|
|
136
149
|
|
|
150
|
+
/**
|
|
151
|
+
* @param dict Valid ore dictionary value: http://minetweaker3.powerofbytes.com/wiki/Tutorial:Ore_Dictionary
|
|
152
|
+
*/
|
|
137
153
|
declare const addDict: (dict: string, ingredients: string[]) => string;
|
|
154
|
+
/**
|
|
155
|
+
* @param dict Valid ore dictionary value: http://minetweaker3.powerofbytes.com/wiki/Tutorial:Ore_Dictionary
|
|
156
|
+
*/
|
|
138
157
|
declare const removeDict: (dict: string, ingredients: string[]) => string;
|
|
139
158
|
declare const withName: (ingredient: string, name: Text | Text[]) => string;
|
|
140
159
|
declare const withTooltip: (ingredient: string, tooltip: Text | Text[]) => string;
|
|
@@ -143,9 +162,15 @@ declare const withTag: (tag: string) => (ingredient: string) => string;
|
|
|
143
162
|
declare const withEnchantments: (enchantment: Enchantment | Enchantment[]) => (ingredient: string) => string;
|
|
144
163
|
|
|
145
164
|
declare const addLaser: (item: Item) => string;
|
|
165
|
+
/**
|
|
166
|
+
* @param ingredient - Laser output
|
|
167
|
+
*/
|
|
146
168
|
declare const removeLaser: (ingredient: string) => string;
|
|
147
|
-
declare const
|
|
148
|
-
|
|
169
|
+
declare const addFoci: (lens: keyof typeof MFR_FOCI, ingredients: string[]) => string;
|
|
170
|
+
/**
|
|
171
|
+
* @param ingredient - Laser output
|
|
172
|
+
*/
|
|
173
|
+
declare const removeFoci: (lens: keyof typeof MFR_FOCI, ingredients: string[]) => string;
|
|
149
174
|
|
|
150
175
|
declare const hide: (ingredient: string) => string;
|
|
151
176
|
declare const addNEI: (ingredient: string) => string;
|
|
@@ -267,15 +292,47 @@ declare type RecipeFurnace = {
|
|
|
267
292
|
in: string;
|
|
268
293
|
out: Item;
|
|
269
294
|
};
|
|
295
|
+
/**
|
|
296
|
+
* Add crafting recipe
|
|
297
|
+
*
|
|
298
|
+
* - Recipe: `{}` => Shaped recipe
|
|
299
|
+
* - Recipe: `[]` => Shapeless recipe
|
|
300
|
+
*/
|
|
270
301
|
declare const add: (item: Item, recipe: Recipe) => string;
|
|
302
|
+
/**
|
|
303
|
+
* Remove all crafting recipes (shaped & shapeless)
|
|
304
|
+
*/
|
|
271
305
|
declare const remove: (ingredient: string) => string;
|
|
306
|
+
/**
|
|
307
|
+
* Remove all shaped crafting recipes
|
|
308
|
+
*/
|
|
272
309
|
declare const removeShaped: (ingredient: string) => string;
|
|
310
|
+
/**
|
|
311
|
+
* Remove all shapeless crafting recipes
|
|
312
|
+
*/
|
|
273
313
|
declare const removeShapeless: (ingredient: string) => string;
|
|
274
314
|
declare const addFurnace: (recipe: RecipeFurnace) => string;
|
|
275
|
-
|
|
276
|
-
|
|
315
|
+
/**
|
|
316
|
+
* Remove furnace recipe
|
|
317
|
+
*
|
|
318
|
+
* - Recipe: `string` => Remove all recipes that create this ingredient
|
|
319
|
+
* - Recipe `{}` => Remove this specific recipe
|
|
320
|
+
*/
|
|
321
|
+
declare const removeFurnace: (recipe: string | {
|
|
322
|
+
in: string;
|
|
323
|
+
out: string;
|
|
324
|
+
}) => string;
|
|
325
|
+
/**
|
|
326
|
+
* Replace crafting recipe
|
|
327
|
+
*
|
|
328
|
+
* - Recipe: `{}` => Replaces all shaped recipes
|
|
329
|
+
* - Recipe: `[]` => Replaces all shapeless recipes
|
|
330
|
+
*/
|
|
277
331
|
declare const replace: (item: Item, recipe: Recipe) => string;
|
|
332
|
+
/**
|
|
333
|
+
* Replace all crafting recipe
|
|
334
|
+
*/
|
|
278
335
|
declare const replaceAll: (item: Item, recipe: Recipe) => string;
|
|
279
336
|
declare const replaceMany: (item: Item, recipes: Recipe[]) => string;
|
|
280
337
|
|
|
281
|
-
export { add, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addDict, addExtreme, addFurnace, addFurnace$1 as addFurnaceThermal, addHammer, addInsolator, addLaser,
|
|
338
|
+
export { Bonus, Enchantment, Ingredients, Item, Recipe, RecipeShaped, RecipeShapeless, Text, TextFormat, TextFormatOptions, 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, withEnchantments, withName, withTag, withTooltip, withTooltipShift };
|
package/dist/zenflow.mjs
CHANGED
|
@@ -75,17 +75,21 @@ const ENCHANTMENTS = {
|
|
|
75
75
|
flame: 50,
|
|
76
76
|
infinity: 51
|
|
77
77
|
};
|
|
78
|
-
const
|
|
78
|
+
const MFR_FOCI = {
|
|
79
79
|
white: 0,
|
|
80
80
|
orange: 1,
|
|
81
|
+
magenta: 2,
|
|
81
82
|
lightBlue: 3,
|
|
82
83
|
yellow: 4,
|
|
83
84
|
lime: 5,
|
|
85
|
+
pink: 6,
|
|
84
86
|
gray: 7,
|
|
85
87
|
lightGray: 8,
|
|
88
|
+
cyan: 9,
|
|
86
89
|
purple: 10,
|
|
87
90
|
blue: 11,
|
|
88
91
|
brown: 12,
|
|
92
|
+
green: 13,
|
|
89
93
|
red: 14,
|
|
90
94
|
black: 15
|
|
91
95
|
};
|
|
@@ -222,8 +226,8 @@ const withEnchantments = (enchantment) => {
|
|
|
222
226
|
|
|
223
227
|
const addLaser = (item) => `MiningLaser.addOre(${formatArgs(item)});`;
|
|
224
228
|
const removeLaser = (ingredient) => `MiningLaser.removeOre(${ingredient});`;
|
|
225
|
-
const
|
|
226
|
-
const
|
|
229
|
+
const addFoci = (lens, ingredients) => ingredients.map((ingredient) => `MiningLaser.addPreferredOre(${formatArgs(MFR_FOCI[lens], ingredient)});`).join("\n");
|
|
230
|
+
const removeFoci = (lens, ingredients) => ingredients.map((ingredient) => `MiningLaser.removePreferredOre(${formatArgs(MFR_FOCI[lens], ingredient)});`).join("\n");
|
|
227
231
|
|
|
228
232
|
const hide = (ingredient) => `NEI.hide(${ingredient});`;
|
|
229
233
|
const addNEI = (ingredient) => `NEI.addEntry(${ingredient});`;
|
|
@@ -277,8 +281,11 @@ const remove = (ingredient) => `recipes.remove(${ingredient});`;
|
|
|
277
281
|
const removeShaped = (ingredient) => `recipes.removeShaped(${ingredient});`;
|
|
278
282
|
const removeShapeless = (ingredient) => `recipes.removeShapeless(${ingredient});`;
|
|
279
283
|
const addFurnace = (recipe) => `furnace.addRecipe(${formatArgs(recipe.out, recipe.in)});`;
|
|
280
|
-
const removeFurnace = (
|
|
281
|
-
|
|
284
|
+
const removeFurnace = (recipe) => {
|
|
285
|
+
if (typeof recipe === "string")
|
|
286
|
+
return `furnace.remove(<*>, ${recipe});`;
|
|
287
|
+
return `furnace.remove(${formatArgs(recipe.out, recipe.in)})`;
|
|
288
|
+
};
|
|
282
289
|
const replace = (item, recipe) => {
|
|
283
290
|
const ingredient = Array.isArray(item) ? item[0] : item;
|
|
284
291
|
return [
|
|
@@ -295,4 +302,4 @@ const replaceMany = (item, recipes) => [
|
|
|
295
302
|
...recipes.map((recipe) => add(item, recipe))
|
|
296
303
|
].join("\n");
|
|
297
304
|
|
|
298
|
-
export { add, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addDict, addExtreme, addFurnace, addFurnace$1 as addFurnaceThermal, addHammer, addInsolator, addLaser,
|
|
305
|
+
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, withEnchantments, withName, withTag, withTooltip, withTooltipShift };
|