zen-flow 1.5.0 → 1.7.1

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
@@ -111,7 +111,7 @@ Array.from({ length: 11 })
111
111
  - `replace` - Replaced crafting recipe
112
112
  - Shaped recipe: `object`
113
113
  - Shapeless recipe: `Array`
114
- - `replaceAll` - Remove all recipes and all multiple recipes
114
+ - `replaceMany` - Remove all recipes and add multiple recipes
115
115
  - `addFurnace` - Adds furnace recipe
116
116
  - `removeFurnace` - Removes furnace recipe
117
117
 
@@ -163,7 +163,9 @@ Shaped crafting recipes support the following shorthand patterns, in order:
163
163
 
164
164
  - `withName` - Change item name
165
165
  - `withTooltip` - Add item tooltip*
166
+ - [Colours / formats](https://minecraft.fandom.com/wiki/Formatting_codes)
166
167
  - `withTooltipShift` - Add shift item tooltip*
168
+ - [Colours / formats](https://minecraft.fandom.com/wiki/Formatting_codes)
167
169
  - `withTag` - Add item NBT tag data
168
170
  - [Display properties](https://minecraft.fandom.com/wiki/Player.dat_format#Display_Properties)
169
171
  - `withEnchantment` - Add item enchantment
package/dist/zenflow.cjs CHANGED
@@ -208,7 +208,7 @@ const removeQED = (ingredient) => `mods.extraUtils.QED.removeRecipe(${ingredient
208
208
  const withName = (ingredient, name) => `${ingredient}.displayName = ${formatName(name)};`;
209
209
  const withTooltip = (ingredient, tooltip) => `${ingredient}.addTooltip(${formatTooltip(tooltip)});`;
210
210
  const withTooltipShift = (ingredient, tooltip) => `${ingredient}.addShiftTooltip(${formatTooltip(tooltip)});`;
211
- const withTag = (tag) => (ingredient) => `${ingredient}.withTag(${tag});`;
211
+ const withTag = (tag) => (ingredient) => `${ingredient}.withTag(${tag})`;
212
212
  const withEnchantment = (enchantment) => withTag(`{ ench: ${formatList([formatEnchantment(enchantment)])} }`);
213
213
  const withEnchantments = (enchantments) => withTag(`{ ench: ${formatList(enchantments.map(formatEnchantment))} }`);
214
214
 
@@ -277,9 +277,9 @@ const replace = (item, recipe) => {
277
277
  add(item, recipe)
278
278
  ].join("\n");
279
279
  };
280
- const replaceAll = (item, recipes) => [
280
+ const replaceMany = (item, recipes) => [
281
281
  remove(Array.isArray(item) ? item[0] : item),
282
- recipes.map((recipe) => add(item, recipe))
282
+ ...recipes.map((recipe) => add(item, recipe))
283
283
  ].join("\n");
284
284
 
285
285
  exports.add = add;
@@ -327,7 +327,7 @@ exports.removeSmelter = removeSmelter;
327
327
  exports.removeTransposerExtract = removeTransposerExtract;
328
328
  exports.removeTransposerFill = removeTransposerFill;
329
329
  exports.replace = replace;
330
- exports.replaceAll = replaceAll;
330
+ exports.replaceMany = replaceMany;
331
331
  exports.withEnchantment = withEnchantment;
332
332
  exports.withEnchantments = withEnchantments;
333
333
  exports.withName = withName;
package/dist/zenflow.d.ts CHANGED
@@ -267,6 +267,6 @@ declare const removeShapeless: (ingredient: string) => string;
267
267
  declare const addFurnace: (recipe: RecipeFurnace) => string;
268
268
  declare const removeFurnace: (ingredient: string) => string;
269
269
  declare const replace: (item: Item, recipe: Recipe) => string;
270
- declare const replaceAll: (item: Item, recipes: Recipe[]) => string;
270
+ declare const replaceMany: (item: Item, recipes: Recipe[]) => string;
271
271
 
272
- 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, withEnchantment, withEnchantments, withName, withTag, withTooltip, withTooltipShift };
272
+ 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, replaceMany, withEnchantment, withEnchantments, withName, withTag, withTooltip, withTooltipShift };
package/dist/zenflow.mjs CHANGED
@@ -204,7 +204,7 @@ const removeQED = (ingredient) => `mods.extraUtils.QED.removeRecipe(${ingredient
204
204
  const withName = (ingredient, name) => `${ingredient}.displayName = ${formatName(name)};`;
205
205
  const withTooltip = (ingredient, tooltip) => `${ingredient}.addTooltip(${formatTooltip(tooltip)});`;
206
206
  const withTooltipShift = (ingredient, tooltip) => `${ingredient}.addShiftTooltip(${formatTooltip(tooltip)});`;
207
- const withTag = (tag) => (ingredient) => `${ingredient}.withTag(${tag});`;
207
+ const withTag = (tag) => (ingredient) => `${ingredient}.withTag(${tag})`;
208
208
  const withEnchantment = (enchantment) => withTag(`{ ench: ${formatList([formatEnchantment(enchantment)])} }`);
209
209
  const withEnchantments = (enchantments) => withTag(`{ ench: ${formatList(enchantments.map(formatEnchantment))} }`);
210
210
 
@@ -273,9 +273,9 @@ const replace = (item, recipe) => {
273
273
  add(item, recipe)
274
274
  ].join("\n");
275
275
  };
276
- const replaceAll = (item, recipes) => [
276
+ const replaceMany = (item, recipes) => [
277
277
  remove(Array.isArray(item) ? item[0] : item),
278
- recipes.map((recipe) => add(item, recipe))
278
+ ...recipes.map((recipe) => add(item, recipe))
279
279
  ].join("\n");
280
280
 
281
- 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, withEnchantment, withEnchantments, withName, withTag, withTooltip, withTooltipShift };
281
+ 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, replaceMany, withEnchantment, withEnchantments, withName, withTag, withTooltip, withTooltipShift };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-flow",
3
- "version": "1.5.0",
3
+ "version": "1.7.1",
4
4
  "description": "MineTweaker ZenScript made easy.",
5
5
  "main": "dist/zenflow.cjs",
6
6
  "module": "dist/zenflow.mjs",