From 86eb9d488f6442006f7c805cece62df1bf71d34b Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 5 Jan 2017 00:54:50 +0100 Subject: [PATCH] Minecraft-style wool colors --- mods/wool/init.lua | 40 +++++++++++++------------ mods/wool/textures/wool_dark_green.png | Bin 552 -> 0 bytes mods/wool/textures/wool_light_blue.png | Bin 0 -> 5168 bytes mods/wool/textures/wool_lime.png | Bin 0 -> 4995 bytes 4 files changed, 21 insertions(+), 19 deletions(-) delete mode 100644 mods/wool/textures/wool_dark_green.png create mode 100644 mods/wool/textures/wool_light_blue.png create mode 100644 mods/wool/textures/wool_lime.png diff --git a/mods/wool/init.lua b/mods/wool/init.lua index a40f20f30..194498c76 100644 --- a/mods/wool/init.lua +++ b/mods/wool/init.lua @@ -9,33 +9,35 @@ local wool = {} -- colors, and then some recipes using more specific colors for a few non-base -- colors available. When crafting, the last recipes will be checked first. wool.dyes = { - {"white", "White", nil}, - {"grey", "Grey", "basecolor_grey"}, - {"black", "Black", "basecolor_black"}, - {"red", "Red", "basecolor_red"}, - {"yellow", "Yellow", "basecolor_yellow"}, - {"green", "Green", "basecolor_green"}, - {"cyan", "Cyan", "basecolor_cyan"}, - {"blue", "Blue", "basecolor_blue"}, - {"magenta", "Magenta", "basecolor_magenta"}, - {"orange", "Orange", "excolor_orange"}, - {"violet", "Violet", "excolor_violet"}, - {"brown", "Brown", "unicolor_dark_orange"}, - {"pink", "Pink", "unicolor_light_red"}, - {"dark_grey", "Dark Grey", "unicolor_darkgrey"}, - {"dark_green", "Dark Green", "unicolor_dark_green"}, + {"white", "white", "White", nil}, + {"grey", "dark_grey", "Grey", "unicolor_darkgrey"}, + {"silver", "grey", "Light Gray", "basecolor_grey"}, + {"black", "black", "Black", "basecolor_black"}, + {"red", "red", "Red", "basecolor_red"}, + {"yellow", "yellow", "Yellow", "basecolor_yellow"}, + {"green", "green", "Green", "unicolor_dark_green"}, + {"cyan", "cyan", "Cyan", "basecolor_cyan"}, + {"blue", "blue", "Blue", "basecolor_blue"}, + {"magenta", "magenta", "Magenta", "basecolor_magenta"}, + {"orange", "orange", "Orange", "excolor_orange"}, + {"purple", "violet", "Purple", "excolor_violet"}, + {"brown", "brown", "Brown", "unicolor_dark_orange"}, + {"pink", "pink", "Pink", "unicolor_light_red"}, + {"lime", "lime", "Lime", "basecolor_green"}, + {"light_blue", "light_blue", "Light Blue", "unicolor_light_blue"}, } for _, row in ipairs(wool.dyes) do local name = row[1] - local desc = row[2] - local craft_color_group = row[3] + local texture = row[2] + local desc = row[3] + local craft_color_group = row[4] -- Node Definition minetest.register_node("wool:"..name, { description = desc.." Wool", stack_max = 64, is_ground_content = false, - tiles = {"wool_"..name..".png"}, + tiles = {"wool_"..texture..".png"}, groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,wool=1}, sounds = default.node_sound_defaults(), }) @@ -43,7 +45,7 @@ for _, row in ipairs(wool.dyes) do description = desc.." Carpet", walkable = false, is_ground_content = false, - tiles = {"wool_"..name..".png"}, + tiles = {"wool_"..texture..".png"}, wield_image = "wool_"..name..".png", groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,carpet=1}, sounds = default.node_sound_defaults(), diff --git a/mods/wool/textures/wool_dark_green.png b/mods/wool/textures/wool_dark_green.png deleted file mode 100644 index f02bd9f193781a1b4364a5634cf9a41fd1d3e33e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 552 zcmV+@0@wYCP)$IMHVwh7Bol~HA)vYOBgpz7&%TEI#3xqQ5rl`8a-7SK2{q)SQ|iD z93cz!*8l(ks!2paR2Ufr!3mDzHV^>7YPJsBI|#D>|7I|d2SQ>9pk4lqd#g8A`*8>Ba?w!C8hP zPEDy!b7(^y4qVcqG#163~GMVi$G{VOMS; zZ1D@nrU@R#TF-pA!4}{!#7lL~x&E~OB5&Tw3J&^3+c2Tl)R=coy2X~ qwafAF3X$Z?>_}(a7Iy6-Uc~<@818|JYUd{a0000KLZ*U+IBfRsybQWXdwQ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