Jump to content

Recommended Posts

Posted

I'm not sure if this has been brought up before, but here it goes:

I have been modding with Forge for a while, and I've come across the problem (specifically with generating plants) of not wanting things to generate in FLAT worlds, but have them generate in DEFAULT or LARGE BIOMES worlds.

I've tried using the variables in the "Word, WorldProvider, WorldType, and WorldInfo" classes but can't seem to get it to work or if it even ever will work.

A hook in one of those files would be great. (kinda like the World.provider.dimensionID hook)

Thanks in advace!

 

Eastonium

Posted

World.getWorldInfo().getTerrainType()

No need for extra hooks for vanilla features..

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

Then how do I use that to make it not generate in flat worlds? I'd already been trying that for DAYS now and couldn't get it.

 

And since this topic has changed from suggestions to help, shouldn't it be moved?

 

Posted

if (world.getWorldInfo().getTerrainType() == WorldType.FLAT) DONT_DO_YOUR_SHIT.

Seriously... simple..

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

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