Unified Dyes expands the standard dye set from 15 to up to 256 colors (depending on the object to be colored) https://content.minetest.net/packages/VanessaE/unifieddyes/
Go to file
Vanessa Ezekowitz 07101b99fe add helper function for crafting param2-colorized items
One call registers the full set of 32, 89, or 256 colors.

Pass it a recipe of the following general form

```lua
unifieddyes.register_color_craft({
        output = "mymod:colorized_node",
        type = <nil or "shapeless">
        palette = <see below>,
        neutral_node = "some_mod:neutral_node",
        recipe = {
                <see below>
        }
})
```

palette may be either "wallmounted" (32 colors), false or omitted
entirely (89 colors), or "extended" (256 colors).

The recipe section is either a shapeless list, or a standard three-line
shaped recipe, same as the regular register_craft() function.  The key
difference is two placeholder keys that are now supported:

  * if an item in the recipe is "MAIN_DYE", then Unified Dyes will, with
    each pass of its registration loop, substitute the actual "dye:foo"
    craft item in its place which corresponds with the current loop's color.
  * if an item in the recipe list is "NEUTRAL_NODE", then the value of the
    "neutral_node" field will be substituted in its place.

The expectation here is that the modder probably has some base recipe in
mind that, given no dyes, would result in a neutral, uncolored node.  This
call creates all the recipes that would be needed to craft colored versions
of that neutral node either using that base recipe with dye added, or by
crafting the neutral node with some dye after the fact.
2017-06-20 17:01:54 -04:00
locale Update and rename locale to locale/tr.txt 2015-03-02 19:36:15 +02:00
textures clean up greyscale portion of extended palette 2017-02-25 15:41:14 -05:00
.gitignore added a proper .gitignore file. 2012-07-30 17:59:49 -04:00
API.md document the API 2017-06-20 16:44:27 -04:00
LICENSE fix licensing since bucket images aren't used anymore 2014-10-04 11:40:16 -04:00
README.md link API to README 2017-06-20 17:00:46 -04:00
bottle_overlay.png OPTIMIZE _ALL_ THE TEXTURES! \:D/ 2015-01-23 14:10:13 -05:00
changelog.txt Refactored the code to use default "common" dyes 2013-04-30 06:08:34 -04:00
colors.txt first commit 2012-07-12 17:49:46 -04:00
depends.txt use current intllib API 2014-12-27 01:02:35 -05:00
description.txt Adding standard mod files 2016-03-27 21:36:36 -07:00
init.lua add helper function for crafting param2-colorized items 2017-06-20 17:01:54 -04:00
mod.conf Adding standard mod files 2016-03-27 21:36:36 -07:00

README.md

VanessaE's Unified Dyes

The purpose of this mod originally was to supply a complete set of colors for Minetest mod authors to use for colorized nodes, or to reference in recipes. Since the advent of the default dyes mod in minetest_game, this mod has become more of an extension of the default mod. Since the advent of param2 colorization, it has also become a library for general color handling.

Unified Dyes expands the standard dye set from 15 colors to 32, 89, or 256 (see the API and usage info).

Dependencies: Minetest engine version 0.4.16 or higher and a corresponding copy of minetest_game.

License: GPL 2.0 or higher.

Install: Unzip the distribution file, rename the resultant folder to just "unifieddyes", move it into Minetest's mods folder, and enable it in your world configuration.

Usage: for detailed usage information, please see the Unified Dyes Thread on the Minetest forum.

API: the full API is documented here: https://github.com/minetest-mods/unifieddyes/blob/master/API.md