zen-flow 1.1.0 → 1.2.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
@@ -45,7 +45,17 @@ vanilla.add('<minecraft:saddle>', {
45
45
  * [<ore:ingotIron>, <minecraft:string>, <ore:ingotIron>],
46
46
  * [null, null, null]
47
47
  * ]);
48
- * /
48
+ **/
49
+
50
+ vanilla.add('<minecraft:saddle>', { edge: '<minecraft:leather>' });
51
+
52
+ /**
53
+ * recipes.addShaped(<minecraft:saddle>, [
54
+ * [null, <minecraft:leather>, null],
55
+ * [<minecraft:leather>, null, <minecraft:leather>],
56
+ * [null, <minecraft:leather>, null]
57
+ * ]);
58
+ **/
49
59
  ```
50
60
 
51
61
  <b>Extra Utilities generators</b>
package/dist/zenflow.cjs CHANGED
@@ -126,9 +126,9 @@ const formatTooltip = (texts) => {
126
126
  };
127
127
  const formatRecipeShaped = (recipe) => {
128
128
  const matrix = [
129
- [recipe[1], recipe[2], recipe[3]],
130
- [recipe[4], recipe[5], recipe[6]],
131
- [recipe[7], recipe[8], recipe[9]]
129
+ [recipe.corner || recipe[1], recipe.edge || recipe[2], recipe.corner || recipe[3]],
130
+ [recipe.edge || recipe[4], recipe.center || recipe[5], recipe.edge || recipe[6]],
131
+ [recipe.corner || recipe[7], recipe.edge || recipe[8], recipe.corner || recipe[9]]
132
132
  ].map((row) => formatList(row.map(formatIngredient)));
133
133
  return `[
134
134
  ${matrix.join(",\n ")}
package/dist/zenflow.d.ts CHANGED
@@ -51,6 +51,9 @@ declare type RecipeShaped = Partial<{
51
51
  7: string;
52
52
  8: string;
53
53
  9: string;
54
+ corner: string;
55
+ edge: string;
56
+ center: string;
54
57
  }>;
55
58
  declare type RecipeShapeless = string[];
56
59
  declare type Recipe = RecipeShaped | RecipeShapeless;
package/dist/zenflow.mjs CHANGED
@@ -122,9 +122,9 @@ const formatTooltip = (texts) => {
122
122
  };
123
123
  const formatRecipeShaped = (recipe) => {
124
124
  const matrix = [
125
- [recipe[1], recipe[2], recipe[3]],
126
- [recipe[4], recipe[5], recipe[6]],
127
- [recipe[7], recipe[8], recipe[9]]
125
+ [recipe.corner || recipe[1], recipe.edge || recipe[2], recipe.corner || recipe[3]],
126
+ [recipe.edge || recipe[4], recipe.center || recipe[5], recipe.edge || recipe[6]],
127
+ [recipe.corner || recipe[7], recipe.edge || recipe[8], recipe.corner || recipe[9]]
128
128
  ].map((row) => formatList(row.map(formatIngredient)));
129
129
  return `[
130
130
  ${matrix.join(",\n ")}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-flow",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "MineTweaker ZenScript made easy.",
5
5
  "main": "dist/zenflow.cjs",
6
6
  "module": "dist/zenflow.mjs",