1
The constructor BlockYellowLeaves(int, int) is undefined
Hello. I am making a mod and I am continuously getting the error up above. Here is the coding: package net.minecraft.src;
public class mod_moreleaves extends BaseMod
{
//BLue Leaves
public static final Block redleaves = (new BlockRedLeaves(200, ModLoader.addOverride("/terrain.png", "/textures/redleaves.png"))).setHardness(0.2F).setStepSound(Block.soundGrassFootstep).setResistance(1F).setCreativeTab(CreativeTabs.tabBlock).setBlockName("redleaves");
public static final Block blueleaves = (new BlockBlueLeaves(201, ModLoader.addOverride("/terrain.png", "/textures/blueleaves.png"))).setHardness(0.2F).setStepSound(Block.soundGrassFootstep).setResistance(1F).setCreativeTab(CreativeTabs.tabBlock).setBlockName("blueleaves");
public static final Block yellowleaves = (new BlockYellowLeaves(202, ModLoader.addOverride("/terrain.png", "/textures/yellowleaves.png"))).setHardness(0.2F).setStepSound(Block.soundGrassFootstep) .setResistance(1F).setCreativeTab(CreativeTabs.tabBlock).setBlockName("yellowleaves");
public void load()
{
ModLoader.registerBlock(redleaves);
ModLoader.addName(redleaves, "Red Leaves");
ModLoader.addShapelessRecipe(new ItemStack(redleaves), new Object[]
{
Block.leaves, Block.plantRed
});
ModLoader.registerBlock(blueleaves);
ModLoader.addName(blueleaves, ("Blue Leaves"));
ModLoader.addShapelessRecipe(new ItemStack(blueleaves), new Object[]
{
Block.leaves, Block.blockLapis});
ModLoader.registerBlock(yellowleaves);
ModLoader.addName(yellowleaves, "Yellow Leaves");
ModLoader.addShapelessRecipe(new ItemStack(yellowleaves), new Object[]
{
Block.leaves, Block.plantYellow
}
);}
public String getVersion()
{
return "1.4.7";
Any and all help will be apreciated!
public class mod_moreleaves extends BaseMod
{
//BLue Leaves
public static final Block redleaves = (new BlockRedLeaves(200, ModLoader.addOverride("/terrain.png", "/textures/redleaves.png"))).setHardness(0.2F).setStepSound(Block.soundGrassFootstep).setResistance(1F).setCreativeTab(CreativeTabs.tabBlock).setBlockName("redleaves");
public static final Block blueleaves = (new BlockBlueLeaves(201, ModLoader.addOverride("/terrain.png", "/textures/blueleaves.png"))).setHardness(0.2F).setStepSound(Block.soundGrassFootstep).setResistance(1F).setCreativeTab(CreativeTabs.tabBlock).setBlockName("blueleaves");
public static final Block yellowleaves = (new BlockYellowLeaves(202, ModLoader.addOverride("/terrain.png", "/textures/yellowleaves.png"))).setHardness(0.2F).setStepSound(Block.soundGrassFootstep) .setResistance(1F).setCreativeTab(CreativeTabs.tabBlock).setBlockName("yellowleaves");
public void load()
{
ModLoader.registerBlock(redleaves);
ModLoader.addName(redleaves, "Red Leaves");
ModLoader.addShapelessRecipe(new ItemStack(redleaves), new Object[]
{
Block.leaves, Block.plantRed
});
ModLoader.registerBlock(blueleaves);
ModLoader.addName(blueleaves, ("Blue Leaves"));
ModLoader.addShapelessRecipe(new ItemStack(blueleaves), new Object[]
{
Block.leaves, Block.blockLapis});
ModLoader.registerBlock(yellowleaves);
ModLoader.addName(yellowleaves, "Yellow Leaves");
ModLoader.addShapelessRecipe(new ItemStack(yellowleaves), new Object[]
{
Block.leaves, Block.plantYellow
}
);}
public String getVersion()
{
return "1.4.7";
Any and all help will be apreciated!
2
Could you post an open source project of this so I can see your structure/files?
Like I said, any help would be appreciated... o3o
