Colouring Custom Textures based on Biome Grass Colour

Started by StellaeLux on

Topic category: Feature requests and ideas for MCreator

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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
Joined Sep 2019
Points:

User statistics:

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

i think you want shading

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do it with shading???
Mon, 11/02/2020 - 08:13

how do it with shading???

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
and with 2020.5 snapshot
Fri, 11/06/2020 - 13:23

and with 2020.5 snapshot

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
my block has a grass overlay…
Thu, 07/29/2021 - 18:34

my block has a grass overlay on it, and yes it changes color, buuut the entire block does too, they are both grey so i get it, but isnt there a way i can make the block grey without it changing color, while also making the overlay and top layer change color? probably not, but still help