Move 'my_old_doors' mod from 'buildings' modpack to original 'mydoors'.

This commit is contained in:
AntumDeluge
2016-08-31 14:31:57 -07:00
parent 3826c01e33
commit 77a03e265a
20 changed files with 0 additions and 0 deletions

View File

@@ -1,4 +0,0 @@
default
mdoors
coloredwood
craft_guide?

View File

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

View File

@@ -1,57 +0,0 @@
local cdoor_list = { --Number , Description , Inven Image , Image
{ "1", "Old Door 1" , "old1", "old1"},
{ "2", "Old Door 2" , "old2" , "old2"},
{ "3", "Old Door 3" , "old3" , "old3"},
{ "4", "Old Door 4" , "old4" , "old4"},
}
for i in ipairs(cdoor_list) do
local num = cdoor_list[i][1]
local desc = cdoor_list[i][2]
local inv = cdoor_list[i][3]
local img = cdoor_list[i][4]
mdoors.register_door("my_old_doors:door"..num.."_locked", {
description = desc.." Locked",
inventory_image = "mydoors_"..inv.."_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,
})
end
-- Crafts
minetest.register_craft({
output = "my_old_doors:door1_locked 1",
recipe = {
{"default:glass", "coloredwood:wood_yellow", ""},
{"coloredwood:wood_yellow", "coloredwood:wood_yellow", "default:steel_ingot"},
{"coloredwood:wood_yellow", "coloredwood:wood_yellow", ""}
}
})
minetest.register_craft({
output = "my_old_doors:door2_locked 1",
recipe = {
{"default:glass", "coloredwood:wood_red", ""},
{"coloredwood:wood_red", "coloredwood:wood_red", "default:steel_ingot"},
{"coloredwood:wood_red", "coloredwood:wood_red", ""}
}
})
minetest.register_craft({
output = "my_old_doors:door3_locked 1",
recipe = {
{"default:glass", "coloredwood:wood_gray", ""},
{"coloredwood:wood_gray", "coloredwood:wood_gray", "default:steel_ingot"},
{"coloredwood:wood_gray", "coloredwood:wood_gray", ""}
}
})
minetest.register_craft({
output = "my_old_doors:door4_locked 1",
recipe = {
{"coloredwood:wood_red", "coloredwood:wood_red", ""},
{"coloredwood:wood_red", "dye:black", "default:steel_ingot"},
{"coloredwood:wood_red", "coloredwood:wood_red", ""}
}
})

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 687 B

View File

@@ -1,59 +0,0 @@
local cdoor_list = { --Number , Description , Inven Image , Image
-- { "1", "Old Door 1" , "old1", "old1"},
-- { "2", "Old Door 2" , "old2" , "old2"},
-- { "3", "Old Door 3" , "old3" , "old3"},
-- { "4", "Old Door 4" , "old4" , "old4"},
}
for i in ipairs(cdoor_list) do
local num = cdoor_list[i][1]
local desc = cdoor_list[i][2]
local inv = cdoor_list[i][3]
local img = cdoor_list[i][4]
mdoors.register_door("my_old_doors:door"..num, {
description = desc,
inventory_image = "mydoors_"..inv.."_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,
})
end
-- Crafts
minetest.register_craft({
output = "my_old_doors:door1 1",
recipe = {
{"default:glass", "coloredwood:wood_yellow", ""},
{"coloredwood:wood_yellow", "coloredwood:wood_yellow", ""},
{"coloredwood:wood_yellow", "coloredwood:wood_yellow", ""}
}
})
minetest.register_craft({
output = "my_old_doors:door2 1",
recipe = {
{"default:glass", "coloredwood:wood_red", ""},
{"coloredwood:wood_red", "coloredwood:wood_red", ""},
{"coloredwood:wood_red", "coloredwood:wood_red", ""}
}
})
minetest.register_craft({
output = "my_old_doors:door3 1",
recipe = {
{"default:glass", "coloredwood:wood_gray", ""},
{"coloredwood:wood_gray", "coloredwood:wood_gray", ""},
{"coloredwood:wood_gray", "coloredwood:wood_gray", ""}
}
})
minetest.register_craft({
output = "my_old_doors:door4 1",
recipe = {
{"coloredwood:wood_red", "coloredwood:wood_red", ""},
{"coloredwood:wood_red", "dye:black", ""},
{"coloredwood:wood_red", "coloredwood:wood_red", ""}
}
})