Back to 9Minecraft
Wiki 9Minecraft Wiki 9Minecraft
Createtweaker Wiki › Guides › How to Add a Custom Mixing Recipe with CreateTweaker

How to Add a Custom Mixing Recipe with CreateTweaker

Writing the Recipe Script

CreateTweaker exposes Create's Mixing (basin) recipes to CraftTweaker's mods.create.Mixing handler. You write a .zs script inside your scripts folder. The general shape is: call mods.create.Mixing.addRecipe(...), passing the output item, then the input items, then the fluid (or null if the recipe uses no fluid).

`zenscript

mods.create.Mixing.addRecipe(<minecraft:cake>, [<minecraft:wheat>, <minecraft:sugar>, <minecraft:egg>], <liquid:water> * 250);

`

Replace the items and fluid with your own. The fluid argument accepts a ILiquidStack; use null when the recipe is purely item-based. Inputs are given as an array, and order does not matter to the mixer.

Removing and Reloading

To remove a built-in mixing recipe, use mods.create.Mixing.removeRecipe(output) or the input-based removal method, then re-add your own. After saving, run /ct reload in-game (or restart) so CraftTweaker rebuilds the recipe map. If a recipe silently fails, check that every item is a valid IItemStack and that your fluid uses the correct liquid name registered by Create or another mod. Test in a basin with a mechanical mixer to confirm the recipe fires.