ModTweaker

From MineTweaker 3
Jump to: navigation, search

ModTweaker logo.png

ModTweaker is an addon for MineTweaker 3. Minetweaker lets you adjust recipes, remove them entirely, or add new recipes. While it has decent mod support, there are many mods that use custom crafting handlers that are not supported natively. ModTweaker plans to provide additional support for as many of these mods over time as possible.

Download

You can find ModTweaker on curseforge: ModTweaker Download

General Usage

In general, for all of the supported mods, you can either import them or call them directly.

Throughout the tutorial examples, the latter will be used just to keep everything concise.

Example with the Botania Apothecary recipes:

import mods.botania.Apothecary;

Apothecary.addRecipe(<minecraft:melon>, [<ore:petalLime>, <ore:petalRed>, <ore:petalRed>]);

or:

mods.botania.Apothecary.addRecipe(<minecraft:melon>, [<ore:petalLime>, <ore:petalRed>, <ore:petalRed>]);

Difference between IItemStack and IIngredient

IItemstack is the standart type for representing an item in a recipe. It can hold an item with metadata/damage value (metadata), NBT data and the stacksize. IIngredient is a more advanced type which can represent all of the above and Oredict entries, input conditions and item transformers.

However, most of the crafting mechanisms supported by Modtweaker don't support the latter but only IItemStack. Look at documentation of the specific handlers to see what they support. (The Method signature -which parameters and parameter types are used- is written above the example.)

If a ZenScript method for adding recipes, accepts IIngredient, most of the the handlers only can use the additional Oredict support not input conditions or item transformers. If there is additional support beyond that, it will be explicit marked.

If a ZenScript method for removing recipes accepts IIngredient, most of the the handlers can use all the features of IIngredient.

The support for mods is not finalized. There will be additional support added where applicable.

Currently Supported Mods 1.11.2

Currently Supported Mods 1.10.2


Currently Supported Mods 1.7.10