zen-flow 2.4.0 → 2.4.2

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/dist/zenflow.cjs CHANGED
@@ -228,6 +228,53 @@ const replaceQED = (ingredient, recipe) => [
228
228
  addQED(ingredient, recipe)
229
229
  ].join("\n");
230
230
 
231
+ const addCarpenter = (ingredient, recipe) => {
232
+ const out = formatArgs(formatIngredient(ingredient), formatRecipe(recipe.recipe), recipe.liquid && formatStack(recipe.liquid), recipe.ticks, recipe.top && formatStack(recipe.top));
233
+ return `mods.forestry.Carpenter.addRecipe(${out});`;
234
+ };
235
+ const removeCarpenter = (id, liquid) => `mods.forestry.Carpenter.removeRecipe(${formatArgs(id, liquid)});`;
236
+ const addCentrifuge = (ingredients, recipe) => {
237
+ const out = formatArgs(ingredients.map((ingredient) => isObject(ingredient) ? `${ingredient.id} % ${ingredient.n}` : ingredient), recipe.in, recipe.ticks);
238
+ return `mods.forestry.Centrifuge.addRecipe(${out});`;
239
+ };
240
+ const removeCentrifuge = (id) => `mods.forestry.Centrifuge.removeRecipe(${id});`;
241
+ const addFermenter = (liquid, recipe) => {
242
+ const out = formatArgs(liquid.id, recipe.in, recipe.liquid.id, liquid.n, recipe.liquid.n);
243
+ return `mods.forestry.Fermenter.addRecipe(${out});`;
244
+ };
245
+ const removeFermenter = (id) => `mods.forestry.Fermenter.removeRecipe(${id});`;
246
+ const addFermenterFuel = (recipe) => {
247
+ const out = formatArgs(recipe.id, recipe.cycle, recipe.burn);
248
+ return `mods.forestry.Fermenter.addFuel(${out});`;
249
+ };
250
+ const removeFermenterFuel = (id) => `mods.forestry.Fermenter.removeFuel(${id});`;
251
+ const removeMoistener = (id) => `mods.forestry.Moistener.removeRecipe(${id});`;
252
+ const addSqueezer = (liquid, recipe) => {
253
+ const out = formatArgs(formatStack(liquid), formatIngredient(recipe.bonus), recipe.in.map(formatIngredient), recipe.ticks);
254
+ return `mods.forestry.Squeezer.addRecipe(${out});`;
255
+ };
256
+ const removeSqueezer = (recipe) => {
257
+ if (typeof recipe === "string")
258
+ return `mods.forestry.Squeezer.removeRecipe(${recipe});`;
259
+ return `mods.forestry.Squeezer.removeRecipe(${formatArgs(recipe.out, recipe.in)});`;
260
+ };
261
+ const addStill = (liquid, recipe) => {
262
+ const out = formatArgs(formatStack(liquid), formatStack(recipe.liquid), recipe.ticks);
263
+ return `mods.forestry.Still.addRecipe(${out});`;
264
+ };
265
+ const removeStill = (recipe) => {
266
+ if (typeof recipe === "string")
267
+ return `mods.forestry.Still.removeRecipe(${recipe});`;
268
+ return `mods.forestry.Still.removeRecipe(${formatArgs(recipe.out, recipe.in)});`;
269
+ };
270
+ const addFabricator = (id, recipe) => {
271
+ const out = formatArgs(id, recipe.in, recipe.mb, recipe.cast);
272
+ return `mods.forestry.ThermionicFabricator.addCast(${out});`;
273
+ };
274
+ const removeFabricator = (id) => `mods.forestry.ThermionicFabricator.removeCast(${id});`;
275
+ const addFabricatorFuel = (recipe) => `mods.forestry.ThermionicFabricator.addSmelting(${formatArgs(recipe.mb, recipe.id, recipe.temp)});`;
276
+ const removeFabricatorFuel = (id) => `mods.forestry.ThermionicFabricator.removeSmelting(${id});`;
277
+
231
278
  const addDict = (dict, ids) => ids.map((id) => `${dict}.add(${id});`).join("\n");
232
279
  const removeDict = (dict, ids) => ids.map((id) => `${dict}.remove(${id});`).join("\n");
233
280
  const withName = (id, name) => `${id}.displayName = ${formatName(name)};`;
@@ -329,6 +376,8 @@ const replaceMany = (ingredient, recipes) => [
329
376
  ].join("\n");
330
377
 
331
378
  exports.add = add;
379
+ exports.addCarpenter = addCarpenter;
380
+ exports.addCentrifuge = addCentrifuge;
332
381
  exports.addComposter = addComposter;
333
382
  exports.addCompressor = addCompressor;
334
383
  exports.addCrucibleNihilo = addCrucible$1;
@@ -336,6 +385,10 @@ exports.addCrucibleSource = addCrucibleSource;
336
385
  exports.addCrucibleThermal = addCrucible;
337
386
  exports.addDict = addDict;
338
387
  exports.addExtreme = addExtreme;
388
+ exports.addFabricator = addFabricator;
389
+ exports.addFabricatorFuel = addFabricatorFuel;
390
+ exports.addFermenter = addFermenter;
391
+ exports.addFermenterFuel = addFermenterFuel;
339
392
  exports.addFoci = addFoci;
340
393
  exports.addFurnace = addFurnace;
341
394
  exports.addFurnaceThermal = addFurnace$1;
@@ -351,10 +404,14 @@ exports.addQED = addQED;
351
404
  exports.addSawmill = addSawmill;
352
405
  exports.addSieve = addSieve;
353
406
  exports.addSmelter = addSmelter;
407
+ exports.addSqueezer = addSqueezer;
408
+ exports.addStill = addStill;
354
409
  exports.addTransposerExtract = addTransposerExtract;
355
410
  exports.addTransposerFill = addTransposerFill;
356
411
  exports.hide = hide;
357
412
  exports.remove = remove;
413
+ exports.removeCarpenter = removeCarpenter;
414
+ exports.removeCentrifuge = removeCentrifuge;
358
415
  exports.removeComposter = removeComposter;
359
416
  exports.removeCompressor = removeCompressor;
360
417
  exports.removeCrucibleNihilo = removeCrucible$1;
@@ -362,6 +419,10 @@ exports.removeCrucibleSource = removeCrucibleSource;
362
419
  exports.removeCrucibleThermal = removeCrucible;
363
420
  exports.removeDict = removeDict;
364
421
  exports.removeExtreme = removeExtreme;
422
+ exports.removeFabricator = removeFabricator;
423
+ exports.removeFabricatorFuel = removeFabricatorFuel;
424
+ exports.removeFermenter = removeFermenter;
425
+ exports.removeFermenterFuel = removeFermenterFuel;
365
426
  exports.removeFoci = removeFoci;
366
427
  exports.removeFurnace = removeFurnace;
367
428
  exports.removeFurnaceThermal = removeFurnace$1;
@@ -370,6 +431,7 @@ exports.removeHammer = removeHammer;
370
431
  exports.removeInscriber = removeInscriber;
371
432
  exports.removeInsolator = removeInsolator;
372
433
  exports.removeLaser = removeLaser;
434
+ exports.removeMoistener = removeMoistener;
373
435
  exports.removePulverizer = removePulverizer;
374
436
  exports.removeQED = removeQED;
375
437
  exports.removeSawmill = removeSawmill;
@@ -377,6 +439,8 @@ exports.removeShaped = removeShaped;
377
439
  exports.removeShapeless = removeShapeless;
378
440
  exports.removeSieve = removeSieve;
379
441
  exports.removeSmelter = removeSmelter;
442
+ exports.removeSqueezer = removeSqueezer;
443
+ exports.removeStill = removeStill;
380
444
  exports.removeTransposerExtract = removeTransposerExtract;
381
445
  exports.removeTransposerFill = removeTransposerFill;
382
446
  exports.replace = replace;
package/dist/zenflow.d.ts CHANGED
@@ -178,6 +178,80 @@ declare const addQED: (ingredient: Ingredient, recipe: RecipeShaped) => string;
178
178
  declare const removeQED: (id: string) => string;
179
179
  declare const replaceQED: (ingredient: Ingredient, recipe: RecipeShaped) => string;
180
180
 
181
+ declare type RecipeCarpenter = {
182
+ recipe: RecipeShaped;
183
+ top?: Stack;
184
+ ticks: number;
185
+ liquid?: Stack;
186
+ };
187
+ declare type RecipeCentrifuge = {
188
+ in: string;
189
+ ticks: number;
190
+ };
191
+ declare type RecipeFermenter = {
192
+ in: string;
193
+ liquid: Stack;
194
+ };
195
+ declare type RecipeFermenterFuel = {
196
+ id: string;
197
+ cycle: number;
198
+ burn: number;
199
+ };
200
+ declare type RecipeSqueezer = {
201
+ in: Ingredient[];
202
+ bonus: Ingredient;
203
+ ticks: number;
204
+ };
205
+ declare type RecipeStill = {
206
+ liquid: Stack;
207
+ ticks: number;
208
+ };
209
+ declare type RecipeFabricator = {
210
+ in: string[];
211
+ mb: number;
212
+ cast?: string;
213
+ };
214
+ declare type RecipeFabricatorFuel = {
215
+ id: string;
216
+ mb: number;
217
+ temp: number;
218
+ };
219
+ declare const addCarpenter: (ingredient: Ingredient, recipe: RecipeCarpenter) => string;
220
+ declare const removeCarpenter: (id: string, liquid?: string | undefined) => string;
221
+ declare const addCentrifuge: (ingredients: Ingredient[], recipe: RecipeCentrifuge) => string;
222
+ declare const removeCentrifuge: (id: string) => string;
223
+ declare const addFermenter: (liquid: Stack, recipe: RecipeFermenter) => string;
224
+ declare const removeFermenter: (id: string) => string;
225
+ declare const addFermenterFuel: (recipe: RecipeFermenterFuel) => string;
226
+ declare const removeFermenterFuel: (id: string) => string;
227
+ declare const removeMoistener: (id: string) => string;
228
+ declare const addSqueezer: (liquid: Stack, recipe: RecipeSqueezer) => string;
229
+ /**
230
+ * Remove Forestry Squeezer recipe
231
+ *
232
+ * - Recipe: `string` => Remove all recipes
233
+ * - Recipe: `object` => Remove specific recipe
234
+ */
235
+ declare const removeSqueezer: (recipe: string | {
236
+ in: string[];
237
+ out: string;
238
+ }) => string;
239
+ declare const addStill: (liquid: Stack, recipe: RecipeStill) => string;
240
+ /**
241
+ * Remove Forestry Still recipe
242
+ *
243
+ * - Recipe: `string` => Remove all recipes
244
+ * - Recipe: `object` => Remove specific recipe
245
+ */
246
+ declare const removeStill: (recipe: string | {
247
+ in: string;
248
+ out: string;
249
+ }) => string;
250
+ declare const addFabricator: (id: string, recipe: RecipeFabricator) => string;
251
+ declare const removeFabricator: (id: string) => string;
252
+ declare const addFabricatorFuel: (recipe: RecipeFabricatorFuel) => string;
253
+ declare const removeFabricatorFuel: (id: string) => string;
254
+
181
255
  /**
182
256
  * @param dict Valid ore dictionary value: http://minetweaker3.powerofbytes.com/wiki/Tutorial:Ore_Dictionary
183
257
  */
@@ -406,4 +480,4 @@ declare const replace: (ingredient: Ingredient, recipe: Recipe) => string;
406
480
  declare const replaceAll: (ingredient: Ingredient, recipe: Recipe) => string;
407
481
  declare const replaceMany: (ingredient: Ingredient, recipes: Recipe[]) => string;
408
482
 
409
- export { Enchantment, Ingredient, Recipe, RecipeShaped, RecipeShapeless, Stack, Text, TextRich, add, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addDict, addExtreme, addFoci, addFurnace, addFurnace$1 as addFurnaceThermal, addGrinder, addHammer, addInscriber, addInsolator, addLaser, addMirror, 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, removeGrinder, removeHammer, removeInscriber, removeInsolator, removeLaser, removePulverizer, removeQED, removeSawmill, removeShaped, removeShapeless, removeSieve, removeSmelter, removeTransposerExtract, removeTransposerFill, replace, replaceAll, replaceMany, replaceQED, withEnchantment, withName, withTag, withTooltip, withTooltipShift };
483
+ export { Enchantment, Ingredient, Recipe, RecipeShaped, RecipeShapeless, Stack, Text, TextRich, add, addCarpenter, addCentrifuge, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addDict, addExtreme, addFabricator, addFabricatorFuel, addFermenter, addFermenterFuel, addFoci, addFurnace, addFurnace$1 as addFurnaceThermal, addGrinder, addHammer, addInscriber, addInsolator, addLaser, addMirror, addNEI, addPulverizer, addQED, addSawmill, addSieve, addSmelter, addSqueezer, addStill, addTransposerExtract, addTransposerFill, hide, remove, removeCarpenter, removeCentrifuge, removeComposter, removeCompressor, removeCrucible$1 as removeCrucibleNihilo, removeCrucibleSource, removeCrucible as removeCrucibleThermal, removeDict, removeExtreme, removeFabricator, removeFabricatorFuel, removeFermenter, removeFermenterFuel, removeFoci, removeFurnace, removeFurnace$1 as removeFurnaceThermal, removeGrinder, removeHammer, removeInscriber, removeInsolator, removeLaser, removeMoistener, removePulverizer, removeQED, removeSawmill, removeShaped, removeShapeless, removeSieve, removeSmelter, removeSqueezer, removeStill, removeTransposerExtract, removeTransposerFill, replace, replaceAll, replaceMany, replaceQED, withEnchantment, withName, withTag, withTooltip, withTooltipShift };
package/dist/zenflow.mjs CHANGED
@@ -224,6 +224,53 @@ const replaceQED = (ingredient, recipe) => [
224
224
  addQED(ingredient, recipe)
225
225
  ].join("\n");
226
226
 
227
+ const addCarpenter = (ingredient, recipe) => {
228
+ const out = formatArgs(formatIngredient(ingredient), formatRecipe(recipe.recipe), recipe.liquid && formatStack(recipe.liquid), recipe.ticks, recipe.top && formatStack(recipe.top));
229
+ return `mods.forestry.Carpenter.addRecipe(${out});`;
230
+ };
231
+ const removeCarpenter = (id, liquid) => `mods.forestry.Carpenter.removeRecipe(${formatArgs(id, liquid)});`;
232
+ const addCentrifuge = (ingredients, recipe) => {
233
+ const out = formatArgs(ingredients.map((ingredient) => isObject(ingredient) ? `${ingredient.id} % ${ingredient.n}` : ingredient), recipe.in, recipe.ticks);
234
+ return `mods.forestry.Centrifuge.addRecipe(${out});`;
235
+ };
236
+ const removeCentrifuge = (id) => `mods.forestry.Centrifuge.removeRecipe(${id});`;
237
+ const addFermenter = (liquid, recipe) => {
238
+ const out = formatArgs(liquid.id, recipe.in, recipe.liquid.id, liquid.n, recipe.liquid.n);
239
+ return `mods.forestry.Fermenter.addRecipe(${out});`;
240
+ };
241
+ const removeFermenter = (id) => `mods.forestry.Fermenter.removeRecipe(${id});`;
242
+ const addFermenterFuel = (recipe) => {
243
+ const out = formatArgs(recipe.id, recipe.cycle, recipe.burn);
244
+ return `mods.forestry.Fermenter.addFuel(${out});`;
245
+ };
246
+ const removeFermenterFuel = (id) => `mods.forestry.Fermenter.removeFuel(${id});`;
247
+ const removeMoistener = (id) => `mods.forestry.Moistener.removeRecipe(${id});`;
248
+ const addSqueezer = (liquid, recipe) => {
249
+ const out = formatArgs(formatStack(liquid), formatIngredient(recipe.bonus), recipe.in.map(formatIngredient), recipe.ticks);
250
+ return `mods.forestry.Squeezer.addRecipe(${out});`;
251
+ };
252
+ const removeSqueezer = (recipe) => {
253
+ if (typeof recipe === "string")
254
+ return `mods.forestry.Squeezer.removeRecipe(${recipe});`;
255
+ return `mods.forestry.Squeezer.removeRecipe(${formatArgs(recipe.out, recipe.in)});`;
256
+ };
257
+ const addStill = (liquid, recipe) => {
258
+ const out = formatArgs(formatStack(liquid), formatStack(recipe.liquid), recipe.ticks);
259
+ return `mods.forestry.Still.addRecipe(${out});`;
260
+ };
261
+ const removeStill = (recipe) => {
262
+ if (typeof recipe === "string")
263
+ return `mods.forestry.Still.removeRecipe(${recipe});`;
264
+ return `mods.forestry.Still.removeRecipe(${formatArgs(recipe.out, recipe.in)});`;
265
+ };
266
+ const addFabricator = (id, recipe) => {
267
+ const out = formatArgs(id, recipe.in, recipe.mb, recipe.cast);
268
+ return `mods.forestry.ThermionicFabricator.addCast(${out});`;
269
+ };
270
+ const removeFabricator = (id) => `mods.forestry.ThermionicFabricator.removeCast(${id});`;
271
+ const addFabricatorFuel = (recipe) => `mods.forestry.ThermionicFabricator.addSmelting(${formatArgs(recipe.mb, recipe.id, recipe.temp)});`;
272
+ const removeFabricatorFuel = (id) => `mods.forestry.ThermionicFabricator.removeSmelting(${id});`;
273
+
227
274
  const addDict = (dict, ids) => ids.map((id) => `${dict}.add(${id});`).join("\n");
228
275
  const removeDict = (dict, ids) => ids.map((id) => `${dict}.remove(${id});`).join("\n");
229
276
  const withName = (id, name) => `${id}.displayName = ${formatName(name)};`;
@@ -324,4 +371,4 @@ const replaceMany = (ingredient, recipes) => [
324
371
  ...recipes.map((recipe) => add(ingredient, recipe))
325
372
  ].join("\n");
326
373
 
327
- export { add, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addDict, addExtreme, addFoci, addFurnace, addFurnace$1 as addFurnaceThermal, addGrinder, addHammer, addInscriber, addInsolator, addLaser, addMirror, 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, removeGrinder, removeHammer, removeInscriber, removeInsolator, removeLaser, removePulverizer, removeQED, removeSawmill, removeShaped, removeShapeless, removeSieve, removeSmelter, removeTransposerExtract, removeTransposerFill, replace, replaceAll, replaceMany, replaceQED, withEnchantment, withName, withTag, withTooltip, withTooltipShift };
374
+ export { add, addCarpenter, addCentrifuge, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addDict, addExtreme, addFabricator, addFabricatorFuel, addFermenter, addFermenterFuel, addFoci, addFurnace, addFurnace$1 as addFurnaceThermal, addGrinder, addHammer, addInscriber, addInsolator, addLaser, addMirror, addNEI, addPulverizer, addQED, addSawmill, addSieve, addSmelter, addSqueezer, addStill, addTransposerExtract, addTransposerFill, hide, remove, removeCarpenter, removeCentrifuge, removeComposter, removeCompressor, removeCrucible$1 as removeCrucibleNihilo, removeCrucibleSource, removeCrucible as removeCrucibleThermal, removeDict, removeExtreme, removeFabricator, removeFabricatorFuel, removeFermenter, removeFermenterFuel, removeFoci, removeFurnace, removeFurnace$1 as removeFurnaceThermal, removeGrinder, removeHammer, removeInscriber, removeInsolator, removeLaser, removeMoistener, removePulverizer, removeQED, removeSawmill, removeShaped, removeShapeless, removeSieve, removeSmelter, removeSqueezer, removeStill, removeTransposerExtract, removeTransposerFill, replace, replaceAll, replaceMany, replaceQED, withEnchantment, withName, withTag, withTooltip, withTooltipShift };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-flow",
3
- "version": "2.4.0",
3
+ "version": "2.4.2",
4
4
  "description": "MineTweaker ZenScript made easy.",
5
5
  "main": "dist/zenflow.cjs",
6
6
  "module": "dist/zenflow.mjs",