hexcol
4096 Coloured blocks for minetest.
This mod contains solid colour nodes for every possible 3 digit HEX colour value. From #000
to #FFF
.
Update: This mod now uses colour palettes. so there are 16 nodes instead of 4096. and each node uses a 256 colour palette.
Here is how it works. For the red channel, the blocks are changed, for the blue and green, the param2 is changed.
Lets say you place down the colour #49f
the node that is placed down is hexcol:4xx
the last 2 hex digits are converted to decimal and placed in the param2 therefore defining a colour from one of the 16 palette images generated by the PHP script in this repo.
This mod is currently only for use with creative mode. There is no way to obtain the nodes in survival. Anyone is welcome to make a mod to provide such a method.
Settings
hexcol_inv
(bool Default: true) Show hexcol nodes in creative inventory.
Features
- LOTS of colours good for decorative builds such as pixel art.
- Small. Mod code is small.
Drawbacks
- Floods the creative inventory if hexcol_inv is true (default)
License
Code is licensed under the MIT license. Image assets are CC0. Though the block texture is just a pain white image so I dont think I could copyright it even if I wanted to lol.