zen-flow 1.9.0 → 1.11.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 -0
- package/dist/zenflow.cjs +8 -1
- package/dist/zenflow.d.ts +4 -2
- package/dist/zenflow.mjs +7 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -115,6 +115,7 @@ 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
|
|
118
119
|
|
|
119
120
|
### Crafting patterns
|
|
120
121
|
|
|
@@ -242,6 +243,7 @@ exnihilo.addSieve('<minecraft:cobblestone>', {
|
|
|
242
243
|
- `addQED` - Add QED recipe
|
|
243
244
|
- QED only accepts <b>shaped</b> recipes
|
|
244
245
|
- `removeQED` - Remove QED recipe
|
|
246
|
+
- `replaceQED` - Replace QED recipe
|
|
245
247
|
|
|
246
248
|
## MineFactoryReloaded
|
|
247
249
|
|
package/dist/zenflow.cjs
CHANGED
|
@@ -208,6 +208,10 @@ const removeSieve = (ingredient) => `mods.exnihilo.Sieve.removeRecipe(${ingredie
|
|
|
208
208
|
|
|
209
209
|
const addQED = (item, recipe) => `mods.extraUtils.QED.addShapedRecipe(${formatArgs(item, recipe)});`;
|
|
210
210
|
const removeQED = (ingredient) => `mods.extraUtils.QED.removeRecipe(${ingredient});`;
|
|
211
|
+
const replaceQED = (item, recipe) => [
|
|
212
|
+
removeQED(Array.isArray(item) ? item[0] : item),
|
|
213
|
+
addQED(item, recipe)
|
|
214
|
+
].join("\n");
|
|
211
215
|
|
|
212
216
|
const withName = (ingredient, name) => `${ingredient}.displayName = ${formatName(name)};`;
|
|
213
217
|
const withTooltip = (ingredient, tooltip) => `${ingredient}.addTooltip(${formatTooltip(tooltip)});`;
|
|
@@ -275,7 +279,8 @@ const remove = (ingredient) => `recipes.remove(${ingredient});`;
|
|
|
275
279
|
const removeShaped = (ingredient) => `recipes.removeShaped(${ingredient});`;
|
|
276
280
|
const removeShapeless = (ingredient) => `recipes.removeShapeless(${ingredient});`;
|
|
277
281
|
const addFurnace = (recipe) => `furnace.addRecipe(${formatArgs(recipe.out, recipe.in)});`;
|
|
278
|
-
const removeFurnace = (ingredient) => `furnace.remove(${ingredient});`;
|
|
282
|
+
const removeFurnace = (ingredient) => `furnace.remove(<*>, ${ingredient});`;
|
|
283
|
+
const removeFurnaceAll = (ingredient) => `furnace.remove(${ingredient});`;
|
|
279
284
|
const replace = (item, recipe) => {
|
|
280
285
|
const ingredient = Array.isArray(item) ? item[0] : item;
|
|
281
286
|
return [
|
|
@@ -322,6 +327,7 @@ exports.removeCrucibleSource = removeCrucibleSource;
|
|
|
322
327
|
exports.removeCrucibleThermal = removeCrucible;
|
|
323
328
|
exports.removeExtreme = removeExtreme;
|
|
324
329
|
exports.removeFurnace = removeFurnace;
|
|
330
|
+
exports.removeFurnaceAll = removeFurnaceAll;
|
|
325
331
|
exports.removeFurnaceThermal = removeFurnace$1;
|
|
326
332
|
exports.removeHammer = removeHammer;
|
|
327
333
|
exports.removeInsolator = removeInsolator;
|
|
@@ -339,6 +345,7 @@ exports.removeTransposerFill = removeTransposerFill;
|
|
|
339
345
|
exports.replace = replace;
|
|
340
346
|
exports.replaceAll = replaceAll;
|
|
341
347
|
exports.replaceMany = replaceMany;
|
|
348
|
+
exports.replaceQED = replaceQED;
|
|
342
349
|
exports.withEnchantments = withEnchantments;
|
|
343
350
|
exports.withName = withName;
|
|
344
351
|
exports.withTag = withTag;
|
package/dist/zenflow.d.ts
CHANGED
|
@@ -131,7 +131,8 @@ declare const addSieve: (ingredient: string, recipe: RecipeSieve) => string;
|
|
|
131
131
|
declare const removeSieve: (ingredient: string) => string;
|
|
132
132
|
|
|
133
133
|
declare const addQED: (item: Item, recipe: RecipeShaped) => string;
|
|
134
|
-
declare const removeQED: (ingredient: string) => string;
|
|
134
|
+
declare const removeQED: (ingredient: string) => string;
|
|
135
|
+
declare const replaceQED: (item: Item, recipe: RecipeShaped) => string;
|
|
135
136
|
|
|
136
137
|
declare const withName: (ingredient: string, name: Text | Text[]) => string;
|
|
137
138
|
declare const withTooltip: (ingredient: string, tooltip: Text | Text[]) => string;
|
|
@@ -269,8 +270,9 @@ declare const removeShaped: (ingredient: string) => string;
|
|
|
269
270
|
declare const removeShapeless: (ingredient: string) => string;
|
|
270
271
|
declare const addFurnace: (recipe: RecipeFurnace) => string;
|
|
271
272
|
declare const removeFurnace: (ingredient: string) => string;
|
|
273
|
+
declare const removeFurnaceAll: (ingredient: string) => string;
|
|
272
274
|
declare const replace: (item: Item, recipe: Recipe) => string;
|
|
273
275
|
declare const replaceAll: (item: Item, recipe: Recipe) => string;
|
|
274
276
|
declare const replaceMany: (item: Item, recipes: Recipe[]) => string;
|
|
275
277
|
|
|
276
|
-
export { add, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addExtreme, addFurnace, addFurnace$1 as addFurnaceThermal, addHammer, addInsolator, addLaser, addLaserPreferred, addNEI, addPulverizer, addQED, addSawmill, addSieve, addSmelter, addTransposerExtract, addTransposerFill, hide, remove, removeComposter, removeCompressor, removeCrucible$1 as removeCrucibleNihilo, removeCrucibleSource, removeCrucible as removeCrucibleThermal, removeExtreme, removeFurnace, removeFurnace$1 as removeFurnaceThermal, removeHammer, removeInsolator, removeLaser, removeLaserPreferred, removePulverizer, removeQED, removeSawmill, removeShaped, removeShapeless, removeSieve, removeSmelter, removeTransposerExtract, removeTransposerFill, replace, replaceAll, replaceMany, withEnchantments, withName, withTag, withTooltip, withTooltipShift };
|
|
278
|
+
export { add, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addExtreme, addFurnace, addFurnace$1 as addFurnaceThermal, addHammer, addInsolator, addLaser, addLaserPreferred, addNEI, addPulverizer, addQED, addSawmill, addSieve, addSmelter, addTransposerExtract, addTransposerFill, hide, remove, removeComposter, removeCompressor, removeCrucible$1 as removeCrucibleNihilo, removeCrucibleSource, removeCrucible as removeCrucibleThermal, removeExtreme, removeFurnace, removeFurnaceAll, removeFurnace$1 as removeFurnaceThermal, removeHammer, removeInsolator, removeLaser, removeLaserPreferred, removePulverizer, removeQED, removeSawmill, removeShaped, removeShapeless, removeSieve, removeSmelter, removeTransposerExtract, removeTransposerFill, replace, replaceAll, replaceMany, replaceQED, withEnchantments, withName, withTag, withTooltip, withTooltipShift };
|
package/dist/zenflow.mjs
CHANGED
|
@@ -204,6 +204,10 @@ const removeSieve = (ingredient) => `mods.exnihilo.Sieve.removeRecipe(${ingredie
|
|
|
204
204
|
|
|
205
205
|
const addQED = (item, recipe) => `mods.extraUtils.QED.addShapedRecipe(${formatArgs(item, recipe)});`;
|
|
206
206
|
const removeQED = (ingredient) => `mods.extraUtils.QED.removeRecipe(${ingredient});`;
|
|
207
|
+
const replaceQED = (item, recipe) => [
|
|
208
|
+
removeQED(Array.isArray(item) ? item[0] : item),
|
|
209
|
+
addQED(item, recipe)
|
|
210
|
+
].join("\n");
|
|
207
211
|
|
|
208
212
|
const withName = (ingredient, name) => `${ingredient}.displayName = ${formatName(name)};`;
|
|
209
213
|
const withTooltip = (ingredient, tooltip) => `${ingredient}.addTooltip(${formatTooltip(tooltip)});`;
|
|
@@ -271,7 +275,8 @@ const remove = (ingredient) => `recipes.remove(${ingredient});`;
|
|
|
271
275
|
const removeShaped = (ingredient) => `recipes.removeShaped(${ingredient});`;
|
|
272
276
|
const removeShapeless = (ingredient) => `recipes.removeShapeless(${ingredient});`;
|
|
273
277
|
const addFurnace = (recipe) => `furnace.addRecipe(${formatArgs(recipe.out, recipe.in)});`;
|
|
274
|
-
const removeFurnace = (ingredient) => `furnace.remove(${ingredient});`;
|
|
278
|
+
const removeFurnace = (ingredient) => `furnace.remove(<*>, ${ingredient});`;
|
|
279
|
+
const removeFurnaceAll = (ingredient) => `furnace.remove(${ingredient});`;
|
|
275
280
|
const replace = (item, recipe) => {
|
|
276
281
|
const ingredient = Array.isArray(item) ? item[0] : item;
|
|
277
282
|
return [
|
|
@@ -288,4 +293,4 @@ const replaceMany = (item, recipes) => [
|
|
|
288
293
|
...recipes.map((recipe) => add(item, recipe))
|
|
289
294
|
].join("\n");
|
|
290
295
|
|
|
291
|
-
export { add, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addExtreme, addFurnace, addFurnace$1 as addFurnaceThermal, addHammer, addInsolator, addLaser, addLaserPreferred, addNEI, addPulverizer, addQED, addSawmill, addSieve, addSmelter, addTransposerExtract, addTransposerFill, hide, remove, removeComposter, removeCompressor, removeCrucible$1 as removeCrucibleNihilo, removeCrucibleSource, removeCrucible as removeCrucibleThermal, removeExtreme, removeFurnace, removeFurnace$1 as removeFurnaceThermal, removeHammer, removeInsolator, removeLaser, removeLaserPreferred, removePulverizer, removeQED, removeSawmill, removeShaped, removeShapeless, removeSieve, removeSmelter, removeTransposerExtract, removeTransposerFill, replace, replaceAll, replaceMany, withEnchantments, withName, withTag, withTooltip, withTooltipShift };
|
|
296
|
+
export { add, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addExtreme, addFurnace, addFurnace$1 as addFurnaceThermal, addHammer, addInsolator, addLaser, addLaserPreferred, addNEI, addPulverizer, addQED, addSawmill, addSieve, addSmelter, addTransposerExtract, addTransposerFill, hide, remove, removeComposter, removeCompressor, removeCrucible$1 as removeCrucibleNihilo, removeCrucibleSource, removeCrucible as removeCrucibleThermal, removeExtreme, removeFurnace, removeFurnaceAll, removeFurnace$1 as removeFurnaceThermal, removeHammer, removeInsolator, removeLaser, removeLaserPreferred, removePulverizer, removeQED, removeSawmill, removeShaped, removeShapeless, removeSieve, removeSmelter, removeTransposerExtract, removeTransposerFill, replace, replaceAll, replaceMany, replaceQED, withEnchantments, withName, withTag, withTooltip, withTooltipShift };
|