Colouring Custom Textures based on Biome Grass Colour

Started by StellaeLux on Wed, 09/04/2019 - 15:24

Topic category: Feature requests and ideas for MCreator

Last seen on 21:46, 14. Oct 2019
Joined Aug 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Colouring Custom Textures based on Biome Grass Colour
Wed, 09/04/2019 - 15:25 (edited)

The idea is simple:

You want to create something, like a block, plant or item (basically anything with a texture) that changes colour based on the Biome Colour (which is typically a type of green).

This is how you'll be able to do it:

Step 1: You create 2 textures. The first texture (Standard texture) is the texture that is displayed at a static colour in your inventory and the second texture (Mapping texture) is a black-white texture in which all pixels that you want to change the colour from are marked in black:

Flower.png

 

FlowerMap.png

When creating your texture, you'll simply have the option to apply a "map" texture and boom! your colour changing texture based on biome is finished. The END.

-----------------------------------------------------------------------------------------------------------------------------------------------------

Whenever the mapping image is inserted, it will ignore all pixels that aren't of RBG value 0,0,0. Based on every black pixel, it will (based on the alpha either completely or completely not) greyscale the pixels from the Standard texture. It then looks at the RBG value for grass of that biome and recolour that texture based on the biome colour.

Edited by StellaeLux on Wed, 09/04/2019 - 15:25
Last seen on 18:13, 14. Oct 2019
Joined Sep 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
i think you want shading
Wed, 10/02/2019 - 13:13

i think you want shading