Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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.

What do you mean by custom leaf designs? Do you mean the textures for the leaves vary from leaf to leaf?

 

Also, what do you mean be custom branches? Do you mean a different model or something?

 

Sorry for the amount of questions, I'm just confused. :)

  • Author

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.

 

 

 

  • Author

I cannot update to 1.7 or 1.8 the people where I got this from hasn't been updated yet. For now I can only be on 1.6.4 until the people where I got this from (youthdigital) can update to 1.7 or 1.8.

  • Author

No I don't need help with updating to another version it's just I learned how to make a basic mod from youth digital & I downloaded my modding program from them (which is a modified version of minecraft forge) so I cannot update my version until they update their version of minecraft forge. So I am stuck with 1.6.4.

OK so for the tree itself just look into the BlockLeave class and there should be something about the foliage

 

and if you go into "net.minecraft.world.gen.feature" there should be a class called WorldGenBigTree.class so that should contain how the big oak tree grows and the branches on it.  Hope this helped :D 

  • Author

The block leaves class said something about a get foliage color thing but it doesn't say like where you put the leaves around the tree

if you look in the WorldGenBigTree it places the leaves and blocks for you

you just have to replace them with your own leaves and wood block, i haven't really done this before so i don't really know

 

this video might help you though:

  • Author

I think it has to do with the world gen tree class. I looked at the world gen taiga class and the world gen tree class at the same time and I found several differences but I do not understand some of the code. Because of that I do not know where to put the code so I can customize my trees so that they look unique.

i highly recommend that you watch this video to get a better understanding of where to put thing and how to customize:

 

True Story...

 

The first language i fully understood was... Casio Basic, the uglyest and slowest thing in the world, but quite simple and easy to learn the basics...

 

looking at java... highly complicated mess of weirdness...

 

looking at minecaft/forge... badly coded, hacked together, badly documented ball of mud...

 

not the perfect thing to begin with. Heck, even a standalone java game is probably less confusing!

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.