zen-flow 1.10.1 → 1.13.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 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
 
@@ -162,6 +163,8 @@ Shaped crafting recipes support the following shorthand patterns, in order:
162
163
 
163
164
  ## Items
164
165
 
166
+ - `addDict` - Add ingredients to ore dictionary
167
+ - `removeDict` - Remove ingredients from ore dictionary
165
168
  - `withName` - Change item name
166
169
  - `withTooltip` - Add item tooltip*
167
170
  - [Colours / formats](https://minecraft.fandom.com/wiki/Formatting_codes)
package/dist/zenflow.cjs CHANGED
@@ -213,6 +213,8 @@ const replaceQED = (item, recipe) => [
213
213
  addQED(item, recipe)
214
214
  ].join("\n");
215
215
 
216
+ const addDict = (dict, ingredients) => ingredients.map((ingredient) => `${dict}.add(${ingredient});`).join("\n");
217
+ const removeDict = (dict, ingredients) => ingredients.map((ingredient) => `${dict}.remove(${ingredient});`).join("\n");
216
218
  const withName = (ingredient, name) => `${ingredient}.displayName = ${formatName(name)};`;
217
219
  const withTooltip = (ingredient, tooltip) => `${ingredient}.addTooltip(${formatTooltip(tooltip)});`;
218
220
  const withTooltipShift = (ingredient, tooltip) => `${ingredient}.addShiftTooltip(${formatTooltip(tooltip)});`;
@@ -280,6 +282,7 @@ const removeShaped = (ingredient) => `recipes.removeShaped(${ingredient});`;
280
282
  const removeShapeless = (ingredient) => `recipes.removeShapeless(${ingredient});`;
281
283
  const addFurnace = (recipe) => `furnace.addRecipe(${formatArgs(recipe.out, recipe.in)});`;
282
284
  const removeFurnace = (ingredient) => `furnace.remove(<*>, ${ingredient});`;
285
+ const removeFurnaceAll = (ingredient) => `furnace.remove(${ingredient});`;
283
286
  const replace = (item, recipe) => {
284
287
  const ingredient = Array.isArray(item) ? item[0] : item;
285
288
  return [
@@ -302,6 +305,7 @@ exports.addCompressor = addCompressor;
302
305
  exports.addCrucibleNihilo = addCrucible$1;
303
306
  exports.addCrucibleSource = addCrucibleSource;
304
307
  exports.addCrucibleThermal = addCrucible;
308
+ exports.addDict = addDict;
305
309
  exports.addExtreme = addExtreme;
306
310
  exports.addFurnace = addFurnace;
307
311
  exports.addFurnaceThermal = addFurnace$1;
@@ -324,8 +328,10 @@ exports.removeCompressor = removeCompressor;
324
328
  exports.removeCrucibleNihilo = removeCrucible$1;
325
329
  exports.removeCrucibleSource = removeCrucibleSource;
326
330
  exports.removeCrucibleThermal = removeCrucible;
331
+ exports.removeDict = removeDict;
327
332
  exports.removeExtreme = removeExtreme;
328
333
  exports.removeFurnace = removeFurnace;
334
+ exports.removeFurnaceAll = removeFurnaceAll;
329
335
  exports.removeFurnaceThermal = removeFurnace$1;
330
336
  exports.removeHammer = removeHammer;
331
337
  exports.removeInsolator = removeInsolator;
package/dist/zenflow.d.ts CHANGED
@@ -134,6 +134,8 @@ declare const addQED: (item: Item, recipe: RecipeShaped) => string;
134
134
  declare const removeQED: (ingredient: string) => string;
135
135
  declare const replaceQED: (item: Item, recipe: RecipeShaped) => string;
136
136
 
137
+ declare const addDict: (dict: string, ingredients: string[]) => string;
138
+ declare const removeDict: (dict: string, ingredients: string[]) => string;
137
139
  declare const withName: (ingredient: string, name: Text | Text[]) => string;
138
140
  declare const withTooltip: (ingredient: string, tooltip: Text | Text[]) => string;
139
141
  declare const withTooltipShift: (ingredient: string, tooltip: Text | Text[]) => string;
@@ -233,10 +235,11 @@ declare const addSawmill: (recipe: RecipeSawmill) => string;
233
235
  declare const removeSawmill: (ingredient: string) => string;
234
236
  /**
235
237
  * Common values (RF):
236
- * - Ores: `1600RF ~ 3200RF`
237
- * - Tools: `5000RF ~ 7400RF`
238
238
  * - Dust: `200RF ~ 1600RF`
239
+ * - Ores: `1600RF ~ 3200RF`
240
+ * - Alloys: `2400RF`
239
241
  * - Infused Dust: `4000RF ~ 8000RF`
242
+ * - Tools: `5000RF ~ 7400RF`
240
243
  * - Slag: `7200RF`
241
244
  */
242
245
  declare const addSmelter: (recipe: RecipeSmelter) => string;
@@ -270,8 +273,9 @@ declare const removeShaped: (ingredient: string) => string;
270
273
  declare const removeShapeless: (ingredient: string) => string;
271
274
  declare const addFurnace: (recipe: RecipeFurnace) => string;
272
275
  declare const removeFurnace: (ingredient: string) => string;
276
+ declare const removeFurnaceAll: (ingredient: string) => string;
273
277
  declare const replace: (item: Item, recipe: Recipe) => string;
274
278
  declare const replaceAll: (item: Item, recipe: Recipe) => string;
275
279
  declare const replaceMany: (item: Item, recipes: Recipe[]) => string;
276
280
 
277
- 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, replaceQED, withEnchantments, withName, withTag, withTooltip, withTooltipShift };
281
+ export { add, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addDict, 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, removeDict, 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
@@ -209,6 +209,8 @@ const replaceQED = (item, recipe) => [
209
209
  addQED(item, recipe)
210
210
  ].join("\n");
211
211
 
212
+ const addDict = (dict, ingredients) => ingredients.map((ingredient) => `${dict}.add(${ingredient});`).join("\n");
213
+ const removeDict = (dict, ingredients) => ingredients.map((ingredient) => `${dict}.remove(${ingredient});`).join("\n");
212
214
  const withName = (ingredient, name) => `${ingredient}.displayName = ${formatName(name)};`;
213
215
  const withTooltip = (ingredient, tooltip) => `${ingredient}.addTooltip(${formatTooltip(tooltip)});`;
214
216
  const withTooltipShift = (ingredient, tooltip) => `${ingredient}.addShiftTooltip(${formatTooltip(tooltip)});`;
@@ -276,6 +278,7 @@ const removeShaped = (ingredient) => `recipes.removeShaped(${ingredient});`;
276
278
  const removeShapeless = (ingredient) => `recipes.removeShapeless(${ingredient});`;
277
279
  const addFurnace = (recipe) => `furnace.addRecipe(${formatArgs(recipe.out, recipe.in)});`;
278
280
  const removeFurnace = (ingredient) => `furnace.remove(<*>, ${ingredient});`;
281
+ const removeFurnaceAll = (ingredient) => `furnace.remove(${ingredient});`;
279
282
  const replace = (item, recipe) => {
280
283
  const ingredient = Array.isArray(item) ? item[0] : item;
281
284
  return [
@@ -292,4 +295,4 @@ const replaceMany = (item, recipes) => [
292
295
  ...recipes.map((recipe) => add(item, recipe))
293
296
  ].join("\n");
294
297
 
295
- 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, replaceQED, withEnchantments, withName, withTag, withTooltip, withTooltipShift };
298
+ export { add, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addDict, 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, removeDict, 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-flow",
3
- "version": "1.10.1",
3
+ "version": "1.13.0",
4
4
  "description": "MineTweaker ZenScript made easy.",
5
5
  "main": "dist/zenflow.cjs",
6
6
  "module": "dist/zenflow.mjs",