Added future doors

This commit is contained in:
DonBatman 2015-08-28 15:34:08 -07:00
parent 3bf90be162
commit a5089bd53c
16 changed files with 86 additions and 0 deletions

@ -0,0 +1,3 @@
default
doors
my_door_wood

4
my_future_doors/init.lua Normal file

@ -0,0 +1,4 @@
--dofile(minetest.get_modpath("my_future_doors").."/locked.lua")
dofile(minetest.get_modpath("my_future_doors").."/unlocked.lua")

@ -0,0 +1,39 @@
local cdoor_list = {
{ "1", "Future Door 1" , "future1", "default:stone"},
{ "2", "Future Door 2" , "future2", "default:cobble"},
{ "3", "Future Door 3" , "future3", "dye:black"},
}
for i in ipairs(cdoor_list) do
local num = cdoor_list[i][1]
local desc = cdoor_list[i][2]
local img = cdoor_list[i][3]
local itm = cdoor_list[i][4]
doors.register_door("my_future_doors:door"..num.."_locked", {
description = desc.." Locked",
inventory_image = "mydoors_"..img.."_inv.png",
groups = {choppy=2,cracky=2,door=1},
tiles_bottom = {"mydoors_"..img.."_bottom.png", "mydoors_"..img.."_edge.png"},
tiles_top = {"mydoors_"..img.."_top.png", "mydoors_"..img.."_edge.png"},
only_placer_can_open = true,
})
-- Crafts
minetest.register_craft({
output = "my_future_doors:door"..num.."_locked 1",
recipe = {
{"my_door_wood:wood_dark_grey", "my_door_wood:wood_dark_grey", ""},
{"my_door_wood:wood_dark_grey", itm, "default:steel_ingot"},
{"my_door_wood:wood_dark_grey", "my_door_wood:wood_dark_grey", ""}
}
})
end

Binary file not shown.

After

(image error) Size: 2.1 KiB

Binary file not shown.

After

(image error) Size: 110 B

Binary file not shown.

After

(image error) Size: 4.3 KiB

Binary file not shown.

After

(image error) Size: 2.1 KiB

Binary file not shown.

After

(image error) Size: 2.2 KiB

Binary file not shown.

After

(image error) Size: 110 B

Binary file not shown.

After

(image error) Size: 4.8 KiB

Binary file not shown.

After

(image error) Size: 2.5 KiB

Binary file not shown.

After

(image error) Size: 1002 B

Binary file not shown.

After

(image error) Size: 110 B

Binary file not shown.

After

(image error) Size: 1.9 KiB

Binary file not shown.

After

(image error) Size: 1008 B

@ -0,0 +1,40 @@
local cdoor_list = {
{ "1", "Future Door 1" , "future1", "default:stone"},
{ "2", "Future Door 2" , "future2", "default:cobble"},
{ "3", "Future Door 3" , "future3", "dye:black"},
}
for i in ipairs(cdoor_list) do
local num = cdoor_list[i][1]
local desc = cdoor_list[i][2]
local img = cdoor_list[i][3]
local itm = cdoor_list[i][4]
doors.register_door("my_future_doors:door"..num, {
description = desc,
inventory_image = "mydoors_"..img.."_inv.png",
groups = {choppy=2,cracky=2,door=1},
tiles_bottom = {"mydoors_"..img.."_bottom.png", "mydoors_"..img.."_edge.png"},
tiles_top = {"mydoors_"..img.."_top.png", "mydoors_"..img.."_edge.png"},
only_placer_can_open = false,
})
-- Crafts
minetest.register_craft({
output = "my_future_doors:door"..num.." 1",
recipe = {
{"my_door_wood:wood_dark_grey", "my_door_wood:wood_dark_grey", ""},
{"my_door_wood:wood_dark_grey", itm, ""},
{"my_door_wood:wood_dark_grey", "my_door_wood:wood_dark_grey", ""}
}
})
end