MC Modding
Please register and join the community!


Join the forum, it's quick and easy

MC Modding
Please register and join the community!
MC Modding
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[1.8.1] Tree

+4
austin56101
the undecided t
bottz2
Strengthowns
8 posters

Go down

[1.8.1] Tree Empty [1.8.1] Tree

Post by Strengthowns Wed Oct 05, 2011 10:49 am

Tree

Spoiler:
Strengthowns
Strengthowns
Admin

Posts : 79
Join date : 2011-06-14
Location : Right here!

http://www.mcmodding.4umer.com

Back to top Go down

[1.8.1] Tree Empty Re: [1.8.1] Tree

Post by bottz2 Mon Oct 24, 2011 5:34 am

how do i make a sapling

bottz2
Member

Posts : 14
Join date : 2011-10-24

Back to top Go down

[1.8.1] Tree Empty Re: [1.8.1] Tree

Post by the undecided t Mon Oct 24, 2011 2:52 pm

bottz2 wrote:how do i make a sapling
It is hard as crap to make a sapling... I can't figure it out.
the undecided t
the undecided t
Helper

Posts : 45
Join date : 2011-10-20
Age : 28

http://www.blacklistgaming.org/forums

Back to top Go down

[1.8.1] Tree Empty Re: [1.8.1] Tree

Post by Strengthowns Tue Oct 25, 2011 1:32 am

It's on my tutorial thread on mcf. I need to update them on here.
Strengthowns
Strengthowns
Admin

Posts : 79
Join date : 2011-06-14
Location : Right here!

http://www.mcmodding.4umer.com

Back to top Go down

[1.8.1] Tree Empty Re: [1.8.1] Tree

Post by austin56101 Tue Oct 25, 2011 2:14 am

ok so this one is awkward for me.. lol
when i made it, it comes out were the logs only go up to the start of the leaves xD
austin56101
austin56101
Moderator
Moderator

Posts : 85
Join date : 2011-10-22
Age : 28
Location : Cali!

Back to top Go down

[1.8.1] Tree Empty Re: [1.8.1] Tree

Post by the undecided t Tue Oct 25, 2011 2:46 am

the spaling tut on your mcf post doesnt really work... i tried and it grows normal trees... and it doesnt accept bonemeal
the undecided t
the undecided t
Helper

Posts : 45
Join date : 2011-10-20
Age : 28

http://www.blacklistgaming.org/forums

Back to top Go down

[1.8.1] Tree Empty Re: [1.8.1] Tree

Post by breakyorself Tue Oct 25, 2011 2:52 am

You should check in the minecraft code for the trees you could probly copy it and change the textures.
breakyorself
breakyorself
Member

Posts : 60
Join date : 2011-10-19

Back to top Go down

[1.8.1] Tree Empty Re: [1.8.1] Tree

Post by breakyorself Tue Oct 25, 2011 2:57 am

This is the sapling code from the game:
Code:

package net.minecraft.src;

import java.util.Random;

// Referenced classes of package net.minecraft.src:
//            BlockFlower, World, WorldGenTaiga2, WorldGenForest,
//            WorldGenTrees, WorldGenBigTree, WorldGenerator

public class BlockSapling extends BlockFlower
{

    protected BlockSapling(int i, int j)
    {
        super(i, j);
        float f = 0.4F;
        setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, f * 2.0F, 0.5F + f);
    }

    public void updateTick(World world, int i, int j, int k, Random random)
    {
        if(world.multiplayerWorld)
        {
            return;
        }
        super.updateTick(world, i, j, k, random);
        if(world.getBlockLightValue(i, j + 1, k) >= 9 && random.nextInt(30) == 0)
        {
            int l = world.getBlockMetadata(i, j, k);
            if((l & 8) == 0)
            {
                world.setBlockMetadataWithNotify(i, j, k, l | 8);
            } else
            {
                growTree(world, i, j, k, random);
            }
        }
    }

    public int getBlockTextureFromSideAndMetadata(int i, int j)
    {
        j &= 3;
        if(j == 1)
        {
            return 63;
        }
        if(j == 2)
        {
            return 79;
        } else
        {
            return super.getBlockTextureFromSideAndMetadata(i, j);
        }
    }

    public void growTree(World world, int i, int j, int k, Random random)
    {
        int l = world.getBlockMetadata(i, j, k) & 3;
        world.setBlock(i, j, k, 0);
        Object obj = null;
        if(l == 1)
        {
            obj = new WorldGenTaiga2();
        } else
        if(l == 2)
        {
            obj = new WorldGenForest();
        } else
        {
            obj = new WorldGenTrees();
            if(random.nextInt(10) == 0)
            {
                obj = new WorldGenBigTree();
            }
        }
        if(!((WorldGenerator) (obj)).generate(world, random, i, j, k))
        {
            world.setBlockAndMetadata(i, j, k, blockID, l);
        }
    }

    protected int damageDropped(int i)
    {
        return i & 3;
    }
}

breakyorself
breakyorself
Member

Posts : 60
Join date : 2011-10-19

Back to top Go down

[1.8.1] Tree Empty Re: [1.8.1] Tree

Post by XenophonWombat Sat Nov 05, 2011 2:19 am

How do I make the tree taller / thicker?

XenophonWombat
Member

Posts : 2
Join date : 2011-11-05

Back to top Go down

[1.8.1] Tree Empty Re: [1.8.1] Tree

Post by sammko Sat Nov 05, 2011 1:41 pm

how to do this in the nether??

sammko
Member

Posts : 5
Join date : 2011-11-01

Back to top Go down

[1.8.1] Tree Empty Re: [1.8.1] Tree

Post by KiraBee Sat Nov 05, 2011 3:19 pm

I think you should change this:

Code:
public void GenerateSurface(World world, Random random, int i, int j)

by

Code:
public void GenerateNether(World world, Random random, int i, int j)

KiraBee
Member

Posts : 12
Join date : 2011-11-03
Age : 26
Location : Peru

Back to top Go down

[1.8.1] Tree Empty Re: [1.8.1] Tree

Post by sammko Sat Nov 05, 2011 3:43 pm

im not sure if boimes work the same way in the nether ..
anyway i might try it out

sammko
Member

Posts : 5
Join date : 2011-11-01

Back to top Go down

[1.8.1] Tree Empty Re: [1.8.1] Tree

Post by sammko Sat Nov 05, 2011 4:22 pm

nope it doesnt

sammko
Member

Posts : 5
Join date : 2011-11-01

Back to top Go down

[1.8.1] Tree Empty Re: [1.8.1] Tree

Post by XenophonWombat Sun Nov 06, 2011 9:21 pm

Please somebody, how do you change the dimensions of the tree?

XenophonWombat
Member

Posts : 2
Join date : 2011-11-05

Back to top Go down

[1.8.1] Tree Empty Re: [1.8.1] Tree

Post by sammko Wed Dec 21, 2011 7:28 pm

hmm.. i cant get the idDropped workin'. it always drops the actual leaves block Sad
my code:
Spoiler:

sammko
Member

Posts : 5
Join date : 2011-11-01

Back to top Go down

[1.8.1] Tree Empty Re: [1.8.1] Tree

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum