Thanks so much! However it doesn't work, what you told me would work but its not working for me, I think its because of my trees. Instead of dropping saplings or apples it drops acacia saplings and the banana tree grows into an orange tree. I'm going to restart my trees
Does anyone have any tutorials out there for 1.7.10 on custom trees? I tried 1 tutorial and it seemed not to work so I want to know if anyone has a tutorial or anyone knows of a tutorial or if anyone can teach me how to make custom trees?
On the Minecraft forum, somebody has a planned tutorial about trees for Minecraft 1.7.10. I have search all over the internet for it. I found something for 1.7.2. I also find things saying "1.7.2/1.7.10." I hope episodes 61 - 63 work for you.
Hey baldwhin thanks for this video, this is the same modder I used to make my custom trees in the first place. But it didn't seem to work! I know your trying hard to solve this and I am so grateful of that! The only problem is, people who know how to do this, don't share it. I might have to wait into the planned tutorial becomes a tutorial.
Ok can someone help me with this, I have made my two trees, they work fine, the only problem is that the 2 trees I made drop acacia and dark oak saplings, I copied some of the coding for my leaves from vanilla (BlockNewLeaves) but I can't seem to find what is making the tree drop acacia and dark oak saplings (look at the first post of this thread to see my code) anyone have any ideas?
Sorry cant help with a tutorial or anything as iv never tried to make a custom tree but just from reading through your code i believe
public int damageDropped(int i)
return super.damageDropped(i) + 4;
is why your getting acacia saplings, 4 being the meta of acacia saplings. (provided it was handed 0) though look in the parent class to find what its being handed, or put System.out.println("number =" i); inside the damage dropped method
and adjust getdamagedropped to return the correct meta for your saplings
public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_)
public ArrayList<ItemStack> getDrops(World world, int x, int y, int z, int metadata, int fortune)
ArrayList<ItemStack> ret = new ArrayList<ItemStack>();
int chance = this.func_150123_b(metadata);
if (fortune > 0)
chance -= 2 << fortune;
if (chance < 10) chance = 10;
if (world.rand.nextInt(chance) == 0)
ret.add(new ItemStack(this.getItemDropped(metadata, world.rand, fortune), 1, this.damageDropped(metadata)));
change the if statement its all that's controlling the chance if you don't like how that vanilla method works change it you could use a random double generator and check its value this would be more or less like setting it as a percentage of chance to drop