zen-flow 2.6.2 → 2.6.4
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 +5 -1
- package/dist/zenflow.d.ts +22 -2
- package/dist/zenflow.mjs +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -197,6 +197,8 @@ withName('<minecraft:bread>', [
|
|
|
197
197
|
- `replaceMany` - Remove all recipes and add multiple recipes
|
|
198
198
|
- `addFurnace` - Adds furnace recipe
|
|
199
199
|
- `removeFurnace` - Removes furnace recipe
|
|
200
|
+
- `addFurnaceFuel` - Add furnace fuel (excluding vanilla fuels)
|
|
201
|
+
- `removeFurnaceFuel` - Removes furnace fuel (excluding vanilla fuels)
|
|
200
202
|
|
|
201
203
|
#### Forestry
|
|
202
204
|
|
package/dist/zenflow.cjs
CHANGED
|
@@ -355,7 +355,7 @@ const remove = (id) => `recipes.remove(${id});`;
|
|
|
355
355
|
const removeShaped = (id, recipe) => `recipes.removeShaped(${id}${recipe ? `, ${formatRecipe(recipe)}` : ""});`;
|
|
356
356
|
const removeShapeless = (id, recipe) => `recipes.removeShapeless(${id}${recipe ? `, ${formatList(recipe)}` : ""});`;
|
|
357
357
|
const addFurnace = (recipe) => {
|
|
358
|
-
const out = formatArgs(formatIngredient(recipe.out), recipe.in);
|
|
358
|
+
const out = formatArgs(formatIngredient(recipe.out), recipe.in, recipe.xp);
|
|
359
359
|
return `furnace.addRecipe(${out});`;
|
|
360
360
|
};
|
|
361
361
|
const removeFurnace = (recipe) => {
|
|
@@ -363,6 +363,8 @@ const removeFurnace = (recipe) => {
|
|
|
363
363
|
return `furnace.remove(<*>, ${recipe});`;
|
|
364
364
|
return `furnace.remove(${formatArgs(recipe.out, recipe.in)});`;
|
|
365
365
|
};
|
|
366
|
+
const addFurnaceFuel = (id, n) => `furnace.setFuel(${formatArgs(id, n)})`;
|
|
367
|
+
const removeFurnaceFuel = (id) => addFurnaceFuel(id, 0);
|
|
366
368
|
const replace = (ingredient, recipe) => {
|
|
367
369
|
const id = isObject(ingredient) ? ingredient.id : ingredient;
|
|
368
370
|
return [
|
|
@@ -395,6 +397,7 @@ exports.addFermenter = addFermenter;
|
|
|
395
397
|
exports.addFermenterFuel = addFermenterFuel;
|
|
396
398
|
exports.addFoci = addFoci;
|
|
397
399
|
exports.addFurnace = addFurnace;
|
|
400
|
+
exports.addFurnaceFuel = addFurnaceFuel;
|
|
398
401
|
exports.addFurnaceThermal = addFurnace$1;
|
|
399
402
|
exports.addGrinder = addGrinder;
|
|
400
403
|
exports.addHammer = addHammer;
|
|
@@ -429,6 +432,7 @@ exports.removeFermenter = removeFermenter;
|
|
|
429
432
|
exports.removeFermenterFuel = removeFermenterFuel;
|
|
430
433
|
exports.removeFoci = removeFoci;
|
|
431
434
|
exports.removeFurnace = removeFurnace;
|
|
435
|
+
exports.removeFurnaceFuel = removeFurnaceFuel;
|
|
432
436
|
exports.removeFurnaceThermal = removeFurnace$1;
|
|
433
437
|
exports.removeGrinder = removeGrinder;
|
|
434
438
|
exports.removeHammer = removeHammer;
|
package/dist/zenflow.d.ts
CHANGED
|
@@ -413,6 +413,7 @@ declare const removeTransposerExtract: (id: string) => string;
|
|
|
413
413
|
declare type RecipeFurnace = {
|
|
414
414
|
in: string;
|
|
415
415
|
out: Ingredient;
|
|
416
|
+
xp: number;
|
|
416
417
|
};
|
|
417
418
|
/**
|
|
418
419
|
* Add crafting recipe
|
|
@@ -441,13 +442,13 @@ declare const removeShaped: (id: string, recipe?: Partial<{
|
|
|
441
442
|
6: string;
|
|
442
443
|
7: string;
|
|
443
444
|
8: string;
|
|
445
|
+
9: string;
|
|
444
446
|
/**
|
|
445
447
|
* Add crafting recipe
|
|
446
448
|
*
|
|
447
449
|
* - Recipe: `{}` => Shaped recipe
|
|
448
450
|
* - Recipe: `[]` => Shapeless recipe
|
|
449
451
|
*/
|
|
450
|
-
9: string;
|
|
451
452
|
corner: string;
|
|
452
453
|
edge: string;
|
|
453
454
|
ring: string;
|
|
@@ -458,6 +459,16 @@ declare const removeShaped: (id: string, recipe?: Partial<{
|
|
|
458
459
|
* Remove all shapeless crafting recipes
|
|
459
460
|
*/
|
|
460
461
|
declare const removeShapeless: (id: string, recipe?: RecipeShapeless | undefined) => string;
|
|
462
|
+
/**
|
|
463
|
+
* Adds furnace recipe
|
|
464
|
+
*
|
|
465
|
+
* - Coal: `0.1xp`
|
|
466
|
+
* - Blocks: `0.1xp`
|
|
467
|
+
* - Food: `0.35xp`
|
|
468
|
+
* - Iron Ingot: `0.7xp`
|
|
469
|
+
* - Gold Ingot: `1xp`
|
|
470
|
+
* - Gems: `1xp`
|
|
471
|
+
*/
|
|
461
472
|
declare const addFurnace: (recipe: RecipeFurnace) => string;
|
|
462
473
|
/**
|
|
463
474
|
* Remove furnace recipe
|
|
@@ -469,6 +480,15 @@ declare const removeFurnace: (recipe: string | {
|
|
|
469
480
|
in: string;
|
|
470
481
|
out: string;
|
|
471
482
|
}) => string;
|
|
483
|
+
/**
|
|
484
|
+
* Add furnace fuel
|
|
485
|
+
*
|
|
486
|
+
* - Coal: `1600`
|
|
487
|
+
* - Planks: `300`
|
|
488
|
+
* - Stick: `100`
|
|
489
|
+
*/
|
|
490
|
+
declare const addFurnaceFuel: (id: string, n: number) => string;
|
|
491
|
+
declare const removeFurnaceFuel: (id: string) => string;
|
|
472
492
|
/**
|
|
473
493
|
* Replace crafting recipe
|
|
474
494
|
*
|
|
@@ -482,4 +502,4 @@ declare const replace: (ingredient: Ingredient, recipe: Recipe) => string;
|
|
|
482
502
|
declare const replaceAll: (ingredient: Ingredient, recipe: Recipe) => string;
|
|
483
503
|
declare const replaceMany: (ingredient: Ingredient, recipes: Recipe[]) => string;
|
|
484
504
|
|
|
485
|
-
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 };
|
|
505
|
+
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, addFurnaceFuel, 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, removeFurnaceFuel, 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
|
@@ -351,7 +351,7 @@ const remove = (id) => `recipes.remove(${id});`;
|
|
|
351
351
|
const removeShaped = (id, recipe) => `recipes.removeShaped(${id}${recipe ? `, ${formatRecipe(recipe)}` : ""});`;
|
|
352
352
|
const removeShapeless = (id, recipe) => `recipes.removeShapeless(${id}${recipe ? `, ${formatList(recipe)}` : ""});`;
|
|
353
353
|
const addFurnace = (recipe) => {
|
|
354
|
-
const out = formatArgs(formatIngredient(recipe.out), recipe.in);
|
|
354
|
+
const out = formatArgs(formatIngredient(recipe.out), recipe.in, recipe.xp);
|
|
355
355
|
return `furnace.addRecipe(${out});`;
|
|
356
356
|
};
|
|
357
357
|
const removeFurnace = (recipe) => {
|
|
@@ -359,6 +359,8 @@ const removeFurnace = (recipe) => {
|
|
|
359
359
|
return `furnace.remove(<*>, ${recipe});`;
|
|
360
360
|
return `furnace.remove(${formatArgs(recipe.out, recipe.in)});`;
|
|
361
361
|
};
|
|
362
|
+
const addFurnaceFuel = (id, n) => `furnace.setFuel(${formatArgs(id, n)})`;
|
|
363
|
+
const removeFurnaceFuel = (id) => addFurnaceFuel(id, 0);
|
|
362
364
|
const replace = (ingredient, recipe) => {
|
|
363
365
|
const id = isObject(ingredient) ? ingredient.id : ingredient;
|
|
364
366
|
return [
|
|
@@ -375,4 +377,4 @@ const replaceMany = (ingredient, recipes) => [
|
|
|
375
377
|
...recipes.map((recipe) => add(ingredient, recipe))
|
|
376
378
|
].join("\n");
|
|
377
379
|
|
|
378
|
-
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 };
|
|
380
|
+
export { add, addCarpenter, addCentrifuge, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addDict, addExtreme, addFabricator, addFabricatorFuel, addFermenter, addFermenterFuel, addFoci, addFurnace, addFurnaceFuel, 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, removeFurnaceFuel, 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 };
|