forked from mtcontrib/scifi_nodes
add recipes for sliding doors
This commit is contained in:
parent
ca51ce0b97
commit
bd7150df49
18
doors.lua
18
doors.lua
|
@ -15,10 +15,10 @@
|
|||
|
||||
|
||||
local doors = {
|
||||
{"scifi_nodes:door2a","scifi_nodes:door2b","scifi_nodes:door2c","scifi_nodes:door2d","2","black"},
|
||||
{"scifi_nodes:door3a","scifi_nodes:door3b","scifi_nodes:door3c","scifi_nodes:door3d","3","white"},
|
||||
{"scifi_nodes:door4a","scifi_nodes:door4b","scifi_nodes:door4c","scifi_nodes:door4d","4","green"},
|
||||
{"scifi_nodes:door1a","scifi_nodes:door1b","scifi_nodes:door1c","scifi_nodes:door1d","1","Doom"},}
|
||||
{"scifi_nodes:door2a","scifi_nodes:door2b","scifi_nodes:door2c","scifi_nodes:door2d","2","black", "doors:door_steel"},
|
||||
{"scifi_nodes:door3a","scifi_nodes:door3b","scifi_nodes:door3c","scifi_nodes:door3d","3","white", "doors:door_glass"},
|
||||
{"scifi_nodes:door4a","scifi_nodes:door4b","scifi_nodes:door4c","scifi_nodes:door4d","4","green", "doors:door_wood"},
|
||||
{"scifi_nodes:door1a","scifi_nodes:door1b","scifi_nodes:door1c","scifi_nodes:door1d","1","Doom", "doors:door_obsidian_glass"},}
|
||||
|
||||
for i in ipairs (doors) do
|
||||
local doora = doors[i][1]
|
||||
|
@ -27,6 +27,16 @@ local doorc = doors[i][3]
|
|||
local doord = doors[i][4]
|
||||
local num = doors[i][5]
|
||||
local des = doors[i][6]
|
||||
local base_ingredient = doors[i][7]
|
||||
|
||||
minetest.register_craft({
|
||||
output = doora .. " 2",
|
||||
recipe = {
|
||||
{"scifi_nodes:white2", base_ingredient, "scifi_nodes:white2"},
|
||||
{"scifi_nodes:black", base_ingredient, "scifi_nodes:black"}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
function onplace(itemstack, placer, pointed_thing)
|
||||
local pos1 = pointed_thing.above
|
||||
|
|
Loading…
Reference in New Issue
Block a user