-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request] custom textures for every color of a CEM bed #2709
Comments
…p614x/optifine#2709) This shortened my life expections by at least five years.
- Optifine's custom entity models use the default texture for the model by default, so I have moved the color-sensitive textures over to the default textures in /textures/entity/bed & adapted the UV coordinates - Also improved the default Minecraft bed texture (frame)
I believe this issue should be reopened. If a user is not using optifine, their bed textures will be entirely warped and distorted. |
The only way around that for a resource pack, is by having these changes in a separate addon pack |
This is not true, the default UV does not have to be modified in any way. |
Correctly, I use that method for some custom mob models based on biome or variant, and it doesn't glitch without optifine. |
Hey,
In the last few days, I have transferred my bed model from 1.11- to OptiFine's CEM system so that it can be used in 1.12+ again.
I think it looks kinda cool:
Sadly, custom bed models can only have one fixed texture for its color, and having no colored beds is a huge drawback for most people. As you know, as it's an entity, resource packs can't control anything except the texture by default, so it would be amazing if you added a system to apply color to CEM beds again!
I'm thinking of something a bit like the custom GUI system, here is my proposal:
In optifine/cem, there's a file e.g. called "cem_bed_colors.property". The file contains properties of what texture is applied to what color of the bed, for example like this:
Where
bed
,bed_red
,bed_blue
, etc. are .png files in the same folder of the .properties file or in subfolders when specified. I also thought that just throwing colors in the file is maybe a bit too specific, so I added aproperty
trait to define what is being customized (But you can decide best on how the structure should look).In the actual CEM model, one will define something like a
property
orproperties
property, in which a .property file is specified. This is then read and applied to the model part!Example:
A
"texture"
property still needs to be specified - it functions as the default texture if not all colors are specified in the .properties file and as fallback if the file cannot be read correctly.I hope this helps a bit!
Cheers,
Hallo89
The text was updated successfully, but these errors were encountered: