zen-flow 2.6.2 → 2.6.3

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
@@ -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) => {
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
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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-flow",
3
- "version": "2.6.2",
3
+ "version": "2.6.3",
4
4
  "description": "MineTweaker ZenScript made easy.",
5
5
  "main": "dist/zenflow.cjs",
6
6
  "module": "dist/zenflow.mjs",