• Adds a Mill Recipe
ZenScript
Copy
mods.betterwithmods.Mill.addRecipe(IIngredient[] inputs, IItemStack[] outputs);
// Examples
mods.betterwithmods.Mill.addRecipe([<minecraft:dirt>],[<minecraft:stone>]);
  • Remove a Mill recipe based on the output
ZenScript
Copy
mods.betterwithmods.Mill.remove(IItemStack[] outputs);
  • Remove all Mill recipes
ZenScript
Copy
mods.betterwithmods.Mill.removeAll();

The Mill has a recipe builder that allows more precise control over the recipes. All previous methods are simply shortcuts to using the builder.

  • To create a new Mill builder: mods.betterwithmods.Mill.builder()

  • Mill builder methods

    • Setup the inputs and outputs of the recipe
      ZenScript
      Copy
      buildRecipe(IIngredient[] inputs, IItemStack[] outputs)
    • Set the priority of the recipe - the lower the priority, the sooner it will be crafted. Default is 0
      ZenScript
      Copy
      setPriority(int priority)
    • Set the sound emitted by the mill during the recipe
      ZenScript
      Copy
      setGrindType(String soundLocation)
    • Set the tick duration of the recipe (how long the recipe takes to complete)
      ZenScript
      Copy
      setTicks(int ticks)
    • Finalize the recipe and add it to the game<br /> build()
      ZenScript
      Copy
      build()

Example builder usage

Link to example-builder-usage

ZenScript
Copy
mods.betterwithmods.Mill.builder()
  .buildRecipe([<minecraft:stone>], [<minecraft:stone>])
  .setGrindType("minecraft:entity.ghast.scream")
  .build();