Jump to content

How to make custom trees?


JoseTheCrafter

Recommended Posts

Hello everybody! First of all sorry for my bad English, I'm from Spain :(.

Could You help me? I'm learning how to make mods with forge.  I'm creating a mod called "Olives" (Yes, it's weird). Now, I want to create a custom tree that spawns in certain biomes like Forests and Plains. The point is that I don't know how to make the necessary code. I'm very disappointed because I can't find any tutorial for 1.5 about it. Sorry again for my bad English :-[;D.Tell me if you need some more information.

Link to comment
Share on other sites

Never tried creating Trees/Biomes etc so can't help you there but what I will say is find a tutorial for 1.4.7 or closest to, follow it then when you hit errors you can post specific questions based upon the errors found. 1.5 couldn't of broken it too much so I'm sure the underlining system are still pretty much the same.

Link to comment
Share on other sites

Hello and thank you for comment. I will do as you said and if I get errors I'll put them here. Now only remains to find a good tutorial. Thank you again ;D

 

 

Modif: I have tried a 1.4.7 tutorial, but it has not worked. Do not know of any tutorial for 1.4.7 or 1.5? Please :(. Thanks!

Link to comment
Share on other sites

The fact that the code ain't giving an error means that the code's syntax is valid. Not that it will do as you intended.

When it get's errors before you run it, the errors are with the syntax or grammar of your code if you will.

When it crashes at runtime it encounters something it didn't know how to handle, like nothing where it expected something(Null pointer exception).

 

But when it does neither and does not produce the wanted result, the code is still wrong. It's just allowed to type it out that way you did so you get no pre-compile errors :P

 

If you want help tough, post your mainmod file at pastbin.com (USE JAVA SYNTAX HIGHLIGHTNING!!!) and give us the link.

Also include code for blocks and the generation files etc.

 

Then we can help you figure out where your problem is located so you can fix it.

If you guys dont get it.. then well ya.. try harder...

Link to comment
Share on other sites

Hello! Here are all the mod files:

 

 

MainClass:

 

http://pastebin.com/bWYR3W8f

 

Olive:

 

http://pastebin.com/AJ6CQHJp

 

OliveBlock:

 

http://pastebin.com/2reVmetE

 

TutLeaf:

 

http://pastebin.com/cZFc570y

 

TutLog:

 

http://pastebin.com/qFLYJ41x

 

TutSapling:

 

http://pastebin.com/XpmzRZMp

 

TutWorldGen:

 

http://pastebin.com/R8BqFVg9

 

WorldGenTutTree:

 

http://pastebin.com/yc0My0cd

 

 

 

When I solve the error I will change the names of the class files. Thank you :)

 

 

Link to comment
Share on other sites

put this in the load method

GameRegistry.registerWorldGenerator(new TutWorldGen());

and put @Init above the load method. It should look like this

@Init
public void load ()

and get rid of the extra set of {} that comess right after the load method on the same line

Link to comment
Share on other sites

Hello and tank you soooo much :D. My trees generates normaly without errors, but How can I use bonemeal with my custom sapling? I tried to put some bonemeal on but it doesn't work. Finally, using the tutorial from TheGrovesyProject101, How can I put the textures? Sorry but it is my first time creating a custom tree :-[. Thank you :D!!

Link to comment
Share on other sites

You should go check out this page!

It should give you some better understanding of the @Init and @Mod annotations as well as help you get your textures and blocks working.

For information on Textures and Icons as of 1.5.X read AtomicStryker's post about it :)

 

As for Bonemeal to work, I believe that one is quite easy to fix but did you try something from a tutorial which didn't work or did I misunderstand your post? :)

If the tutorial code didn't work for you then share your code for the sappling and whatever you modified to get the bonemeal to work. (like your mainMod file).

 

If you guys dont get it.. then well ya.. try harder...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I have no idea how a UI mod crashed a whole world but HUGE props to you man, just saved me +2 months of progress!  
    • So i know for a fact this has been asked before but Render stuff troubles me a little and i didnt find any answer for recent version. I have a custom nausea effect. Currently i add both my nausea effect and the vanilla one for the effect. But the problem is that when I open the inventory, both are listed, while I'd only want mine to show up (both in the inv and on the GUI)   I've arrived to the GameRender (on joined/net/minecraft/client) and also found shaders on client-extra/assets/minecraft/shaders/post and client-extra/assets/minecraft/shaders/program but I'm lost. I understand that its like a regular screen, where I'd render stuff "over" the game depending on data on the server, but If someone could point to the right client and server classes that i can read to see how i can manage this or any tip would be apreciated
    • Let me try and help you with love spells, traditional healing, native healing, fortune telling, witchcraft, psychic readings, black magic, voodoo, herbalist healing, or any other service your may desire within the realm of african native healing, the spirits and the ancestors. I am a sangoma and healer. I could help you to connect with the ancestors , interpret dreams, diagnose illness through divination with bones, and help you heal both physical and spiritual illness. We facilitate the deepening of your relationship to the spirit world and the ancestors. Working in partnership with one\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\’s ancestors is a gift representing a close link with the spirit realm as a mediator between the worlds.*   Witchdoctors, or sorcerers, are often purveyors of mutis and charms that cause harm to people. we believe that we are here for only one purpose, to heal through love and compassion.*   African people share a common understanding of the importance of ancestors in daily life. When they have lost touch with their ancestors, illness may result or bad luck. Then a traditional healer, or sangoma, is sought out who may prescribe herbs, changes in lifestyle, a career change, or changes in relationships. The client may also be told to perform a ceremony or purification ritual to appease the ancestors.*   Let us solve your problems using powerful African traditional methods. We believe that our ancestors and spirits give us enlightenment, wisdom, divine guidance, enabling us to overcome obstacles holding your life back. Our knowledge has been passed down through centuries, being refined along the way from generation to generation. We believe in the occult, the paranormal, the spirit world, the mystic world.*   The services here are based on the African Tradition Value system/religion,where we believe the ancestors and spirits play a very important role in society. The ancestors and spirits give guidance and counsel in society. They could enable us to see into the future and give solutions to the problems affecting us. We use rituals, divination, spells, chants and prayers to enable us tackle the task before us.*   I have experience in helping and guiding many people from all over the world. My psychic abilities may help you answer and resolve many unanswered questions
    • Let me try and help you with love spells, traditional healing, native healing, fortune telling, witchcraft, psychic readings, black magic, voodoo, herbalist healing, or any other service your may desire within the realm of african native healing, the spirits and the ancestors. I am a sangoma and healer. I could help you to connect with the ancestors , interpret dreams, diagnose illness through divination with bones, and help you heal both physical and spiritual illness. We facilitate the deepening of your relationship to the spirit world and the ancestors. Working in partnership with one\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\’s ancestors is a gift representing a close link with the spirit realm as a mediator between the worlds.*   Witchdoctors, or sorcerers, are often purveyors of mutis and charms that cause harm to people. we believe that we are here for only one purpose, to heal through love and compassion.*   African people share a common understanding of the importance of ancestors in daily life. When they have lost touch with their ancestors, illness may result or bad luck. Then a traditional healer, or sangoma, is sought out who may prescribe herbs, changes in lifestyle, a career change, or changes in relationships. The client may also be told to perform a ceremony or purification ritual to appease the ancestors.*   Let us solve your problems using powerful African traditional methods. We believe that our ancestors and spirits give us enlightenment, wisdom, divine guidance, enabling us to overcome obstacles holding your life back. Our knowledge has been passed down through centuries, being refined along the way from generation to generation. We believe in the occult, the paranormal, the spirit world, the mystic world.*   The services here are based on the African Tradition Value system/religion,where we believe the ancestors and spirits play a very important role in society. The ancestors and spirits give guidance and counsel in society. They could enable us to see into the future and give solutions to the problems affecting us. We use rituals, divination, spells, chants and prayers to enable us tackle the task before us.*   I have experience in helping and guiding many people from all over the world. My psychic abilities may help you answer and resolve many unanswered questions
    • Let me try and help you with love spells, traditional healing, native healing, fortune telling, witchcraft, psychic readings, black magic, voodoo, herbalist healing, or any other service your may desire within the realm of african native healing, the spirits and the ancestors. I am a sangoma and healer. I could help you to connect with the ancestors , interpret dreams, diagnose illness through divination with bones, and help you heal both physical and spiritual illness. We facilitate the deepening of your relationship to the spirit world and the ancestors. Working in partnership with one\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\’s ancestors is a gift representing a close link with the spirit realm as a mediator between the worlds.*   Witchdoctors, or sorcerers, are often purveyors of mutis and charms that cause harm to people. we believe that we are here for only one purpose, to heal through love and compassion.*   African people share a common understanding of the importance of ancestors in daily life. When they have lost touch with their ancestors, illness may result or bad luck. Then a traditional healer, or sangoma, is sought out who may prescribe herbs, changes in lifestyle, a career change, or changes in relationships. The client may also be told to perform a ceremony or purification ritual to appease the ancestors.*   Let us solve your problems using powerful African traditional methods. We believe that our ancestors and spirits give us enlightenment, wisdom, divine guidance, enabling us to overcome obstacles holding your life back. Our knowledge has been passed down through centuries, being refined along the way from generation to generation. We believe in the occult, the paranormal, the spirit world, the mystic world.*   The services here are based on the African Tradition Value system/religion,where we believe the ancestors and spirits play a very important role in society. The ancestors and spirits give guidance and counsel in society. They could enable us to see into the future and give solutions to the problems affecting us. We use rituals, divination, spells, chants and prayers to enable us tackle the task before us.*   I have experience in helping and guiding many people from all over the world. My psychic abilities may help you answer and resolve many unanswered questions
  • Topics

×
×
  • Create New...

Important Information

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