Started by
geni_o_o_
on
Topic category: Help with Minecraft modding (Java Edition)
Is there any way to make a block change color depending on its height ?
Like a procedure that sets the tint to another color when its at a certain height, idk.
I use MCreator 2023.1 and its a 1.19.2 Mod
I would love to get some help
Edited by geni_o_o_ on Sun, 04/02/2023 - 16:20
Yes, this procedure can work. You need to create one bloc for each color your bloc (I call
basic_bloc
) can have. When the player destroy one of these blocs (I callbloc_color[number]
), they have to drop thebasic_bloc
.Than, wrote this procedure (I'm french, some translations can be wrong)
number 1
, number 2 etc... are numbers like 10, 20 etc... You can place what you want. I my procedure,number 1
is smaller thannumber 2
,number 2
is smaller thannumber 3
etc...Thanks! @TheDragon'sSon I will try that!
Hope it will work, and tell me if something didn't work
I didn't try it, but I used it in a way you told me.
I just added a few blocks with different colors and then use them in that way.
Thanks for your help!