zen-flow 13.2.0 → 13.3.1
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 +10 -10
- package/dist/zenflow.d.cts +2 -1
- package/dist/zenflow.d.mts +2 -1
- package/dist/zenflow.mjs +10 -10
- package/package.json +5 -3
package/dist/zenflow.cjs
CHANGED
|
@@ -33,17 +33,17 @@ const shaped = (recipe2) => {
|
|
|
33
33
|
return null;
|
|
34
34
|
};
|
|
35
35
|
const matrix = [[
|
|
36
|
-
f(recipe2.square, recipe2.ring, recipe2.corner, recipe2[1]),
|
|
37
|
-
f(recipe2.square, recipe2.ring, recipe2.edge, recipe2[2]),
|
|
38
|
-
f(recipe2.ring, recipe2.corner, recipe2[3])
|
|
36
|
+
f(recipe2.fill, recipe2.square, recipe2.ring, recipe2.corner, recipe2[1]),
|
|
37
|
+
f(recipe2.fill, recipe2.square, recipe2.ring, recipe2.edge, recipe2[2]),
|
|
38
|
+
f(recipe2.fill, recipe2.ring, recipe2.corner, recipe2[3])
|
|
39
39
|
], [
|
|
40
|
-
f(recipe2.square, recipe2.ring, recipe2.edge, recipe2[4]),
|
|
41
|
-
f(recipe2.square, recipe2.center, recipe2[5]),
|
|
42
|
-
f(recipe2.ring, recipe2.edge, recipe2[6])
|
|
40
|
+
f(recipe2.fill, recipe2.square, recipe2.ring, recipe2.edge, recipe2[4]),
|
|
41
|
+
f(recipe2.fill, recipe2.square, recipe2.center, recipe2[5]),
|
|
42
|
+
f(recipe2.fill, recipe2.ring, recipe2.edge, recipe2[6])
|
|
43
43
|
], [
|
|
44
|
-
f(recipe2.ring, recipe2.corner, recipe2[7]),
|
|
45
|
-
f(recipe2.ring, recipe2.edge, recipe2[8]),
|
|
46
|
-
f(recipe2.ring, recipe2.corner, recipe2[9])
|
|
44
|
+
f(recipe2.fill, recipe2.ring, recipe2.corner, recipe2[7]),
|
|
45
|
+
f(recipe2.fill, recipe2.ring, recipe2.edge, recipe2[8]),
|
|
46
|
+
f(recipe2.fill, recipe2.ring, recipe2.corner, recipe2[9])
|
|
47
47
|
]];
|
|
48
48
|
if (matrix[0][2] === null && matrix[1][2] === null && matrix[2].every((x) => x === null)) {
|
|
49
49
|
matrix[0].splice(-1);
|
|
@@ -272,7 +272,7 @@ const addCarpenter = (recipe$1) => {
|
|
|
272
272
|
const out = recipe(
|
|
273
273
|
ingredient(recipe$1.output),
|
|
274
274
|
shaped(recipe$1.input),
|
|
275
|
-
recipe$1.liquid &&
|
|
275
|
+
recipe$1.liquid && liquid(recipe$1.liquid),
|
|
276
276
|
Math.max(1, Math.round(recipe$1.ticks)),
|
|
277
277
|
recipe$1.top
|
|
278
278
|
);
|
package/dist/zenflow.d.cts
CHANGED
|
@@ -30,6 +30,7 @@ type Shaped = Partial<{
|
|
|
30
30
|
ring: string;
|
|
31
31
|
square: string;
|
|
32
32
|
center: string;
|
|
33
|
+
fill: string;
|
|
33
34
|
}>;
|
|
34
35
|
type Shapeless = string[];
|
|
35
36
|
declare const COLOR: {
|
|
@@ -402,7 +403,7 @@ type RecipeCarpenter = {
|
|
|
402
403
|
output: Ingredient;
|
|
403
404
|
ticks: number;
|
|
404
405
|
top?: string;
|
|
405
|
-
liquid?:
|
|
406
|
+
liquid?: Liquid;
|
|
406
407
|
};
|
|
407
408
|
/**
|
|
408
409
|
* Add [Carpenter](https://feed-the-beast.fandom.com/wiki/Carpenter) recipe
|
package/dist/zenflow.d.mts
CHANGED
|
@@ -30,6 +30,7 @@ type Shaped = Partial<{
|
|
|
30
30
|
ring: string;
|
|
31
31
|
square: string;
|
|
32
32
|
center: string;
|
|
33
|
+
fill: string;
|
|
33
34
|
}>;
|
|
34
35
|
type Shapeless = string[];
|
|
35
36
|
declare const COLOR: {
|
|
@@ -402,7 +403,7 @@ type RecipeCarpenter = {
|
|
|
402
403
|
output: Ingredient;
|
|
403
404
|
ticks: number;
|
|
404
405
|
top?: string;
|
|
405
|
-
liquid?:
|
|
406
|
+
liquid?: Liquid;
|
|
406
407
|
};
|
|
407
408
|
/**
|
|
408
409
|
* Add [Carpenter](https://feed-the-beast.fandom.com/wiki/Carpenter) recipe
|
package/dist/zenflow.mjs
CHANGED
|
@@ -31,17 +31,17 @@ const shaped = (recipe2) => {
|
|
|
31
31
|
return null;
|
|
32
32
|
};
|
|
33
33
|
const matrix = [[
|
|
34
|
-
f(recipe2.square, recipe2.ring, recipe2.corner, recipe2[1]),
|
|
35
|
-
f(recipe2.square, recipe2.ring, recipe2.edge, recipe2[2]),
|
|
36
|
-
f(recipe2.ring, recipe2.corner, recipe2[3])
|
|
34
|
+
f(recipe2.fill, recipe2.square, recipe2.ring, recipe2.corner, recipe2[1]),
|
|
35
|
+
f(recipe2.fill, recipe2.square, recipe2.ring, recipe2.edge, recipe2[2]),
|
|
36
|
+
f(recipe2.fill, recipe2.ring, recipe2.corner, recipe2[3])
|
|
37
37
|
], [
|
|
38
|
-
f(recipe2.square, recipe2.ring, recipe2.edge, recipe2[4]),
|
|
39
|
-
f(recipe2.square, recipe2.center, recipe2[5]),
|
|
40
|
-
f(recipe2.ring, recipe2.edge, recipe2[6])
|
|
38
|
+
f(recipe2.fill, recipe2.square, recipe2.ring, recipe2.edge, recipe2[4]),
|
|
39
|
+
f(recipe2.fill, recipe2.square, recipe2.center, recipe2[5]),
|
|
40
|
+
f(recipe2.fill, recipe2.ring, recipe2.edge, recipe2[6])
|
|
41
41
|
], [
|
|
42
|
-
f(recipe2.ring, recipe2.corner, recipe2[7]),
|
|
43
|
-
f(recipe2.ring, recipe2.edge, recipe2[8]),
|
|
44
|
-
f(recipe2.ring, recipe2.corner, recipe2[9])
|
|
42
|
+
f(recipe2.fill, recipe2.ring, recipe2.corner, recipe2[7]),
|
|
43
|
+
f(recipe2.fill, recipe2.ring, recipe2.edge, recipe2[8]),
|
|
44
|
+
f(recipe2.fill, recipe2.ring, recipe2.corner, recipe2[9])
|
|
45
45
|
]];
|
|
46
46
|
if (matrix[0][2] === null && matrix[1][2] === null && matrix[2].every((x) => x === null)) {
|
|
47
47
|
matrix[0].splice(-1);
|
|
@@ -270,7 +270,7 @@ const addCarpenter = (recipe$1) => {
|
|
|
270
270
|
const out = recipe(
|
|
271
271
|
ingredient(recipe$1.output),
|
|
272
272
|
shaped(recipe$1.input),
|
|
273
|
-
recipe$1.liquid &&
|
|
273
|
+
recipe$1.liquid && liquid(recipe$1.liquid),
|
|
274
274
|
Math.max(1, Math.round(recipe$1.ticks)),
|
|
275
275
|
recipe$1.top
|
|
276
276
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zen-flow",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.3.1",
|
|
4
4
|
"description": "MineTweaker ZenScript made easy.",
|
|
5
5
|
"main": "dist/zenflow.cjs",
|
|
6
6
|
"module": "dist/zenflow.mjs",
|
|
@@ -40,11 +40,13 @@
|
|
|
40
40
|
"preversion": "npm run lint:types && npm run lint && npm run test && npm run build && npm run docs",
|
|
41
41
|
"postversion": "git add -A && git commit -m \"Updated docs\" && npm publish"
|
|
42
42
|
},
|
|
43
|
-
"
|
|
43
|
+
"optionalDependencies": {
|
|
44
44
|
"@chronocide/eslint-config": "github:chronoDave/eslint-config",
|
|
45
|
+
"eslint": "^9.9.0"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
45
48
|
"@types/node": "^22.14.1",
|
|
46
49
|
"esbuild": "^0.25.0",
|
|
47
|
-
"eslint": "^9.9.0",
|
|
48
50
|
"rollup": "^4.21.0",
|
|
49
51
|
"rollup-plugin-dts": "^6.1.1",
|
|
50
52
|
"rollup-plugin-esbuild": "^6.1.1",
|