forked from VoxeLibre/VoxeLibre
Minecraft-style wool colors
This commit is contained in:
parent
0f671ea624
commit
86eb9d488f
|
@ -9,33 +9,35 @@ local wool = {}
|
||||||
-- colors, and then some recipes using more specific colors for a few non-base
|
-- 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.
|
-- colors available. When crafting, the last recipes will be checked first.
|
||||||
wool.dyes = {
|
wool.dyes = {
|
||||||
{"white", "White", nil},
|
{"white", "white", "White", nil},
|
||||||
{"grey", "Grey", "basecolor_grey"},
|
{"grey", "dark_grey", "Grey", "unicolor_darkgrey"},
|
||||||
{"black", "Black", "basecolor_black"},
|
{"silver", "grey", "Light Gray", "basecolor_grey"},
|
||||||
{"red", "Red", "basecolor_red"},
|
{"black", "black", "Black", "basecolor_black"},
|
||||||
{"yellow", "Yellow", "basecolor_yellow"},
|
{"red", "red", "Red", "basecolor_red"},
|
||||||
{"green", "Green", "basecolor_green"},
|
{"yellow", "yellow", "Yellow", "basecolor_yellow"},
|
||||||
{"cyan", "Cyan", "basecolor_cyan"},
|
{"green", "green", "Green", "unicolor_dark_green"},
|
||||||
{"blue", "Blue", "basecolor_blue"},
|
{"cyan", "cyan", "Cyan", "basecolor_cyan"},
|
||||||
{"magenta", "Magenta", "basecolor_magenta"},
|
{"blue", "blue", "Blue", "basecolor_blue"},
|
||||||
{"orange", "Orange", "excolor_orange"},
|
{"magenta", "magenta", "Magenta", "basecolor_magenta"},
|
||||||
{"violet", "Violet", "excolor_violet"},
|
{"orange", "orange", "Orange", "excolor_orange"},
|
||||||
{"brown", "Brown", "unicolor_dark_orange"},
|
{"purple", "violet", "Purple", "excolor_violet"},
|
||||||
{"pink", "Pink", "unicolor_light_red"},
|
{"brown", "brown", "Brown", "unicolor_dark_orange"},
|
||||||
{"dark_grey", "Dark Grey", "unicolor_darkgrey"},
|
{"pink", "pink", "Pink", "unicolor_light_red"},
|
||||||
{"dark_green", "Dark Green", "unicolor_dark_green"},
|
{"lime", "lime", "Lime", "basecolor_green"},
|
||||||
|
{"light_blue", "light_blue", "Light Blue", "unicolor_light_blue"},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, row in ipairs(wool.dyes) do
|
for _, row in ipairs(wool.dyes) do
|
||||||
local name = row[1]
|
local name = row[1]
|
||||||
local desc = row[2]
|
local texture = row[2]
|
||||||
local craft_color_group = row[3]
|
local desc = row[3]
|
||||||
|
local craft_color_group = row[4]
|
||||||
-- Node Definition
|
-- Node Definition
|
||||||
minetest.register_node("wool:"..name, {
|
minetest.register_node("wool:"..name, {
|
||||||
description = desc.." Wool",
|
description = desc.." Wool",
|
||||||
stack_max = 64,
|
stack_max = 64,
|
||||||
is_ground_content = false,
|
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},
|
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,wool=1},
|
||||||
sounds = default.node_sound_defaults(),
|
sounds = default.node_sound_defaults(),
|
||||||
})
|
})
|
||||||
|
@ -43,7 +45,7 @@ for _, row in ipairs(wool.dyes) do
|
||||||
description = desc.." Carpet",
|
description = desc.." Carpet",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
tiles = {"wool_"..name..".png"},
|
tiles = {"wool_"..texture..".png"},
|
||||||
wield_image = "wool_"..name..".png",
|
wield_image = "wool_"..name..".png",
|
||||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,carpet=1},
|
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,carpet=1},
|
||||||
sounds = default.node_sound_defaults(),
|
sounds = default.node_sound_defaults(),
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 552 B |
Binary file not shown.
After Width: | Height: | Size: 5.0 KiB |
Binary file not shown.
After Width: | Height: | Size: 4.9 KiB |
Loading…
Reference in New Issue