Activity

gotitim

I’ve already had a mod that was based on values stored in config, but… how to automatically generate them? Does Minecraft know what climate is actually good for a plant?

It seems that many plants can be automatically generated from placed features. I registered a listener at server start that iterates through all the biomes, their placed features and stores total climate information of all the biomes which can generate a feature.

Now, there is a problem - many plants have multiple configured features, for example an oak has 7 of them! So after I gather information about the configured features, it’s time to get the blocks from them. That wasn’t difficult - just a few access wideners and you can get them from the SaplingBlock class.

The next day of work will probably involve implementing support for more types of plants and make the mod even more universal! Right now I don’t have many pictures, so check out this climate report!

Attachment
0