Jump to content

[1.8] [UNSOLVED] How do I get a block with two layers of textures


Kander16

Recommended Posts

Hi,

 

I'm making new leaves that grow olives.

I want to color the leaves with java code, but the blossom / olives I want to be colored with the texture.

So I thought, what about multiple layers of texture on that block.

So that you have a foreground and a background.

The background(leaves) will be colored per biome with code.

The foreground(olives/blossom) will be colored by the texture itself.

(the color won't change per biome as it would look ugly).

 

I learned how to do this for 1.7.10, using multiple pass rendered blocks.

But since the rendering was changed in 1.8, that won't work anymore(Obviously).

How do I do this for minecraft 1.8(and probably up)?

 

Thanks for helping!

Creator of the Master Chef Mod and many more to come.

 

If I helped you, please click the 'thank you' button.

Link to comment
Share on other sites

I explained how to do this in 1.10.2 here. In 1.8.x, you need to override the appropriate colour methods in your

Block

and

Item

instead of using

IBlockColor

/

IItemColor

.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

Oh, I got another problem.

When setting my graphics to "fast", the background (leaves) looks white.

It works normal in the fancy graphics.

The overlay works just fine. I don't know what's the problem.

I think it has to do with EnumBlockLayer SOLID, but how do I fix that?

 

Here's a picture

 

http://imgur.com/a/zdzLe

Creator of the Master Chef Mod and many more to come.

 

If I helped you, please click the 'thank you' button.

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.