zen-flow 1.5.0 → 1.6.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/dist/zenflow.cjs CHANGED
@@ -266,8 +266,8 @@ const add = (item, recipe) => {
266
266
  return `recipes.add${type}(${formatArgs(item, recipe)});`;
267
267
  };
268
268
  const remove = (ingredient) => `recipes.remove(${ingredient});`;
269
- const removeShaped = (ingredient) => `recipes.removeShaped(${ingredient});`;
270
- const removeShapeless = (ingredient) => `recipes.removeShapeless(${ingredient});`;
269
+ const removeShaped = (ingredient, recipe) => `recipes.removeShaped(${formatArgs(ingredient, recipe)});`;
270
+ const removeShapeless = (ingredient, recipe) => `recipes.removeShapeless(${formatArgs(ingredient, recipe)});`;
271
271
  const addFurnace = (recipe) => `furnace.addRecipe(${formatArgs(recipe.out, recipe.in)});`;
272
272
  const removeFurnace = (ingredient) => `furnace.remove(${ingredient});`;
273
273
  const replace = (item, recipe) => {
package/dist/zenflow.d.ts CHANGED
@@ -262,8 +262,23 @@ declare type RecipeFurnace = {
262
262
  };
263
263
  declare const add: (item: Item, recipe: Recipe) => string;
264
264
  declare const remove: (ingredient: string) => string;
265
- declare const removeShaped: (ingredient: string) => string;
266
- declare const removeShapeless: (ingredient: string) => string;
265
+ declare const removeShaped: (ingredient: string, recipe?: Partial<{
266
+ 1: string;
267
+ 2: string;
268
+ 3: string;
269
+ 4: string;
270
+ 5: string;
271
+ 6: string;
272
+ 7: string;
273
+ 8: string;
274
+ 9: string;
275
+ corner: string;
276
+ edge: string;
277
+ ring: string;
278
+ square: string;
279
+ center: string;
280
+ }> | undefined) => string;
281
+ declare const removeShapeless: (ingredient: string, recipe?: RecipeShapeless | undefined) => string;
267
282
  declare const addFurnace: (recipe: RecipeFurnace) => string;
268
283
  declare const removeFurnace: (ingredient: string) => string;
269
284
  declare const replace: (item: Item, recipe: Recipe) => string;
package/dist/zenflow.mjs CHANGED
@@ -262,8 +262,8 @@ const add = (item, recipe) => {
262
262
  return `recipes.add${type}(${formatArgs(item, recipe)});`;
263
263
  };
264
264
  const remove = (ingredient) => `recipes.remove(${ingredient});`;
265
- const removeShaped = (ingredient) => `recipes.removeShaped(${ingredient});`;
266
- const removeShapeless = (ingredient) => `recipes.removeShapeless(${ingredient});`;
265
+ const removeShaped = (ingredient, recipe) => `recipes.removeShaped(${formatArgs(ingredient, recipe)});`;
266
+ const removeShapeless = (ingredient, recipe) => `recipes.removeShapeless(${formatArgs(ingredient, recipe)});`;
267
267
  const addFurnace = (recipe) => `furnace.addRecipe(${formatArgs(recipe.out, recipe.in)});`;
268
268
  const removeFurnace = (ingredient) => `furnace.remove(${ingredient});`;
269
269
  const replace = (item, recipe) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-flow",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "MineTweaker ZenScript made easy.",
5
5
  "main": "dist/zenflow.cjs",
6
6
  "module": "dist/zenflow.mjs",