Minecraftmodcustomstuff Wiki
Register
Advertisement
CS1 Custom Stuff 1

Information presented below this line is outdated syntax or information used for Custom Stuff 1. It will not work with Custom Stuff 2.

Color is an optional attribute for all types of Blocks. What this attribute does is set a color overlay onto the block's texture. This is most commonly used for determining the color of liquids as they cannot currently load texture files. This attribute can also be used to create variations of a block without taking up space on a texture file.

The attribute can be added like so:

color="XXXXXX";

The "XXXXXX" represent the hex value of a color. An easy way to find the hex value of a color is to use a graphics utility that supports hex color choosing (many WYSIWYG web-page editors have one), or if you don't have such a program available a site like www.colorpicker.com. The hex value will usually be displayed with a "#" in front of it. (ie #03FF77), but for the sake of this attribute you cannot include that character.

The overlay process is similar to how the biome color is overlayed on a default grass block. The texture of grass is normally gray, but is made green with the addition of a color overlay. When making textures with the intent of using this attribute, it is recommended that you also use mostly gray tones; although any hue added to the image will offset the overlay somewhat and can be used to add variation to what might otherwise be a mono-colored block.

Advertisement