• 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
Copy
mods.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
Copy
mods.betterwithmods.Turntable.remove(IIngredient input);
  • Remove all recipes
ZenScript
Copy
mods.betterwithmods.Turntable.removeAll();

Remove by product

Link to remove-by-product

  • Remove a recipe by the productState
ZenScript
Copy
mods.betterwithmods.Turntable.removeRecipe(IItemStack productState);

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
      ZenScript
      Copy
      buildRecipe(IIngredient[] inputs, IItemStack[] outputs)
    • Sets the rotations required for the recipe to finish. This defaults to 8.
      ZenScript
      Copy
      setRotations(int rotations)
    • Set the block that is placed when the recipe is finished.
      ZenScript
      Copy
      setProductState(IItemStack productState)
    • Finalize the recipe and add it to the game
      ZenScript
      Copy
      build()

Example builder usage

Link to example-builder-usage

ZenScript
Copy
mods.betterwithmods.Turntable.builder()
.buildRecipe([<minecraft:oak_fence>], [<minecraft:stick>*6])
.build();