Added future doors
3
my_future_doors/depends.txt
Normal file
@ -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")
|
||||
|
||||
|
39
my_future_doors/locked.lua
Normal file
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
BIN
my_future_doors/textures/mydoors_future1_bottom.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
my_future_doors/textures/mydoors_future1_edge.png
Normal file
After Width: | Height: | Size: 110 B |
BIN
my_future_doors/textures/mydoors_future1_inv.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
my_future_doors/textures/mydoors_future1_top.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
my_future_doors/textures/mydoors_future2_bottom.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
my_future_doors/textures/mydoors_future2_edge.png
Normal file
After Width: | Height: | Size: 110 B |
BIN
my_future_doors/textures/mydoors_future2_inv.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
my_future_doors/textures/mydoors_future2_top.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
my_future_doors/textures/mydoors_future3_bottom.png
Normal file
After Width: | Height: | Size: 1002 B |
BIN
my_future_doors/textures/mydoors_future3_edge.png
Normal file
After Width: | Height: | Size: 110 B |
BIN
my_future_doors/textures/mydoors_future3_inv.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
my_future_doors/textures/mydoors_future3_top.png
Normal file
After Width: | Height: | Size: 1008 B |
40
my_future_doors/unlocked.lua
Normal file
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|