mirror of
https://github.com/Ezhh/abriglass.git
synced 2024-08-19 19:34:03 +02:00
Completed one-way glass recipes
This commit is contained in:
parent
b50154a33c
commit
48b57ab2f9
28
crafting.lua
28
crafting.lua
@ -53,6 +53,7 @@ local dye_list = {
|
|||||||
for i in ipairs(dye_list) do
|
for i in ipairs(dye_list) do
|
||||||
local name = dye_list[i][1]
|
local name = dye_list[i][1]
|
||||||
local dye = dye_list[i][2]
|
local dye = dye_list[i][2]
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'abriglass:stained_glass_'..name..' 6',
|
output = 'abriglass:stained_glass_'..name..' 6',
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -178,24 +179,27 @@ minetest.register_craft({
|
|||||||
|
|
||||||
|
|
||||||
-- one-way recipes
|
-- one-way recipes
|
||||||
minetest.register_craft({
|
local oneway_recipe_list = {
|
||||||
output = 'abriglass:oneway_glass_desert_brick 2',
|
{"abriglass:oneway_glass_desert_brick", "default:desert_stonebrick",},
|
||||||
recipe = {
|
{"abriglass:oneway_glass_stone_brick", "default:stonebrick",},
|
||||||
{'abriglass:clear_glass', 'default:mese_crystal_fragment', 'default:desert_stonebrick' },
|
{"abriglass:oneway_glass_dark", "abriglass:oneway_wall_dark",},
|
||||||
}
|
{"abriglass:oneway_glass_pale", "abriglass:oneway_wall_pale",},
|
||||||
})
|
}
|
||||||
|
|
||||||
minetest.register_craft({
|
for i in ipairs(oneway_recipe_list) do
|
||||||
output = 'abriglass:oneway_glass_stone_brick 2',
|
local name = oneway_recipe_list[i][1]
|
||||||
|
local ingredient = oneway_recipe_list[i][2]
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = name.." 2",
|
||||||
recipe = {
|
recipe = {
|
||||||
{'abriglass:clear_glass', 'default:mese_crystal_fragment', 'default:stonebrick' },
|
{'abriglass:clear_glass', 'default:mese_crystal_fragment', ingredient },
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
-- missing crafts for:
|
-- missing crafts for:
|
||||||
-- ghost_crystal
|
-- ghost_crystal
|
||||||
-- oneway_glass_dark
|
|
||||||
-- oneway_glass_pale
|
|
||||||
-- oneway_wall_dark
|
-- oneway_wall_dark
|
||||||
-- oneway_wall_pale
|
-- oneway_wall_pale
|
||||||
|
Loading…
Reference in New Issue
Block a user