Jump to content

[Solved] Naturally Spawning Custom Crops


Glorfindel22

Recommended Posts

I released my mod the Coffee and Tea Mod a few months ago. And I am currently working on an update to the mod right now. The Tea Mod adds Coffee and Tea Bushes, but I want to figure out how to have spawn them radomly in specific biomes naturally. However, I have never done any Terrain Generation before so I do not really no where to start. Any advice or help would be greatly appreciated.

Creator of the Recipe Expansion Pack mod.

http://www.minecraftforum.net/topic/1983421-172-forge-recipe-expansion-pack-version-012/

Updated to 1.7.2!

Link to comment
Share on other sites

Make a class that implements IWorldGenerator. In the generate() method, include a switch statement for world.provider.dimensionId. There are plenty of tutorials for this online. In your overworld generation method, just follow an ore generation tutorial, but instead of WorldGenMinable, use WorldGenFlowers.

Check out my mod, Realms of Chaos, here.

 

If I helped you, be sure to press the "Thank You" button!

Link to comment
Share on other sites

That worked and with some tweaking I managed to get a result that I was pleased with. If anyone would like to see my code it's available here:

https://www.github.com/RichardsProjects/Richard-s-Coffee-And-Tea-Mod

Creator of the Recipe Expansion Pack mod.

http://www.minecraftforum.net/topic/1983421-172-forge-recipe-expansion-pack-version-012/

Updated to 1.7.2!

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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