Posted 29 April 2012 - 11:50 AM
i have a few questions
the blockID config doesn't work but the recipe config does
please help
package net.minecraft.src;
import dan200.computer.api.IComputerAccess;
import dan200.computer.api.IPeripheral;
public class mod_Controller extends BaseMod
{
public static int frontOff = ModLoader.addOverride("/terrain.png", "/frontOff.png");
public static int frontOn = ModLoader.addOverride("/terrain.png", "/frontOn.png");
public static int sideOff = ModLoader.addOverride("/terrain.png", "/sideOff.png");
public static int sideOn = ModLoader.addOverride("/terrain.png", "/sideOn.png");
@MLProp public static int recipeOn = 1;
@MLProp public static int controllerBlockID = 210;
public static final Block controller = new BlockController(controllerBlockID, 0).setBlockName("controller").setHardness(3F).setResistance(4F);
public void load()
{
ModLoader.registerBlock(controller);
ModLoader.addName(controller, "Controller");
if (recipeOn == 1)
{
ModLoader.addRecipe(new ItemStack(controller, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt});
}
ModLoader.registerTileEntity(TileEntityController.class, "name");
}
public String getVersion()
{
return "1.2.5";
}
}
the blockID config doesn't work but the recipe config does
please help