Mill
Link to mill
Basic Recipe
Link to basic-recipe
- Adds a Mill Recipe
ZenScript Copymods.betterwithmods.Mill.addRecipe(IIngredient[] inputs, IItemStack[] outputs);
// Examples
mods.betterwithmods.Mill.addRecipe([<minecraft:dirt>],[<minecraft:stone>]);
Removal
Link to removal
- Remove a Mill recipe based on the output
ZenScript Copymods.betterwithmods.Mill.remove(IItemStack[] outputs);
- Remove all Mill recipes
ZenScript Copymods.betterwithmods.Mill.removeAll();
Builder
Link to builder
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
ZenScriptCopy
buildRecipe(IIngredient[] inputs, IItemStack[] outputs)
- Set the priority of the recipe - the lower the priority, the sooner it will be crafted. Default is 0
ZenScriptCopy
setPriority(int priority)
- Set the sound emitted by the mill during the recipe
ZenScriptCopy
setGrindType(String soundLocation)
- Set the tick duration of the recipe (how long the recipe takes to complete)
ZenScriptCopy
setTicks(int ticks)
- Finalize the recipe and add it to the game
build()ZenScriptCopybuild()
- Setup the inputs and outputs of the recipe
Example builder usage
Link to example-builder-usage
ZenScript Copymods.betterwithmods.Mill.builder()
.buildRecipe([<minecraft:stone>], [<minecraft:stone>])
.setGrindType("minecraft:entity.ghast.scream")
.build();