zen-flow 4.4.0 → 4.4.2
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 +5 -3
- package/dist/zenflow.d.ts +2 -2
- package/dist/zenflow.mjs +5 -3
- package/package.json +1 -1
package/dist/zenflow.cjs
CHANGED
|
@@ -175,11 +175,12 @@ const addExtreme = (ingredient, recipe) => {
|
|
|
175
175
|
const removeExtreme = (id) => `mods.avaritia.ExtremeCrafting.remove(${id});`;
|
|
176
176
|
|
|
177
177
|
const createBlock = (name, recipe) => {
|
|
178
|
+
const texture = typeof recipe.texture === "string" ? recipe.texture : recipe.id;
|
|
178
179
|
const out = formatArgs(
|
|
179
180
|
formatLiteral(name),
|
|
180
181
|
formatLiteral(recipe.id),
|
|
181
182
|
formatLiteral(recipe.material),
|
|
182
|
-
formatLiteral(
|
|
183
|
+
formatLiteral(texture),
|
|
183
184
|
typeof recipe.creativeTab === "string" && formatLiteral(recipe.creativeTab),
|
|
184
185
|
recipe.renderType,
|
|
185
186
|
recipe.drops,
|
|
@@ -191,10 +192,11 @@ const createBlock = (name, recipe) => {
|
|
|
191
192
|
return `mods.content.Block.registerBlock(${out});`;
|
|
192
193
|
};
|
|
193
194
|
const createItem = (name, recipe) => {
|
|
195
|
+
const texture = typeof recipe.texture === "string" ? recipe.texture : recipe.id;
|
|
194
196
|
const out = formatArgs(
|
|
195
197
|
formatLiteral(name),
|
|
196
198
|
formatLiteral(recipe.id),
|
|
197
|
-
formatLiteral(
|
|
199
|
+
formatLiteral(texture),
|
|
198
200
|
typeof recipe.creativeTab === "string" && formatLiteral(recipe.creativeTab),
|
|
199
201
|
recipe.damage,
|
|
200
202
|
recipe.stackSize,
|
|
@@ -292,7 +294,7 @@ const addSieve = (id, recipe) => {
|
|
|
292
294
|
const out = formatArgs(
|
|
293
295
|
id,
|
|
294
296
|
items.map((item) => item.id),
|
|
295
|
-
items.map((item) => item.chance)
|
|
297
|
+
formatArray(items.map((item) => item.chance), 9)
|
|
296
298
|
);
|
|
297
299
|
return `mods.exnihilo.Sieve.addRecipe(${out});`;
|
|
298
300
|
};
|
package/dist/zenflow.d.ts
CHANGED
|
@@ -121,7 +121,7 @@ declare const removeExtreme: (id: string) => string;
|
|
|
121
121
|
type RecipeBlock = {
|
|
122
122
|
id: string;
|
|
123
123
|
material: string;
|
|
124
|
-
texture
|
|
124
|
+
texture?: string;
|
|
125
125
|
creativeTab?: string;
|
|
126
126
|
renderType?: number;
|
|
127
127
|
drops?: string[];
|
|
@@ -141,7 +141,7 @@ type RecipeBlock = {
|
|
|
141
141
|
declare const createBlock: (name: string, recipe: RecipeBlock) => string;
|
|
142
142
|
type RecipeItem = {
|
|
143
143
|
id: string;
|
|
144
|
-
texture
|
|
144
|
+
texture?: string;
|
|
145
145
|
creativeTab?: string;
|
|
146
146
|
damage?: number;
|
|
147
147
|
stackSize?: number;
|
package/dist/zenflow.mjs
CHANGED
|
@@ -173,11 +173,12 @@ const addExtreme = (ingredient, recipe) => {
|
|
|
173
173
|
const removeExtreme = (id) => `mods.avaritia.ExtremeCrafting.remove(${id});`;
|
|
174
174
|
|
|
175
175
|
const createBlock = (name, recipe) => {
|
|
176
|
+
const texture = typeof recipe.texture === "string" ? recipe.texture : recipe.id;
|
|
176
177
|
const out = formatArgs(
|
|
177
178
|
formatLiteral(name),
|
|
178
179
|
formatLiteral(recipe.id),
|
|
179
180
|
formatLiteral(recipe.material),
|
|
180
|
-
formatLiteral(
|
|
181
|
+
formatLiteral(texture),
|
|
181
182
|
typeof recipe.creativeTab === "string" && formatLiteral(recipe.creativeTab),
|
|
182
183
|
recipe.renderType,
|
|
183
184
|
recipe.drops,
|
|
@@ -189,10 +190,11 @@ const createBlock = (name, recipe) => {
|
|
|
189
190
|
return `mods.content.Block.registerBlock(${out});`;
|
|
190
191
|
};
|
|
191
192
|
const createItem = (name, recipe) => {
|
|
193
|
+
const texture = typeof recipe.texture === "string" ? recipe.texture : recipe.id;
|
|
192
194
|
const out = formatArgs(
|
|
193
195
|
formatLiteral(name),
|
|
194
196
|
formatLiteral(recipe.id),
|
|
195
|
-
formatLiteral(
|
|
197
|
+
formatLiteral(texture),
|
|
196
198
|
typeof recipe.creativeTab === "string" && formatLiteral(recipe.creativeTab),
|
|
197
199
|
recipe.damage,
|
|
198
200
|
recipe.stackSize,
|
|
@@ -290,7 +292,7 @@ const addSieve = (id, recipe) => {
|
|
|
290
292
|
const out = formatArgs(
|
|
291
293
|
id,
|
|
292
294
|
items.map((item) => item.id),
|
|
293
|
-
items.map((item) => item.chance)
|
|
295
|
+
formatArray(items.map((item) => item.chance), 9)
|
|
294
296
|
);
|
|
295
297
|
return `mods.exnihilo.Sieve.addRecipe(${out});`;
|
|
296
298
|
};
|