1
0
mirror of https://github.com/mt-mods/unifieddyes.git synced 2024-09-28 07:10:19 +02:00
Commit Graph

141 Commits

Author SHA1 Message Date
Vanessa Ezekowitz
966166b1b9 only crop the palleteidx if param2 is colorfacedir
(prevent a potential bug later: some day, maybe there
will be more than 89 colors in UD)
2017-01-28 18:19:58 -05:00
Vanessa Ezekowitz
aef03c1932 colorfdir -> is_color_fdir
(preparing for later inclusion of some kind of wallmounted palette)
2017-01-28 18:18:27 -05:00
Vanessa Ezekowitz
e146c55ca0 fix a couple more missing aliases 2017-01-28 09:37:10 -05:00
Vanessa Ezekowitz
2fcae9d17d fix several dye-handling bugs 2017-01-28 09:02:14 -05:00
Vanessa Ezekowitz
aeb179a129 API CHANGE: after_dig_node instead of on_destruct
This also fixes the case where digging a block just drops
the dye on the ground instead of putting it in the player's inv.
2017-01-28 08:05:44 -05:00
Vanessa Ezekowitz
0fbf6baa72 fix facedir not being set when simple node placement fall-through is called 2017-01-28 07:19:30 -05:00
Vanessa Ezekowitz
4622d25e76 fix wrong param2 setting 2017-01-26 19:02:55 -05:00
Vanessa Ezekowitz
3e93c10cfd handle both cases of nodes being set with facedir 2017-01-26 15:49:06 -05:00
Vanessa Ezekowitz
2959698111 remove debug statements 2017-01-26 14:21:54 -05:00
Vanessa Ezekowitz
b42376ba3d improve handling of greyscale in get-hsv function 2017-01-26 13:51:38 -05:00
Vanessa Ezekowitz
1c5d79800f add an alternate "find HSV" function.
Note that if the result is greyscale, the name ("black", "grey", ...) is
returned in the "hue" field, sat is empty string, and val is "light",
"dark", or empty string.
2017-01-26 13:42:36 -05:00
Vanessa Ezekowitz
b1ad76ab72 handle a few more color-to-grey and grey-to-color cases 2017-01-26 11:23:34 -05:00
Vanessa Ezekowitz
3f7fb1af74 Just do the node's color search manually
(to handle cases where the node has more than just the standard-format
nodename:[shade_]hue[_s50] naming, e.g. stairsplus nodes like:

nodename:stair_[shade_]hue[_s50][_some_extra_details]
2017-01-26 11:06:31 -05:00
Vanessa Ezekowitz
4f1303aac1 handle special cases for greyscale dyes and unpainted nodes 2017-01-26 07:10:48 -05:00
Vanessa Ezekowitz
1773af6868 rework how split palettes are handled 2017-01-26 06:18:37 -05:00
Vanessa Ezekowitz
1c7f403f29 add "split" palette for mods that need facedir + param2 color 2017-01-25 18:21:26 -05:00
Vanessa Ezekowitz
00459f8859 only allow placing the wielded thing if it's actually a node 2017-01-25 16:05:24 -05:00
Vanessa Ezekowitz
7c48587c6a add a few missing aliases 2017-01-25 13:19:20 -05:00
Vanessa Ezekowitz
17522711de Add some helper functions to support the new param2-style coloring
Most of the code came from cheapie's plasticbox mod
2017-01-25 12:59:49 -05:00
Vanessa Ezekowitz
127caef5b3 use current intllib API 2014-12-27 01:02:35 -05:00
Xanthin
4191f40c7c add support for intllib translation mod 2014-03-20 02:11:30 +01:00
Vanessa Ezekowitz
08fe211bde local-ize a few variables/tables 2013-12-15 13:03:38 -05:00
Vanessa Ezekowitz
9ea6469506 fix brain-o (copy&paste error) in groups for light grey 2013-08-11 23:59:16 -04:00
Vanessa Ezekowitz
6d71b346a1 removed all dye colors from the creative inventory, to reduce clutter. 2013-07-21 05:04:05 -04:00
Vanessa Ezekowitz
58d07ae30e Removed "Full" from descriptions - it's redundant if everything else says
"light", "medium", or "dark".
2013-04-30 22:20:38 -04:00
Vanessa Ezekowitz
a9c803b14f Refactored the code to use default "common" dyes
rather than directly from flowers.

This mod now depends on "default" and "dye" from the Minetest common
sub-game.  Since the default dye mod uses default flowers, this mod no
longer checks for what version of flowers you're using, or even depends
on it.

Bottle-based textures have been replaced with piles of dye powder, based
on the default red dye texture.

All dyes are obtained by crafting, not cooking, for consistency with the
default dye mod.

The somewhat-complicated method using separate "pigment" powders, glass
bottles and "liquid dye base" has been done away with.  Now it's just
dry dye powders, as with the default dye mod.

Also, got rid of the whole paint scheme, in favor of dry powders.

All old dyes, paints, and Unified Dyes pigment powders have been aliased
back to the standard dye powders.
2013-04-30 06:08:34 -04:00
Vanessa Ezekowitz
411cc8de39 Added licensing information headers and LICENSE file. 2013-02-07 01:38:34 -05:00
Vanessa Ezekowitz
04b07689da fixed missing replacements for white paint -> empty bucket
when crafting light colors.
2013-01-30 17:32:50 -05:00
Vanessa Ezekowitz
2f02d5c345 fixed incorrect groups setting for blue dye. 2012-08-19 21:05:00 -04:00
Vanessa Ezekowitz
1c8945b9d8 forgot to add in the recipes to make blue and violet dyes after adding the
special case for the existence of geraniums.
2012-08-05 23:41:22 -04:00
Vanessa Ezekowitz
48356ea59c Added a "version" check for the flowers dependency:
If the flowers mod defines "flowers:flower_geranium" (as is the case with my update of 2012-08-01), then those will
be used to get blue pigment powder, and violas will produce violet powder, both of which can be directly used to
create their respective liquid dye colors.  If it is not defined (e.g. the user has an older version of the flowers
mod), then violas produce blue dye powder.  Violet dye can still be formed by mixing blue and magenta or blue and
red dyes, as before.
2012-08-01 19:14:49 -04:00
Vanessa Ezekowitz
821e64db90 Changed glass bottle recycling so that it uses the vessel mod's "glass
fragments" in the process instead of direct-to-glass-blocks.
2012-07-31 20:12:00 -04:00
Vanessa Ezekowitz
d581057356 Reworked unifiedyes to use my vessels mod 2012-07-26 17:09:38 -04:00
Vanessa Ezekowitz
e826407580 moved groups setting for black to the dye instead of the carbon black powder. 2012-07-25 21:29:08 -04:00
Vanessa Ezekowitz
8359677e4e Replaced missing craftitem entries and got rid of some redundant code
left over from last update.  Added group settings for all dyes according
to recently-published standard.  Fixed a few typos in item descriptions, and
straightened up capitalization.
2012-07-25 20:55:45 -04:00
Vanessa Ezekowitz
14d8a71d18 Changes how glass bottles work and are made.
Now, you craft 5 glass blocks in a U shape, which gives 15 bottles.
Use 6 plus jungle grass and water bucket to get 6 dye base,
craft three to get back a glass block.
2012-07-24 21:55:35 -04:00
Vanessa Ezekowitz
bd11247b0c Added some extra steps in the dye-making process (increases difficulty). 2012-07-24 17:56:03 -04:00
Vanessa Ezekowitz
711206099b Added a new set of colors: "light" (brightness turned up to 150% over the
full/base colors - no low-saturation versions here).  Re-generated all of the
dyes using my gentextures.sh script, to keep them consistent.  Re-added the
gentextures script to this mod, it's too useful not to include it.
2012-07-16 10:53:56 -04:00
Vanessa Ezekowitz
f63d48b6f2 fixed some missing commas caused byt he previous groups= change. 2012-07-13 23:23:39 -04:00
Vanessa Ezekowitz
398b39068b Added groups = {dyes=1}, to all register_craftitem calls, to make it
easier for worlflow's palette/easel mod to categorize the dyes.
2012-07-12 21:54:43 -04:00
Vanessa Ezekowitz
02313f504d first commit 2012-07-12 17:49:46 -04:00