Skip to content

Color Codes for Scripts

Chris edited this page Jun 15, 2017 · 2 revisions

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.


BiomeTweaker 1.18

Features and Carvers

Custom Mob Effects

Example Scripts

Clone this wiki locally