zen-flow 4.4.3 → 4.4.4

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
@@ -216,8 +216,8 @@ const createLiquid = (id, recipe) => {
216
216
  recipe.color,
217
217
  !!recipe.setFire,
218
218
  recipe.castingMaterial,
219
- typeof recipe.texture?.still === "string" && formatLiteral(recipe.texture.still),
220
- typeof recipe.texture?.flowing === "string" && formatLiteral(recipe.texture.flowing)
219
+ typeof recipe.texture?.still === "string" ? formatLiteral(recipe.texture.still) : void 0,
220
+ typeof recipe.texture?.flowing === "string" ? formatLiteral(recipe.texture.flowing) : void 0
221
221
  );
222
222
  return `mods.content.Fluid.registerFluid(${out});`;
223
223
  };
package/dist/zenflow.d.ts CHANGED
@@ -136,6 +136,8 @@ type RecipeBlock = {
136
136
  *
137
137
  * Textures can be placed in `/config/contenttweaker/icons/blocks/<texture>`
138
138
  *
139
+ * Scripts containing `createBlock` must be placed in `/contentScripts`
140
+ *
139
141
  * @see https://minetweaker3.aizistral.com/wiki/ContentTweaker:BlockItem_Support
140
142
  */
141
143
  declare const createBlock: (name: string, recipe: RecipeBlock) => string;
@@ -153,6 +155,8 @@ type RecipeItem = {
153
155
  /**
154
156
  * Create custom item
155
157
  *
158
+ * Scripts containing `createItem` must be placed in `/contentScripts`
159
+ *
156
160
  * Textures can be placed in `/config/contenttweaker/icons/items/<texture>`
157
161
  *
158
162
  * @see https://minetweaker3.aizistral.com/wiki/ContentTweaker:BlockItem_Support
@@ -164,7 +168,7 @@ type RecipeLiquid = {
164
168
  luminosity: number;
165
169
  temperature: number;
166
170
  viscosity: number;
167
- color: string;
171
+ color: number;
168
172
  setFire?: boolean;
169
173
  castingMaterial?: number;
170
174
  texture?: {
@@ -175,6 +179,8 @@ type RecipeLiquid = {
175
179
  /**
176
180
  * Create custom liquid
177
181
  *
182
+ * Scripts containing `createLiquid` must be placed in `/contentScripts`
183
+ *
178
184
  * Textures can be placed in `/config/contenttweaker/icons/blocks/<texture>`
179
185
  *
180
186
  * @see https://minetweaker3.aizistral.com/wiki/ContentTweaker:BlockItem_Support
@@ -213,6 +219,8 @@ type RecipeMaterial = {
213
219
  /**
214
220
  * Create custom [Tinkers' Construct material](https://tinkers-construct.fandom.com/wiki/Material_Stats)
215
221
  *
222
+ * Scripts containing `createMaterial` must be placed in `/contentScripts`
223
+ *
216
224
  * Textures can be placed in `/config/contenttweaker/icons/items/<texture>`
217
225
  *
218
226
  * @see https://minetweaker3.aizistral.com/wiki/ContentTweaker:BlockItem_Support
package/dist/zenflow.mjs CHANGED
@@ -214,8 +214,8 @@ const createLiquid = (id, recipe) => {
214
214
  recipe.color,
215
215
  !!recipe.setFire,
216
216
  recipe.castingMaterial,
217
- typeof recipe.texture?.still === "string" && formatLiteral(recipe.texture.still),
218
- typeof recipe.texture?.flowing === "string" && formatLiteral(recipe.texture.flowing)
217
+ typeof recipe.texture?.still === "string" ? formatLiteral(recipe.texture.still) : void 0,
218
+ typeof recipe.texture?.flowing === "string" ? formatLiteral(recipe.texture.flowing) : void 0
219
219
  );
220
220
  return `mods.content.Fluid.registerFluid(${out});`;
221
221
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-flow",
3
- "version": "4.4.3",
3
+ "version": "4.4.4",
4
4
  "description": "MineTweaker ZenScript made easy.",
5
5
  "main": "dist/zenflow.cjs",
6
6
  "module": "dist/zenflow.mjs",