-
Notifications
You must be signed in to change notification settings - Fork 9
Color Codes for Scripts
If you've tried to set biome colors using BiomeTweaker, you may have found yourself wondering what exactly I mean by "an integer representation of an RGB hex value." Don't fret, for I am here to explain it to you!
First, you're going to want to decide on a color. You can simply google 'color picker' and you'll get something like this:
You'll want to take the 'HEX' value and convert it to a decimal number. There're plenty of sites that will do that for you, like this one. Inputting 'f7df2a' into that site gives '16241402'. This value is what you will use in your script. For example:
plains = forBiomes(1)
plains.set("grassColor", 16241402)
When you then start Minecraft again, you should see the grass is a different color. It's that easy!
Note: It may take several tries to get the right color.
BiomeTweaker has been updated to 1.18. Please see the links below. Pages for previous versions can be found above.