Posted July 14, 201411 yr Hi, I thought this was the best place to ask this: How do I make a block give off light? Here's one thing to note, though: My block attributes are in myblock.java, instead of the main.java. (myblock is my block and main is my main mod file). It looks like this: super(Material.cloth); setBlockName("BaseBlock"); setBlockTextureName(Reference.MODID + ":" + "base_block"); setCreativeTab(CreativeTabs.tabBlock); setStepSound(soundTypePiston); //setHardness(3.0F); //setResistance(5.0F); setHarvestLevel("pickaxe", 1); // or "hoe", "spade" Thanks!
July 14, 201411 yr setLightLevel(1.0f); Next time, look in Block.java for how similar blocks (glowstone, etc.) do it.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.