forked from VoxeLibre/VoxeLibre
No more group crafts for colored wool
This commit is contained in:
parent
16bdcc5ea3
commit
27b88f3a70
|
@ -9,29 +9,30 @@ 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", "White", nil},
|
{"white", "white", "White", nil, "basecolor_white"},
|
||||||
{"grey", "dark_grey", "Grey", "unicolor_darkgrey"},
|
{"grey", "dark_grey", "Grey", "dark_grey", "unicolor_darkgrey"},
|
||||||
{"silver", "grey", "Light Grey", "basecolor_grey"},
|
{"silver", "grey", "Light Grey", "grey", "basecolor_grey"},
|
||||||
{"black", "black", "Black", "basecolor_black"},
|
{"black", "black", "Black", "black", "basecolor_black"},
|
||||||
{"red", "red", "Red", "basecolor_red"},
|
{"red", "red", "Red", "red", "basecolor_red"},
|
||||||
{"yellow", "yellow", "Yellow", "basecolor_yellow"},
|
{"yellow", "yellow", "Yellow", "yellow", "basecolor_yellow"},
|
||||||
{"green", "green", "Green", "unicolor_dark_green"},
|
{"green", "green", "Green", "dark_green", "unicolor_dark_green"},
|
||||||
{"cyan", "cyan", "Cyan", "basecolor_cyan"},
|
{"cyan", "cyan", "Cyan", "cyan", "basecolor_cyan"},
|
||||||
{"blue", "blue", "Blue", "basecolor_blue"},
|
{"blue", "blue", "Blue", "blue", "basecolor_blue"},
|
||||||
{"magenta", "magenta", "Magenta", "basecolor_magenta"},
|
{"magenta", "magenta", "Magenta", "magenta", "basecolor_magenta"},
|
||||||
{"orange", "orange", "Orange", "excolor_orange"},
|
{"orange", "orange", "Orange", "orange", "excolor_orange"},
|
||||||
{"purple", "violet", "Purple", "excolor_violet"},
|
{"purple", "violet", "Purple", "violet", "excolor_violet"},
|
||||||
{"brown", "brown", "Brown", "unicolor_dark_orange"},
|
{"brown", "brown", "Brown", "brown", "unicolor_dark_orange"},
|
||||||
{"pink", "pink", "Pink", "unicolor_light_red"},
|
{"pink", "pink", "Pink", "pink", "unicolor_light_red"},
|
||||||
{"lime", "lime", "Lime", "basecolor_green"},
|
{"lime", "lime", "Lime", "green", "basecolor_green"},
|
||||||
{"light_blue", "light_blue", "Light Blue", "unicolor_light_blue"},
|
{"light_blue", "light_blue", "Light Blue", "lightblue", "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 texture = row[2]
|
local texture = row[2]
|
||||||
local desc = row[3]
|
local desc = row[3]
|
||||||
local craft_color_group = row[4]
|
local dye = row[4]
|
||||||
|
local color_group = row[5]
|
||||||
-- Node Definition
|
-- Node Definition
|
||||||
minetest.register_node("mcl_wool:"..name, {
|
minetest.register_node("mcl_wool:"..name, {
|
||||||
description = desc.." Wool",
|
description = desc.." Wool",
|
||||||
|
@ -67,12 +68,12 @@ for _, row in ipairs(wool.dyes) do
|
||||||
_mcl_hardness = 0.1,
|
_mcl_hardness = 0.1,
|
||||||
_mcl_blast_resistance = 0.5,
|
_mcl_blast_resistance = 0.5,
|
||||||
})
|
})
|
||||||
if craft_color_group then
|
if dye then
|
||||||
-- Crafting from dye and white wool
|
-- Crafting from dye and white wool
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = 'mcl_wool:'..name,
|
output = 'mcl_wool:'..name,
|
||||||
recipe = {'group:dye,'..craft_color_group, 'mcl_wool:white'},
|
recipe = {"mcl_dye:"..dye, 'mcl_wool:white'},
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'mcl_wool:'..name..'_carpet 3',
|
output = 'mcl_wool:'..name..'_carpet 3',
|
||||||
|
|
Loading…
Reference in New Issue