1234567891011121314151617181920212223242526 |
- 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
|