Hi, I'm making a mod that changes vanilla blocks properties, right now I'm working on their light level, and I don't get any errrors on eclipse. It's not working though. Can someone please help me?
This is the code I'm using:
Block gold_ore= null; Block.blockRegistry.addObject(14, "gold_ore", (new BlockOre()).setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundTypePiston).setBlockName("oreGold").setBlockTextureName("gold_ore").setLightLevel(0.5F));
This is the code I'm using:
Block.blockRegistry.addObject(14, "gold_ore", (new BlockOre()).setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundTypePiston).setBlockName("oreGold").setBlockTextureName("gold_ore").setLightLevel(0.5F));
Hello!
That is how you change a block property.
Gonna try it right now, ill let you know if it works. Thank you.
//That worked, thanks for your help. I didn't know enough back then.