zen-flow 1.13.0 → 1.14.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
@@ -251,8 +251,8 @@ exnihilo.addSieve('<minecraft:cobblestone>', {
251
251
 
252
252
  - `addLaser` - Add ore to the Mining Laser ore table
253
253
  - `removeLaser` - Remove ore from the Mining Laser ore table
254
- - `addLaserPreferred` - Add ore to the Mining Laser lens
255
- - `removeLaserPreferred` - Remove ore from the Mining Laser lens
254
+ - `addLaserPreferred` - Add ores to the Mining Laser lens
255
+ - `removeLaserPreferred` - Remove ores from the Mining Laser lens
256
256
 
257
257
  ## NEI
258
258
 
package/dist/zenflow.cjs CHANGED
@@ -82,14 +82,18 @@ const ENCHANTMENTS = {
82
82
  const MFR_LASER_LENSES = {
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
  };
@@ -227,7 +231,7 @@ const withEnchantments = (enchantment) => {
227
231
  const addLaser = (item) => `MiningLaser.addOre(${formatArgs(item)});`;
228
232
  const removeLaser = (ingredient) => `MiningLaser.removeOre(${ingredient});`;
229
233
  const addLaserPreferred = (lens, ingredients) => ingredients.map((ingredient) => `MiningLaser.addPreferredOre(${formatArgs(MFR_LASER_LENSES[lens], ingredient)});`).join("\n");
230
- const removeLaserPreferred = (lens, ingredient) => `MiningLaser.removePreferredOre(${formatArgs(MFR_LASER_LENSES[lens], ingredient)});`;
234
+ const removeLaserPreferred = (lens, ingredients) => ingredients.map((ingredient) => `MiningLaser.removePreferredOre(${formatArgs(MFR_LASER_LENSES[lens], ingredient)});`).join("\n");
231
235
 
232
236
  const hide = (ingredient) => `NEI.hide(${ingredient});`;
233
237
  const addNEI = (ingredient) => `NEI.addEntry(${ingredient});`;
package/dist/zenflow.d.ts CHANGED
@@ -27,14 +27,18 @@ declare const ENCHANTMENTS: {
27
27
  declare const MFR_LASER_LENSES: {
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
169
  declare const addLaserPreferred: (lens: keyof typeof MFR_LASER_LENSES, ingredients: string[]) => string;
148
- declare const removeLaserPreferred: (lens: keyof typeof MFR_LASER_LENSES, ingredient: string) => string;
170
+ /**
171
+ * @param ingredient - Laser output
172
+ */
173
+ declare const removeLaserPreferred: (lens: keyof typeof MFR_LASER_LENSES, ingredients: string[]) => string;
149
174
 
150
175
  declare const hide: (ingredient: string) => string;
151
176
  declare const addNEI: (ingredient: string) => string;
@@ -267,15 +292,39 @@ 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
315
  declare const removeFurnace: (ingredient: string) => string;
276
316
  declare const removeFurnaceAll: (ingredient: string) => string;
317
+ /**
318
+ * Replace crafting recipe
319
+ *
320
+ * - Recipe: `{}` => Replaces all shaped recipes
321
+ * - Recipe: `[]` => Replaces all shapeless recipes
322
+ */
277
323
  declare const replace: (item: Item, recipe: Recipe) => string;
324
+ /**
325
+ * Replace all crafting recipe
326
+ */
278
327
  declare const replaceAll: (item: Item, recipe: Recipe) => string;
279
328
  declare const replaceMany: (item: Item, recipes: Recipe[]) => string;
280
329
 
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 };
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, 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
@@ -78,14 +78,18 @@ const ENCHANTMENTS = {
78
78
  const MFR_LASER_LENSES = {
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
  };
@@ -223,7 +227,7 @@ const withEnchantments = (enchantment) => {
223
227
  const addLaser = (item) => `MiningLaser.addOre(${formatArgs(item)});`;
224
228
  const removeLaser = (ingredient) => `MiningLaser.removeOre(${ingredient});`;
225
229
  const addLaserPreferred = (lens, ingredients) => ingredients.map((ingredient) => `MiningLaser.addPreferredOre(${formatArgs(MFR_LASER_LENSES[lens], ingredient)});`).join("\n");
226
- const removeLaserPreferred = (lens, ingredient) => `MiningLaser.removePreferredOre(${formatArgs(MFR_LASER_LENSES[lens], ingredient)});`;
230
+ const removeLaserPreferred = (lens, ingredients) => ingredients.map((ingredient) => `MiningLaser.removePreferredOre(${formatArgs(MFR_LASER_LENSES[lens], ingredient)});`).join("\n");
227
231
 
228
232
  const hide = (ingredient) => `NEI.hide(${ingredient});`;
229
233
  const addNEI = (ingredient) => `NEI.addEntry(${ingredient});`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-flow",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "description": "MineTweaker ZenScript made easy.",
5
5
  "main": "dist/zenflow.cjs",
6
6
  "module": "dist/zenflow.mjs",