Turntable
Link to turntable
Basic Recipe
Link to basic-recipe
- Adds Turntable Recipe - inputs MUST have a block associated with them. The product state is the block that will be placed after the recipe finishes
ZenScript Copymods.betterwithmods.Turntable.add(IIngredient input, IItemStack productState, IItemStack[] output);
mods.betterwithmods.Turntable.add(IIngredient input, IItemStack[] output);
//Examples
mods.betterwithmods.Turntable.add(<minecraft:grass>, <minecraft:dirt>, [<minecraft:seed>]);
mods.betterwithmods.Turntable.add(<minecraft:gravel>, [<minecraft:flint>]);
Removal by input
Link to removal-by-input
- Remove a recipe based on the input ingredient
ZenScript Copymods.betterwithmods.Turntable.remove(IIngredient input);
Remove all
Link to remove-all
- Remove all recipes
ZenScript Copymods.betterwithmods.Turntable.removeAll();
Remove by product
Link to remove-by-product
- Remove a recipe by the productState
ZenScript Copymods.betterwithmods.Turntable.removeRecipe(IItemStack productState);
Builder
Link to builder
The Turntable has a recipe builder that allows more precise control over the recipes. All previous methods are simply short cuts to using the builder.
-
To create a new Turntable builder.
mods.betterwithmods.Turntable.builder()
-
Turntable methods
- Sets up the inputs and outputs of the recipe
ZenScriptCopy
buildRecipe(IIngredient[] inputs, IItemStack[] outputs)
- Sets the rotations required for the recipe to finish. This defaults to 8.
ZenScriptCopy
setRotations(int rotations)
- Set the block that is placed when the recipe is finished.
ZenScriptCopy
setProductState(IItemStack productState)
- Finalize the recipe and add it to the game
ZenScriptCopy
build()
- Sets up the inputs and outputs of the recipe
Example builder usage
Link to example-builder-usage
ZenScript Copymods.betterwithmods.Turntable.builder()
.buildRecipe([<minecraft:oak_fence>], [<minecraft:stick>*6])
.build();