Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- For those getting x-ray leaves when setting a transparent texture, I think I might be able to clarify how to make the leaves appear normally. It's actually pretty simple. Kudos to lain Maclean for providing the answer I needed to build this process. :)
- 1. in your basic.java (or whatever you called it), change the following part, (minus the quotes, of course)
- From:
- "public final static Block genericLeaves = new GenericBlock(502, Material.leaves)"
- To:
- "public final static Block genericLeaves = new GenericLeavesBlock(502, Material.leaves, true)"
- 2. Create a new class called GenericLeavesBlock.java in your package. You can do this by clicking on "GenericLeavesBlock" (from step 1), press CTRL + 1, and select the option to create the class.
- 3. Erase everything in the GenericLeavesBlock.java file, and then paste in the following code from between the lines. Reword the first part, "package tutorial.basic;" as necessary.
- //----------------------------------
- package tutorial.basic;
- import net.minecraft.block.BlockLeavesBase;
- import net.minecraft.block.material.Material;
- public class GenericLeavesBlock extends BlockLeavesBase {
- public GenericLeavesBlock(int id, Material material, Boolean boo) {
- super(id, material, boo);
- }
- }
- //----------------------------------
- 4. Save your files and start minecraft to test it. If all went well, you should no longer have x-ray leaves when using a texture file with transparency! Wee!
Advertisement
Add Comment
Please, Sign In to add comment