Posted February 13, 201411 yr Picture to show my problem - http://d.pr/i/JXer I've made some leaves and I cant' figure out why it's causing this? It also makes the sound of stone when placing and walking on it, so I'm guessing the material is being set to material.stone, But I've definately set it to material.leaves? public final static Block genericLeaf = new GenericLeaf(502, Material.leaves).setCreativeTab(CreativeTabs.tabBlock).setTextureName("basic:genericLeaf").setLightOpacity(1000).setLightValue(1.0F).setUnlocalizedName("genericLeaf"); Leaf class: package kamber56.tutorial; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; public class GenericLeaf extends Block { public GenericLeaf (int id, Material material) { super(id, material); } }
February 13, 201411 yr In your leaf constructor where you put super(id, material); put setStepSound(Block.soundTypeLeaves); it will be similar and in your block class put @Override public boolean isOpaqueCube() { return false; }
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.