zen-flow 2.0.0 → 2.0.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/README.md CHANGED
@@ -184,15 +184,15 @@ Shaped crafting recipes support the following shorthand patterns, in order:
184
184
  withName('<minecraft:bread>', 'Bread');
185
185
 
186
186
  // Bread (with red text)
187
- withName('<minecraft:bread>', ['Bread', { colour: 'red' }]);
187
+ withName('<minecraft:bread>', { text: 'Bread', colour: 'red' });
188
188
 
189
189
  // Bread (bold red text)
190
- withName('<minecraft:bread>', ['Bread', { colour: 'red', format: 'bold' }]);
190
+ withName('<minecraft:bread>', { text: 'Bread', colour: 'red', format: 'bold' });
191
191
 
192
192
  // Bread (normal text) with butter (yellow italic text)
193
193
  withName('<minecraft:bread>', [
194
194
  'Bread',
195
- ['with butter', { colour: 'yellow', format: 'italic' }]
195
+ { text: 'with butter', colour: 'yellow', format: 'italic' }
196
196
  ]);
197
197
  ```
198
198
 
@@ -227,10 +227,10 @@ withName('<minecraft:bread>', [
227
227
  import { exnihilo } from 'zen-flow';
228
228
 
229
229
  exnilo.addHammer('<minecraft:cobblestone>', {
230
- '<minecraft:stick>': [0.5], // 50%
230
+ '<minecraft:stick>': 0.5, // 50%
231
231
  '<minecraft:bread>': [1, 1, 0.5] // 100%, 100%, 50%
232
- '<minecraft:stone>': [[1, 2], [0.5, 1]] // 100% with 2x modifier, 50% with 1x modifier
233
- '<minecraft:coal>': [[1, 2], 1] // 100% with 2x modifier, 100%
232
+ '<minecraft:stone>': [{ chance: 1, modifier: 2 }, { chance: 0.5, modifier: 1 }] // 100% with 2x modifier, 50% with 1x modifier
233
+ '<minecraft:coal>': [{ chance: 1, modifier: 2 }, 1] // 100% with 2x modifier, 100%
234
234
  });
235
235
 
236
236
  exnihilo.addSieve('<minecraft:cobblestone>', {
package/dist/zenflow.cjs CHANGED
@@ -288,7 +288,7 @@ const addFurnace = (recipe) => {
288
288
  const removeFurnace = (recipe) => {
289
289
  if (typeof recipe === "string")
290
290
  return `furnace.remove(<*>, ${recipe});`;
291
- return `furnace.remove(${formatArgs(recipe.out, recipe.in)})`;
291
+ return `furnace.remove(${formatArgs(recipe.out, recipe.in)});`;
292
292
  };
293
293
  const replace = (ingredient, recipe) => {
294
294
  const id = isObject(ingredient) ? ingredient.id : ingredient;
package/dist/zenflow.mjs CHANGED
@@ -284,7 +284,7 @@ const addFurnace = (recipe) => {
284
284
  const removeFurnace = (recipe) => {
285
285
  if (typeof recipe === "string")
286
286
  return `furnace.remove(<*>, ${recipe});`;
287
- return `furnace.remove(${formatArgs(recipe.out, recipe.in)})`;
287
+ return `furnace.remove(${formatArgs(recipe.out, recipe.in)});`;
288
288
  };
289
289
  const replace = (ingredient, recipe) => {
290
290
  const id = isObject(ingredient) ? ingredient.id : ingredient;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-flow",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "MineTweaker ZenScript made easy.",
5
5
  "main": "dist/zenflow.cjs",
6
6
  "module": "dist/zenflow.mjs",