I tried to make a new TFBP for my addon mod, but it isn't working! Here's the class declaration:
Code
		
					
				public class OilSpawnBpt extends Item implements ITerraformingBP {
	public OilSpawnBpt(int par1) {
		super(par1);
		// TODO Auto-generated constructor stub
	}
	@Override
	public int getConsume() {
		return 40;
	}
	@Override
	public int getRange() {
		return 10;
	}
	@Override
	public boolean terraform(World world, int x, int z, int yCoord) {
		boolean toReturn=false;
		for (int y=1; y<=yCoord; y++)
		{
			if (world.getBlockId(x, y, z)==Block.waterStill.blockID
					|| world.getBlockId(x, y, z)==Block.lavaStill.blockID)
			{
				world.setBlockWithNotify(x, y, z,
						BuildCraftEnergy.oilStill.blockID);
				toReturn=true;
				break;
			}
			else if (world.getBlockId(x, y, z)==Block.waterMoving.blockID
					|| world.getBlockId(x, y, z)==Block.lavaMoving.blockID)
			{
				world.setBlockAndMetadataWithNotify(x, y, z,
						BuildCraftEnergy.oilMoving.blockID,
						world.getBlockMetadata(x, y, z));
				toReturn=true;
				break;
			}
		}
	 return toReturn;
	}
}
	
			Display More
	And the item declaration:
And the implementation in public void load(FMLInitializationEvent):
Code
		
			oilSpawner=new OilSpawnBpt(10004).setTextureFile(path).setIconIndex(5).setItemName("oilSpawner");
	
	The item is declared perfectly, but it won't enter the terraformer! What's the problem?