sp614x / optifine

1.81k stars 418 forks source link

[Feature Request] Biome Specific Block Models #4021

Open AtlasGraphicsUS opened 4 years ago

AtlasGraphicsUS commented 4 years ago

Basically what the title says. Having the ability to specify specific models to biomes would be a huge improvement for resource packs. That way not only can textures be specific to a biome but models can, allowing new species of plants, for instance, to be added without being restricted to the standard model/custom model used.

This would probably have to be in its own section separate from ctm like how cit is, which would help with the organization of files.

Files could be located in optifine/bsm and then subfolders such as jungle_plants with the .properties and .json files. Properties file could include biomes tag and then models where you specify the names of the models to use. Example: Biomes=jungle jungle_hills Models=0-5 8 14

Having the ability to choose the weights and the heights where the models used would be a great ability to have for even further customization. Not sure how blockstate files would play into this so I can't give comments on that side of things.

JackDotJS commented 4 years ago

@sp614x has stated before that he does not want to modify MC block model properties. also, why isn't CTM sufficient for your needs? https://github.com/sp614x/optifine/blob/master/OptiFineDoc/doc/ctm.properties#L132

AtlasGraphicsUS commented 4 years ago

I'm aware of ctm having the ability to do biome specific textures and am using them. The issue is that I need to change the model of certain blocks as well as the texture. This is especially needed for flora since I don't want to use the same model. An example of this is certain types of ferns that are found in certain biomes are vastly different in the size and shape of the common fern found in most forests. While yes I can change the texture based on the biome that doesn't fix the issue of the model not reflecting the new species properly. This is mostly relevant for all flora. Standard block models are not an issue, but leaves, grass, flowers, ferns, etc are. I'm building a diverse selection of species for the flora in Minecraft and this would allow me and so many other developers much more flexibility and possibilities with what a resource pack can do, without having to rely on a forge mod.

SQwatermark commented 4 years ago

You can implement this using CTM. Make a complex model, it includes all the models you need for different biomes. And then apply different textures depending on the biome. Leave the parts you do not need transparent. Althogth it's cumbersome and takes up a bit of computer power, but it works.

RectalSauce commented 3 years ago

I've been for a couple of days trying to figure out a way to make exactly this work out, and i obviously got stuck on it and realized there is no way to do it. I totally agree with you AtlasGraphicsUS, we just need it the game. It would change everything. Infinite blocks spreaded in multiple resource packs biome dependant. Themed pieces of your world which could change based on the specific place they have been built in. I just can't believe there is yet nobody that has made this work... so much potential. I understand that there is many issues i am not even close to think about but i also thing this is a game changer and it worth the try, not only for the huge amount of possibilities but also for the logic behind it. It would be the closest thing we ever had to moded minecraft in vanilla worlds letting players choose their own experience through their personal pc capability, not overloading a server as it does currently the huge amount of addons servers need to load in to work. It is a must.