You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
772 B
25 lines
772 B
local dye_table = dye.dyes |
|
|
|
for i in ipairs(dye_table) do |
|
local name = dye_table[i][1] |
|
local desc = dye_table[i][2] |
|
local hex = dye_table[i][3] |
|
|
|
minetest.register_craftitem('furniture:fabric_'..name, { |
|
description = (desc..' Fabric'), |
|
inventory_image = 'furniture_fabric.png^[multiply:'..hex, |
|
groups = {fabric=1} |
|
}) |
|
|
|
minetest.register_craftitem('furniture:thread_'..name, { |
|
description = (desc..' Spool of Thread'), |
|
inventory_image = '(furniture_thread.png^[multiply:'..hex..')^furniture_thread_mask.png', |
|
groups = {thread=1} |
|
}) |
|
|
|
minetest.register_craftitem('furniture:cushion_'..name, { |
|
description = (desc..' Cushion'), |
|
inventory_image = 'furniture_cushion_pad_inv.png^[multiply:'..hex, |
|
}) |
|
|
|
end
|
|
|