zen-flow 1.14.0 → 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 +10 -8
- package/dist/zenflow.d.ts +14 -6
- package/dist/zenflow.mjs +9 -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,7 +79,7 @@ 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
85
|
magenta: 2,
|
|
@@ -230,8 +230,8 @@ const withEnchantments = (enchantment) => {
|
|
|
230
230
|
|
|
231
231
|
const addLaser = (item) => `MiningLaser.addOre(${formatArgs(item)});`;
|
|
232
232
|
const removeLaser = (ingredient) => `MiningLaser.removeOre(${ingredient});`;
|
|
233
|
-
const
|
|
234
|
-
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");
|
|
235
235
|
|
|
236
236
|
const hide = (ingredient) => `NEI.hide(${ingredient});`;
|
|
237
237
|
const addNEI = (ingredient) => `NEI.addEntry(${ingredient});`;
|
|
@@ -285,8 +285,11 @@ const remove = (ingredient) => `recipes.remove(${ingredient});`;
|
|
|
285
285
|
const removeShaped = (ingredient) => `recipes.removeShaped(${ingredient});`;
|
|
286
286
|
const removeShapeless = (ingredient) => `recipes.removeShapeless(${ingredient});`;
|
|
287
287
|
const addFurnace = (recipe) => `furnace.addRecipe(${formatArgs(recipe.out, recipe.in)});`;
|
|
288
|
-
const removeFurnace = (
|
|
289
|
-
|
|
288
|
+
const removeFurnace = (recipe) => {
|
|
289
|
+
if (typeof recipe === "string")
|
|
290
|
+
return `furnace.remove(<*>, ${recipe});`;
|
|
291
|
+
return `furnace.remove(${formatArgs(recipe.out, recipe.in)})`;
|
|
292
|
+
};
|
|
290
293
|
const replace = (item, recipe) => {
|
|
291
294
|
const ingredient = Array.isArray(item) ? item[0] : item;
|
|
292
295
|
return [
|
|
@@ -311,12 +314,12 @@ exports.addCrucibleSource = addCrucibleSource;
|
|
|
311
314
|
exports.addCrucibleThermal = addCrucible;
|
|
312
315
|
exports.addDict = addDict;
|
|
313
316
|
exports.addExtreme = addExtreme;
|
|
317
|
+
exports.addFoci = addFoci;
|
|
314
318
|
exports.addFurnace = addFurnace;
|
|
315
319
|
exports.addFurnaceThermal = addFurnace$1;
|
|
316
320
|
exports.addHammer = addHammer;
|
|
317
321
|
exports.addInsolator = addInsolator;
|
|
318
322
|
exports.addLaser = addLaser;
|
|
319
|
-
exports.addLaserPreferred = addLaserPreferred;
|
|
320
323
|
exports.addNEI = addNEI;
|
|
321
324
|
exports.addPulverizer = addPulverizer;
|
|
322
325
|
exports.addQED = addQED;
|
|
@@ -334,13 +337,12 @@ exports.removeCrucibleSource = removeCrucibleSource;
|
|
|
334
337
|
exports.removeCrucibleThermal = removeCrucible;
|
|
335
338
|
exports.removeDict = removeDict;
|
|
336
339
|
exports.removeExtreme = removeExtreme;
|
|
340
|
+
exports.removeFoci = removeFoci;
|
|
337
341
|
exports.removeFurnace = removeFurnace;
|
|
338
|
-
exports.removeFurnaceAll = removeFurnaceAll;
|
|
339
342
|
exports.removeFurnaceThermal = removeFurnace$1;
|
|
340
343
|
exports.removeHammer = removeHammer;
|
|
341
344
|
exports.removeInsolator = removeInsolator;
|
|
342
345
|
exports.removeLaser = removeLaser;
|
|
343
|
-
exports.removeLaserPreferred = removeLaserPreferred;
|
|
344
346
|
exports.removePulverizer = removePulverizer;
|
|
345
347
|
exports.removeQED = removeQED;
|
|
346
348
|
exports.removeSawmill = removeSawmill;
|
package/dist/zenflow.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ 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
30
|
readonly magenta: 2;
|
|
@@ -166,11 +166,11 @@ declare const addLaser: (item: Item) => string;
|
|
|
166
166
|
* @param ingredient - Laser output
|
|
167
167
|
*/
|
|
168
168
|
declare const removeLaser: (ingredient: string) => string;
|
|
169
|
-
declare const
|
|
169
|
+
declare const addFoci: (lens: keyof typeof MFR_FOCI, ingredients: string[]) => string;
|
|
170
170
|
/**
|
|
171
171
|
* @param ingredient - Laser output
|
|
172
172
|
*/
|
|
173
|
-
declare const
|
|
173
|
+
declare const removeFoci: (lens: keyof typeof MFR_FOCI, ingredients: string[]) => string;
|
|
174
174
|
|
|
175
175
|
declare const hide: (ingredient: string) => string;
|
|
176
176
|
declare const addNEI: (ingredient: string) => string;
|
|
@@ -312,8 +312,16 @@ declare const removeShaped: (ingredient: string) => string;
|
|
|
312
312
|
*/
|
|
313
313
|
declare const removeShapeless: (ingredient: string) => string;
|
|
314
314
|
declare const addFurnace: (recipe: RecipeFurnace) => string;
|
|
315
|
-
|
|
316
|
-
|
|
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;
|
|
317
325
|
/**
|
|
318
326
|
* Replace crafting recipe
|
|
319
327
|
*
|
|
@@ -327,4 +335,4 @@ declare const replace: (item: Item, recipe: Recipe) => string;
|
|
|
327
335
|
declare const replaceAll: (item: Item, recipe: Recipe) => string;
|
|
328
336
|
declare const replaceMany: (item: Item, recipes: Recipe[]) => string;
|
|
329
337
|
|
|
330
|
-
export { Bonus, Enchantment, Ingredients, Item, Recipe, RecipeShaped, RecipeShapeless, Text, TextFormat, TextFormatOptions, 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,7 +75,7 @@ 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
81
|
magenta: 2,
|
|
@@ -226,8 +226,8 @@ const withEnchantments = (enchantment) => {
|
|
|
226
226
|
|
|
227
227
|
const addLaser = (item) => `MiningLaser.addOre(${formatArgs(item)});`;
|
|
228
228
|
const removeLaser = (ingredient) => `MiningLaser.removeOre(${ingredient});`;
|
|
229
|
-
const
|
|
230
|
-
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");
|
|
231
231
|
|
|
232
232
|
const hide = (ingredient) => `NEI.hide(${ingredient});`;
|
|
233
233
|
const addNEI = (ingredient) => `NEI.addEntry(${ingredient});`;
|
|
@@ -281,8 +281,11 @@ const remove = (ingredient) => `recipes.remove(${ingredient});`;
|
|
|
281
281
|
const removeShaped = (ingredient) => `recipes.removeShaped(${ingredient});`;
|
|
282
282
|
const removeShapeless = (ingredient) => `recipes.removeShapeless(${ingredient});`;
|
|
283
283
|
const addFurnace = (recipe) => `furnace.addRecipe(${formatArgs(recipe.out, recipe.in)});`;
|
|
284
|
-
const removeFurnace = (
|
|
285
|
-
|
|
284
|
+
const removeFurnace = (recipe) => {
|
|
285
|
+
if (typeof recipe === "string")
|
|
286
|
+
return `furnace.remove(<*>, ${recipe});`;
|
|
287
|
+
return `furnace.remove(${formatArgs(recipe.out, recipe.in)})`;
|
|
288
|
+
};
|
|
286
289
|
const replace = (item, recipe) => {
|
|
287
290
|
const ingredient = Array.isArray(item) ? item[0] : item;
|
|
288
291
|
return [
|
|
@@ -299,4 +302,4 @@ const replaceMany = (item, recipes) => [
|
|
|
299
302
|
...recipes.map((recipe) => add(item, recipe))
|
|
300
303
|
].join("\n");
|
|
301
304
|
|
|
302
|
-
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 };
|