summaryrefslogtreecommitdiff
path: root/locale/ms.txt
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-06-20 05:02:53 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-06-20 17:01:54 -0400
commit07101b99fee40092c1738907d660185f06a32092 (patch)
treeb8d4a2cc6b5f563e6cfbb1eda4987c2bb5daa72d /locale/ms.txt
parent133bc06e3d422506e21e22cddf1bd3607bd83bb0 (diff)
downloadunifieddyes-07101b99fee40092c1738907d660185f06a32092.tar
unifieddyes-07101b99fee40092c1738907d660185f06a32092.tar.gz
unifieddyes-07101b99fee40092c1738907d660185f06a32092.tar.bz2
unifieddyes-07101b99fee40092c1738907d660185f06a32092.tar.xz
unifieddyes-07101b99fee40092c1738907d660185f06a32092.zip
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.
Diffstat (limited to 'locale/ms.txt')
0 files changed, 0 insertions, 0 deletions