1

The constructor BlockYellowLeaves(int, int) is undefined

MinecraftDonut 1/13/13 12:01 pm
401
1/14/2013 4:39 pm
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!
Posted by
MinecraftDonut
Level 51 : Grandmaster Demolitionist
114

  Have something to say?

JoinSign in

2

Z645
01/14/2013 4:39 pm
Level 31 : Artisan Geek
Could you post an open source project of this so I can see your structure/files?
1
MinecraftDonut
01/13/2013 4:54 pm
Level 51 : Grandmaster Demolitionist
Like I said, any help would be appreciated... o3o
1

Welcome