Add recipes

master
ezhh 2017-06-28 23:17:15 +01:00
parent 103f284ed3
commit 931a29427c
1 changed files with 27 additions and 0 deletions

View File

@ -25,4 +25,31 @@ if minetest.get_modpath("caverealms") then
})
end
else
-- recipes when caverealms not present
local recipe_list = {
{"black", "black",}, {"blue", "blue",},
{"cyan", "cyan",}, {"green", "green",},
{"magenta", "magenta",}, {"orange", "orange",},
{"purple", "violet",}, {"red", "red",},
{"yellow", "yellow",}, {"white", "white",},
}
for _, item in pairs(recipe_list) do
local colour = item[1]
local ingredient = item[2]
minetest.register_craft({
output = "abritorch:torch_"..colour.." 4",
recipe = {
{"default:torch", "", "default:torch" },
{"", "dye:"..ingredient, "" },
{"default:torch", "", "default:torch" },
}
})
end
end