Vanilla Factory

The Vanilla Factory allows you to create Blocks, Items and Creative Tabs that you can then add to the game.

Calling

You can find the package at mods.contenttweaker.VanillaFactory

Creating Content

Create Blocks

mods.contenttweaker.VanillaFactory.createBlock(String unlocalizedName, IMaterialDefinition material);

Parameters:

Returns a BlockRepresentation object. Check the Block page for further information and an example script!

Create Items

mods.contenttweaker.VanillaFactory.createItem(String unlocalizedName);

Parameters:

Returns an ItemRepresentation object. Check the Item page for further information and an example script!

Create Creative Tabs

mods.contenttweaker.VanillaFactory.createCreativeTab(String unlocalizedName, IItemStack iItemStack);
mods.contenttweaker.VanillaFactory.createCreativeTab(String unlocalizedName, ItemRepresentation iItem);
mods.contenttweaker.VanillaFactory.createCreativeTab(String unlocalizedName, BlockRepresentation iBlock);
mods.contenttweaker.VanillaFactory.createCreativeTab(String unlocalizedName, IItemStackSupplier supplier);

Parameters:

Returns a ICreativeTab object. Check the Creative Tab page for further information and an example script!

Create Fluids

mods.contenttweaker.VanillaFactory.createFluid(String unlocalizedName, int color);
mods.contenttweaker.VanillaFactory.createFluid(String unlocalizedName, CTColor color);

Parameters:

Returns a FluidRepresentation object. Check the Fluid page for further information and an example script.

Create Food Items

mods.contenttweaker.VanillaFactory.createItemFood(String unlocalizedName, int healAmount);

Parameters:

Returns an ItemFoodRepresentation object. Check out the Food page for further information and an example script.