Move 'my_default_doors' mod from 'buildings' modpack to original

'mydoors'.
This commit is contained in:
AntumDeluge
2016-08-31 14:23:53 -07:00
parent fdadcd35d9
commit c183c804cd
25 changed files with 0 additions and 0 deletions

View File

@@ -1,2 +0,0 @@
default
mdoors

View File

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

View File

@@ -1,42 +0,0 @@
local cdoor_list = { --Number , Description , Inven Image , Image
{ "1", "Bronze Door" , "bronze", "bronze_ingot"},
{ "2", "Copper Door" , "copper", "copper_ingot"},
{ "3", "Gold Door" , "gold", "gold_ingot"},
{ "4", "Diamond Door" , "diamond", "diamond"},
{ "5", "Mese Door" , "mese", "mese_crystal"},
}
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]
mdoors.register_door("my_default_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_default_doors:door"..num.."_locked 1",
recipe = {
{"", "", ""},
{"default:"..itm, "doors:door_steel", "default:"..itm},
{"", "default:steel_ingot", ""}
}
})
end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 407 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 818 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 449 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 401 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 782 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 460 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 390 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 765 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 416 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 374 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 748 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 414 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 498 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 593 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 480 B

View File

@@ -1,42 +0,0 @@
local cdoor_list = { --Number , Description , Inven Image , Image
{ "1", "Bronze Door" , "bronze", "bronze_ingot"},
{ "2", "Copper Door" , "copper", "copper_ingot"},
{ "3", "Gold Door" , "gold", "gold_ingot"},
{ "4", "Diamond Door" , "diamond", "diamond"},
{ "5", "Mese Door" , "mese", "mese_crystal"},
}
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]
mdoors.register_door("my_default_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_default_doors:door"..num.." 1",
recipe = {
{"", "", ""},
{"default:"..itm, "doors:door_steel", "default:"..itm},
{"", "", ""}
}
})
end