Jump to content

jkorn2324swagg

Members
  • Posts

    38
  • Joined

  • Last visited

Posts posted by jkorn2324swagg

  1. What I mean is you know how the spruce trees have different leaf designs than the oak trees. Like the oak trees just have a top and the spruce trees have two layers of leaves, one in the middle and one near the top. I want my tree to have a custom design of leaf patterns for my tree. Also you know how there is custom branches in the big oak tree, I want some of those branches in some of my trees.

     

     

     

  2. Hi, I have been making a mod for quite some time & I am trying to create multiple custom trees. I want to make my trees unique by adding custom branches and leaf patterns, however I do not know how to do that. Can someone please help. Thanks

     

     

     

    Code ModSaplings:

     

    http://pastebin.com/LrdgJipS

     

     

     

    Code ModWorldGenBananaTree:

     

    http://pastebin.com/ExRKGXni

     

     

     

    Bye the way, do I need a ModWorldGenTrees Class that contains all of my trees or not?

     

    And just to answer this question before you guys ask it.

    No I cannot upgrade to newer versions. This is all I have got.

  3. Hi, I need help trying to render my wood block so it would kind of look like bamboo, but the block just always look like a regular block. Here is my code:

     

    package mymod.blocks;

     

    import net.minecraft.block.Block;

    import net.minecraft.block.material.Material;

    import net.minecraft.client.renderer.texture.IconRegister;

    import net.minecraft.creativetab.CreativeTabs;

    import net.minecraft.util.Icon;

    import net.minecraft.world.IBlockAccess;

     

    public class PapayaWood extends Block{

     

    private Icon PapayaTreeBlock; //Side of Block

    private Icon PapayaTreeBlockTop; //Top & Bottom of Block

     

    public PapayaWood(int par1)

        {

            super(par1, Material.wood);

            this.setCreativeTab(CreativeTabs.tabBlock);

        }

       

        /**

        * If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)

        */

        public boolean renderAsNormalBlock()

        {

            return false;

        }

     

        public boolean getBlocksMovement(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)

        {

            return false;

        }

     

        /**

        * Is this block (a) opaque and (b) a full 1m cube?  This determines whether or not to render the shared face of two

        * adjacent blocks and also whether the player can attach torches, redstone wire, etc to this block.

        */

        public boolean isOpaqueCube()

        {

            return false;

        }

     

     

    @Override public void registerIcons(IconRegister iconRegister)

        {

    this.PapayaTreeBlock = iconRegister.registerIcon("mymod:PapayaTreeBlock");

        this.PapayaTreeBlockTop = iconRegister.registerIcon("mymod:PapayaTreeBlockTop");

        }

     

    public Icon getBlockTexture(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)

        {

    if (par5 == 0)

            {

                return this.PapayaTreeBlockTop;

            }

            else if (par5 == 1)

            {

                return this.PapayaTreeBlockTop;

            }

            else

            {

            return this.PapayaTreeBlock;

            }

        }

            public Icon getIcon(int par1, int par2)

            {

                return par1 == 1 ? this.PapayaTreeBlockTop : par1 == 0 ? this.PapayaTreeBlockTop : this.PapayaTreeBlock; // 1- Top    0- Bottom  else: Side );

            }

    }

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.