2021-08-08 12:39:20 +02:00
|
|
|
------------------------------------------------------
|
|
|
|
-- ___ _ --
|
|
|
|
-- | __| |___ _ __ _____ __ _____ _ _ --
|
|
|
|
-- | _|| / -_) '_ \/ _ \ V V / -_) '_| --
|
|
|
|
-- |___|_\___| .__/\___/\_/\_/\___|_| --
|
|
|
|
-- _ _ |_| _ _ _ --
|
|
|
|
-- | | (_)__ _| |_| |_(_)_ _ __ _ --
|
|
|
|
-- | |__| / _` | ' \ _| | ' \/ _` | --
|
|
|
|
-- |____|_\__, |_||_\__|_|_||_\__, | --
|
|
|
|
-- |___/ |___/ --
|
|
|
|
------------------------------------------------------
|
|
|
|
-- Crafting Shades --
|
|
|
|
------------------------------------------------------
|
2021-08-11 12:25:00 +02:00
|
|
|
-- see elepower_papi >> external_nodes_items.lua for explanation
|
|
|
|
-- shorten table ref
|
|
|
|
local epi = ele.external.ing
|
|
|
|
|
|
|
|
local stick = epi.stick
|
|
|
|
local paper = epi.paper
|
|
|
|
local dye_red = epi.dye_red
|
|
|
|
local dye_blue = epi.dye_blue
|
2021-08-08 12:39:20 +02:00
|
|
|
local paper_red = "elepower_lighting:paper_red"
|
|
|
|
local paper_blue = "elepower_lighting:paper_blue"
|
|
|
|
|
2021-08-11 12:25:00 +02:00
|
|
|
local colors = {[paper] = "",["elepower_lighting:paper_red"] = "_red",["elepower_lighting:paper_blue"] = "_blue"}
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_lighting:paper_red 3",
|
|
|
|
type = "shapeless",
|
|
|
|
recipe = {paper,paper,paper,dye_red},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_lighting:paper_blue 3",
|
|
|
|
type = "shapeless",
|
|
|
|
recipe = {paper,paper,paper,dye_blue},
|
|
|
|
})
|
2021-08-08 12:39:20 +02:00
|
|
|
|
|
|
|
for paper,color in pairs(colors) do
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_lighting:decor_shade"..color.."_1 2",
|
|
|
|
recipe = {
|
|
|
|
{stick,paper,stick},
|
|
|
|
{paper,stick,paper},
|
|
|
|
{stick,paper,stick}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_lighting:decor_shade"..color.."_2 2",
|
|
|
|
recipe = {
|
|
|
|
{stick,paper,stick},
|
|
|
|
{stick,paper,stick},
|
|
|
|
{stick,paper,stick}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_lighting:decor_shade"..color.."_3 2",
|
|
|
|
recipe = {
|
|
|
|
{stick,paper,stick},
|
|
|
|
{stick,stick,stick},
|
|
|
|
{stick,paper,stick}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_lighting:decor_shade"..color.."_4 2",
|
|
|
|
recipe = {
|
|
|
|
{stick,stick,stick},
|
|
|
|
{stick,paper,stick},
|
|
|
|
{stick,stick,stick}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_lighting:decor_shade"..color.."_5 2",
|
|
|
|
recipe = {
|
|
|
|
{paper,stick,paper},
|
|
|
|
{stick,paper,stick},
|
|
|
|
{paper,stick,paper}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
end
|