Trouble with matching custom block colors with MC block colors

Started by Dark_Lord_Prime on Sat, 05/19/2018 - 03:50

Topic category: Help with modding (Java Edition)

Last seen on 22:39, 29. Sep 2018
Joined May 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Trouble with matching custom block colors with MC block colors
Sat, 05/19/2018 - 03:55 (edited)

I'm recreating the original The Legend of Zelda, and I have a minor issue with flammable bushes, which has turned into a minor issue with matching up colors.

My original problem was that I needed dead bushes for parts of the Overworld map, so I used MCreator to make a "Dead Leaves" block. This works very well, except that I cannot make the dead bushes flammable (which is gonna give me trouble when I get to the Western end of the map where there are rooms hidden below certain burnable dead bushes).

There are also live, green bushes which have to be burned to reveal more hidden rooms. I had been trying to figure out how to do that without also having the surrounding bushes burn away when I suddenly realized that MCreator (seemingly) only allows me to make fireproof leaves.

And so, I created a Fireproof Oak Leaves block! The new problem is, I cannot for the life of me get their green to match the Oak Leaves block in MC. I even extracted the Oak Leaves texture from MC itself, took a screenshot of the Oak Leaves block inside MC, loaded both into Photoshop side-by-side, and manually color-sampled from the screenshot and colorized the texture pixel-by-pixel.

Somehow, my custom block still renders with a slightly different green color in-game. Any ideas how to get the two blocks to have the same colors?

Different Shades of Green

Edited by Dark_Lord_Prime on Sat, 05/19/2018 - 03:55
Last seen on 14:35, 28. Apr 2019
Joined Dec 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I have no idea if you can…
Sat, 05/19/2018 - 08:24

I have no idea if you can put colourmaps to blocks.

Last seen on 11:41, 17. Oct 2020
Joined Jun 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
1. I think that in the…
Sat, 05/19/2018 - 19:30

1. I think that in the previous versions of MCreator there was an option for making blocks flammable. I don't know if using "wood", "leaves" or "cloth" as block material makes them flammable.

2. In vanilla minecraft some blocks depend on the color of the biome. Grass, for example, in the plains is green, in the swamp is dark green, in the savanna is brown-green... The same is for leaves, tall grass and some plants.

These textures in the file directory are white and change based on the biomes color.

So making a block having exactly the same texture of grass, leaves, tall grass etc. isn't possible in MCreator because you can't make a block change the color based on the biome.

I hope they fix this soon because it's weird to see green bushes in a savanna, swamp or a custom biome with strange colors.

Last seen on 16:46, 8. Sep 2020
Joined Sep 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
try using procedures to chek…
Sat, 05/19/2018 - 19:54

try using procedures to chek if the player is right clicking on the bush with flint and steel and then use the add block and select the fire block so it places fire the to the side of the bush

Last seen on 22:39, 29. Sep 2018
Joined May 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Well, yeah, I understand…
Sat, 05/19/2018 - 23:45

Well, yeah, I understand about the game coloring the greyscale textures according to the biome, but shouldn't manually coloring the texture I use in MCreator according to those exact colors in the screenshot match the game if the biome never changes?

 

Last seen on 00:21, 11. Aug 2019
Joined Aug 2013
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
If you want, you actually…
Sun, 05/20/2018 - 00:34

If you want, you actually can make it fully dynamic depending on the biome in the way grass/leaves do. It is kinda tricky, but there is a method called registerBlockColorHandler() in BlockColors class, that you can use right for that.