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 +11 -1
- package/dist/zenflow.cjs +3 -3
- package/dist/zenflow.d.ts +3 -0
- package/dist/zenflow.mjs +3 -3
- package/package.json +1 -1
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
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 ")}
|