Added more doors and crafts

This commit is contained in:
DonBatman 2015-08-27 09:40:09 -07:00
parent afc2f3901f
commit 3fbc403552
49 changed files with 296 additions and 574 deletions

View File

@ -11,6 +11,7 @@ local cdoor_list = { --Number , Description , Inven Image , Image
-- { "10", "Castle Door 10" , "door10" , "door10"},
-- { "11", "Castle Door 11" , "door11" , "door11"},
-- { "12", "Castle Door 12" , "door12" , "door12"},
-- { "13", "Castle Door 13" , "door13" , "door13"},
}
@ -131,6 +132,14 @@ minetest.register_craft({
{"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door13_locked 1",
recipe = {
{"my_door_wood:wood_brown", "my_door_wood:wood_brown", "default:steel_ingot"},
{"my_door_wood:wood_brown", "my_door_wood:wood_brown", "default:steel_ingot"},
{"my_door_wood:wood_brown", "my_door_wood:wood_brown", "default:steel_ingot"}
}
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 974 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1022 B

View File

@ -11,6 +11,7 @@ local cdoor_list = { --Number , Description , Inven Image , Image
{ "10", "Castle Door 10" , "door10" , "door10"},
{ "11", "Castle Door 11" , "door11" , "door11"},
{ "12", "Castle Door 12" , "door12" , "door12"},
{ "13", "Castle Door 13" , "door13" , "door13"},
}
@ -131,6 +132,13 @@ minetest.register_craft({
{"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door13 1",
recipe = {
{"my_door_wood:wood_brown", "my_door_wood:wood_brown", "default:steel_ingot"},
{"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""},
{"my_door_wood:wood_brown", "my_door_wood:wood_brown", "default:steel_ingot"}
}
})

View File

@ -1,105 +0,0 @@
minetest.register_node("my_castle_doors:wood_red", {
description = "Red Stained Wood",
drawtype = "normal",
paramtype = "light",
tiles = {"mydoors_red_wood.png"},
paramtype = "light",
groups = {cracky = 2, choppy = 2},
})
minetest.register_node("my_castle_doors:wood_grey", {
description = "Grey Stained Wood",
drawtype = "normal",
paramtype = "light",
tiles = {"mydoors_grey_wood.png"},
paramtype = "light",
groups = {cracky = 2, choppy = 2},
})
minetest.register_node("my_castle_doors:wood_dark_grey", {
description = "Dark Grey Stained Wood",
drawtype = "normal",
paramtype = "light",
tiles = {"mydoors_dark_grey_wood.png"},
paramtype = "light",
groups = {cracky = 2, choppy = 2},
})
minetest.register_node("my_castle_doors:wood_brown", {
description = "Brown Stained Wood",
drawtype = "normal",
paramtype = "light",
tiles = {"mydoors_brown_wood.png"},
paramtype = "light",
groups = {cracky = 2, choppy = 2},
})
minetest.register_node("my_castle_doors:wood_white", {
description = "White Stained Wood",
drawtype = "normal",
paramtype = "light",
tiles = {"mydoors_white_wood.png"},
paramtype = "light",
groups = {cracky = 2, choppy = 2},
})
minetest.register_node("my_castle_doors:wood_clear", {
description = "Clear Stained Wood",
drawtype = "normal",
paramtype = "light",
tiles = {"mydoors_clear_wood.png"},
paramtype = "light",
groups = {cracky = 2, choppy = 2},
})
-- Crafts
minetest.register_craft({
output = "my_castle_doors:wood_red 1",
recipe = {
{"default:wood", "", ""},
{"dye:red", "", ""},
{"", "", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:wood_grey 1",
recipe = {
{"default:wood", "", ""},
{"dye:grey", "", ""},
{"", "", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:wood_dark_grey 1",
recipe = {
{"default:wood", "", ""},
{"dye:dark_grey", "", ""},
{"", "", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:wood_brown 1",
recipe = {
{"default:wood", "", ""},
{"dye:brown", "", ""},
{"", "", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:wood_white 1",
recipe = {
{"default:wood", "", ""},
{"dye:white", "", ""},
{"", "", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:wood_clear 1",
recipe = {
{"default:wood", "", ""},
{"default:glass", "", ""},
{"", "", ""}
}
})

View File

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

View File

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

View File

@ -0,0 +1,47 @@
local cdoor_list = { --Number , Description , Inven Image , Image
{ "1", "Cottage Door 1" , "door1", "door1"},
-- { "2", "Cottage Door 2" , "door2" , "door2"},
}
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]
local lock = cdoor_list[i][5]
doors.register_door("my_cottage_doors:door"..num.."_locked", {
description = desc.." Locked",
inventory_image = "mycdoors_"..inv.."_inv.png",
groups = {choppy=2,cracky=2,door=1},
tiles_bottom = {"mycdoors_"..img.."_bottom.png", "mycdoors_"..img.."_edge.png"},
tiles_top = {"mycdoors_"..img.."_top.png", "mycdoors_"..img.."_edge.png"},
only_placer_can_open = true,
})
end
-- Crafts
minetest.register_craft({
output = "my_cottage_doors:door1_locked 1",
recipe = {
{"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", "default:steel_ingot"},
{"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", "default:steel_ingot"},
{"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", "default:steel_ingot"}
}
})
minetest.register_craft({
output = "my_cottage_doors:door2_locked 1",
recipe = {
{"my_door_wood:wood_red", "my_door_wood:wood_red", ""},
{"my_door_wood:wood_red", "my_door_wood:wood_red", "default:steel_ingot"},
{"my_door_wood:wood_red", "my_door_wood:wood_red", ""}
}
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1,47 @@
local cdoor_list = { --Number , Description , Inven Image , Image
-- { "1", "Cottage Door 1" , "door1", "door1"},
{ "2", "Cottage Door 2" , "door2" , "door2"},
}
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]
local lock = cdoor_list[i][5]
doors.register_door("my_cottage_doors:door"..num, {
description = desc.." Locked",
inventory_image = "mycdoors_"..inv.."_inv.png",
groups = {choppy=2,cracky=2,door=1},
tiles_bottom = {"mycdoors_"..img.."_bottom.png", "mycdoors_"..img.."_edge.png"},
tiles_top = {"mycdoors_"..img.."_top.png", "mycdoors_"..img.."_edge.png"},
only_placer_can_open = false,
})
end
-- Crafts
minetest.register_craft({
output = "my_cottage_doors:door1 1",
recipe = {
{"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", "default:steel_ingot"},
{"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", ""},
{"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", "default:steel_ingot"}
}
})
minetest.register_craft({
output = "my_cottage_doors:door2 1",
recipe = {
{"my_door_wood:wood_red", "my_door_wood:wood_red", ""},
{"my_door_wood:wood_red", "my_door_wood:wood_red", ""},
{"my_door_wood:wood_red", "my_door_wood:wood_red", ""}
}
})

View File

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

View File

@ -1,7 +1,8 @@
local fdoor_list = { --Number , Description , Inven Image , Image
{ "1" , "Fancy Door 1" , "door1" , "door1"},
-- { "2" , "Fancy Door 2" , "door2" , "door2"},
-- { "3" , "Fancy Door 3" , "door3" , "door3"},
-- { "3" , "Fancy Door 3" , "door3" , "door3"},
{ "4" , "Fancy Door 4" , "door4" , "door4"},
}
@ -49,4 +50,15 @@ minetest.register_craft({
{"my_door_wood:wood_white", "default:glass", ""}
}
})
minetest.register_craft({
output = "my_fancy_doors:door4_locked 1",
recipe = {
{"my_door_wood:wood_red", "my_door_wood:wood_dark_grey", ""},
{"my_door_wood:wood_red", "my_door_wood:wood_red", "default:steel_ingot"},
{"my_door_wood:wood_red", "my_door_wood:wood_dark_grey", ""}
}
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 502 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 B

View File

@ -49,4 +49,12 @@ minetest.register_craft({
{"my_door_wood:wood_white", "default:glass", ""}
}
})
minetest.register_craft({
output = "my_fancy_doors:door4 1",
recipe = {
{"my_door_wood:wood_red", "my_door_wood:wood_dark_grey", ""},
{"my_door_wood:wood_red", "my_door_wood:wood_red", ""},
{"my_door_wood:wood_red", "my_door_wood:wood_dark_grey", ""}
}
})

View File

@ -1,52 +0,0 @@
local door_list = { --Number , Description , Inven Image , Image
-- { "1" , "Fancy Door 1" , "door1" , "door1"},
{ "2" , "Fancy Door 2" , "door2" , "door2"},
{ "3" , "Fancy Door 3" , "door3" , "door3"},
}
for i in ipairs(door_list) do
local num = door_list[i][1]
local desc = door_list[i][2]
local inv = door_list[i][3]
local img = door_list[i][4]
doors.register_door("my_fancy_doors:door"..num, {
description = desc,
inventory_image = "myfdoors_"..inv.."_inv.png",
groups = {choppy=2,cracky=2,door=1},
tiles_bottom = {"myfdoors_"..img.."_bottom.png", "myfdoors_"..img.."_edge.png"},
tiles_top = {"myfdoors_"..img.."_top.png", "myfdoors_"..img.."_edge.png"},
only_placer_can_open = false,
})
end
-- Crafts
minetest.register_craft({
output = "my_fancy_doors:door1 1",
recipe = {
{"my_door_wood:wood_yellow", "default:glass", ""},
{"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", ""},
{"my_door_wood:wood_yellow", "default:glass", ""}
}
})
minetest.register_craft({
output = "my_fancy_doors:door2 1",
recipe = {
{"my_door_wood:wood_yellow", "default:glass", ""},
{"my_door_wood:wood_yellow", "default:steel_ingot", ""},
{"my_door_wood:wood_yellow", "default:glass", ""}
}
})
minetest.register_craft({
output = "my_fancy_doors:door3 1",
recipe = {
{"my_door_wood:wood_white", "default:glass", ""},
{"my_door_wood:wood_white", "my_door_wood:wood_white", ""},
{"my_door_wood:wood_white", "default:glass", ""}
}
})

View File

@ -1,4 +1,121 @@
dofile(minetest.get_modpath("my_hidden_doors").."/locked.lua")
--dofile(minetest.get_modpath("my_hidden_doors").."/unlocked.lua")
local hdoor_list = { --Number , Description , default image
{ "cobble" , "Hidden Cobble Door", "default_cobble"},
{ "stone" , "Hidden Stone Door", "default_stone"},
{ "wood", "Hidden Wood Door", "default_wood"},
{ "stone_brick", "Hidden Stone Brick Door", "default_stone_brick"},
{ "brick", "Hidden Brick Door", "default_brick"},
{ "desert_cobble", "Hidden Desert Cobble Door", "default_desert_cobble"},
{ "furnace", "Hidden Furnace Door" , "mydoors_furnace" , "door7"},
{ "chest", "Hidden Chest Door" , "mydoors_chest" , "door8"},
{ "bookshelf", "Hidden Bookshelf Door" , "mydoors_bookshelf" , "door9"},
}
for i in ipairs(hdoor_list) do
local img = hdoor_list[i][1]
local desc = hdoor_list[i][2]
local dimg = hdoor_list[i][3]
doors.register_door("my_hidden_doors:hidden_door"..img, {
description = desc.." Locked",
inventory_image = "mydoors_"..img.."_inv.png",
groups = {choppy=2,cracky=2,door=1},
tiles_bottom = {dimg..".png^[transformFX", "mydoors_"..img.."_edge.png"},
tiles_top = {dimg..".png^[transformFX", "mydoors_"..img.."_edge.png"},
only_placer_can_open = false,
})
end
doors.register_door("my_hidden_doors:hidden_door_grey", {
description = "Grey Door Locked",
inventory_image = "mydoors_grey_inv.png",
groups = {choppy=2,cracky=2,door=1},
tiles_bottom = {"mydoors_grey_bottom.png^[transformFX", "mydoors_grey_edge.png"},
tiles_top = {"mydoors_grey_top.png^[transformFX", "mydoors_grey_edge.png"},
only_placer_can_open = false,
})
-- Crafts
minetest.register_craft({
output = "my_hidden_doors:hidden_doorcobble 1",
recipe = {
{"my_hidden_doors:hidden_door_grey", "default:cobble", ""},
{"", "", ""},
{"", "", ""}
}
})
minetest.register_craft({
output = "my_hidden_doors:hidden_doorstone 1",
recipe = {
{"my_hidden_doors:hidden_door_grey", "default:stone", ""},
{"", "", ""},
{"", "", ""}
}
})
minetest.register_craft({
output = "my_hidden_doors:hidden_doorwood 1",
recipe = {
{"my_hidden_doors:hidden_door_grey", "default:wood", ""},
{"", "", ""},
{"", "", ""}
}
})
minetest.register_craft({
output = "my_hidden_doors:hidden_doorstone_brick 1",
recipe = {
{"my_hidden_doors:hidden_door_grey", "default:stonebrick", ""},
{"", "", ""},
{"", "", ""}
}
})
minetest.register_craft({
output = "my_hidden_doors:hidden_doordesert_cobble 1",
recipe = {
{"my_hidden_doors:hidden_door_grey", "default:desert_cobble", ""},
{"", "", ""},
{"", "", ""}
}
})
minetest.register_craft({
output = "my_hidden_doors:hidden_doorfurnace 1",
recipe = {
{"my_hidden_doors:hidden_door_grey", "default:furnace", ""},
{"", "", ""},
{"", "", ""}
}
})
minetest.register_craft({
output = "my_hidden_doors:hidden_doorchest 1",
recipe = {
{"my_hidden_doors:hidden_door_grey", "default:chest", ""},
{"", "", ""},
{"", "", ""}
}
})
minetest.register_craft({
output = "my_hidden_doors:hidden_doorbookshelf 1",
recipe = {
{"my_hidden_doors:hidden_door_grey", "default:bookshelf", ""},
{"", "", ""},
{"", "", ""}
}
})
minetest.register_craft({
output = "my_hidden_doors:hidden_doorbrick 1",
recipe = {
{"my_hidden_doors:hidden_door_grey", "default:brick", ""},
{"", "", ""},
{"", "", ""}
}
})
minetest.register_craft({
output = "my_hidden_doors:hidden_door_grey 1",
recipe = {
{"my_door_wood:wood_dark_grey", "my_door_wood:wood_dark_grey", ""},
{"my_door_wood:wood_dark_grey", "my_door_wood:wood_dark_grey", ""},
{"my_door_wood:wood_dark_grey", "my_door_wood:wood_dark_grey", ""}
}
})

View File

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

View File

@ -1,134 +0,0 @@
local hdoor_list = { --Number , Description , default image
{ "cobble" , "Hidden Cobble Door", "default_cobble"},
{ "stone" , "Hidden Stone Door", "default_stone"},
{ "wood", "Hidden Wood Door", "default_wood"},
{ "stone_brick", "Hidden Stone Brick Door", "default_stone_brick"},
{ "brick", "Hidden Brick Door", "default_brick"},
{ "desert_cobble", "Hidden Desert Cobble Door", "default_desert_cobble"},
-- { "7", "Castle Door 7" , "door7" , "door7"},
-- { "8", "Castle Door 8" , "door8" , "door8"},
-- { "9", "Castle Door 9" , "door9" , "door9"},
-- { "10", "Castle Door 10" , "door10" , "door10"},
-- { "11", "Castle Door 11" , "door11" , "door11"},
-- { "12", "Castle Door 12" , "door12" , "door12"},
}
for i in ipairs(hdoor_list) do
local img = hdoor_list[i][1]
local desc = hdoor_list[i][2]
local dimg = hdoor_list[i][3]
doors.register_door("my_hidden_doors:hidden_door"..img.."_locked", {
description = desc.." Locked",
inventory_image = "mydoors_"..img.."_inv.png",
groups = {choppy=2,cracky=2,door=1},
tiles_bottom = {dimg..".png^[transformFX", "mydoors_"..img.."_edge.png"},
tiles_top = {dimg..".png^[transformFX", "mydoors_"..img.."_edge.png"},
only_placer_can_open = true,
})
end
--[[
-- Crafts
minetest.register_craft({
output = "my_castle_doors:door1_locked 1",
recipe = {
{"default:steel_ingot", "default:glass", ""},
{"my_door_wood:wood_dark_grey", "my_door_wood:wood_dark_grey", "default:steel_ingot"},
{"my_door_wood:wood_dark_grey", "default:steel_ingot", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door2_locked 1",
recipe = {
{"default:steel_ingot", "default:glass", ""},
{"my_door_wood:wood_red", "my_door_wood:wood_red", "default:steel_ingot"},
{"my_door_wood:wood_red", "default:steel_ingot", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door3_locked 1",
recipe = {
{"my_door_wood:wood_yellow", "default:steel_ingot", ""},
{"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", "default:steel_ingot"},
{"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door4_locked 1",
recipe = {
{"my_door_wood:wood_brown", "default:steel_ingot", ""},
{"my_door_wood:wood_brown", "my_door_wood:wood_brown", "default:steel_ingot"},
{"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door5_locked 1",
recipe = {
{"my_door_wood:wood_yellow", "default:steel_ingot", ""},
{"my_door_wood:wood_white", "my_door_wood:wood_yellow", "default:steel_ingot"},
{"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door6_locked 1",
recipe = {
{"my_door_wood:wood_grey", "my_door_wood:wood_grey", ""},
{"my_door_wood:wood_grey", "default:steel_ingot", "default:steel_ingot"},
{"my_door_wood:wood_grey", "my_door_wood:wood_grey", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door7_locked 1",
recipe = {
{"my_door_wood:wood_red", "my_door_wood:wood_red", ""},
{"my_door_wood:wood_red", "default:steel_ingot", "default:steel_ingot"},
{"my_door_wood:wood_red", "my_door_wood:wood_red", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door8_locked 1",
recipe = {
{"default:steel_ingot", "default:steel_ingot", ""},
{"my_door_wood:wood_dark_grey", "my_door_wood:wood_dark_grey", "default:steel_ingot"},
{"default:steel_ingot", "default:steel_ingot", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door9_locked 1",
recipe = {
{"default:steel_ingot", "my_door_wood:wood_yellow", ""},
{"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", "default:steel_ingot"},
{"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door10_locked 1",
recipe = {
{"my_door_wood:wood_red", "default:steel_ingot", ""},
{"my_door_wood:wood_red", "my_door_wood:wood_red", "default:steel_ingot"},
{"my_door_wood:wood_red", "my_door_wood:wood_red", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door11_locked 1",
recipe = {
{"my_door_wood:wood_brown", "default:steel_ingot", ""},
{"my_door_wood:wood_brown", "my_door_wood:wood_brown", "default:steel_ingot"},
{"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door12_locked 1",
recipe = {
{"my_door_wood:wood_brown", "default:steel_ingot", ""},
{"my_door_wood:wood_grey", "my_door_wood:wood_brown", "default:steel_ingot"},
{"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""}
}
})
--]]

View File

@ -1,134 +0,0 @@
local hdoor_list = { --Number , Description , default image
{ "cobble" , "Hidden Cobble Door", "default_cobble"},
{ "stone" , "Hidden Stone Door", "default_stone"},
{ "wood", "Hidden Wood Door", "default_wood"},
{ "stone_brick", "Hidden Stone Brick Door", "default_stone_brick"},
{ "brick", "Hidden Brick Door", "default_brick"},
{ "desert_cobble", "Hidden Desert Cobble Door", "default_desert_cobble"},
-- { "7", "Castle Door 7" , "door7" , "door7"},
-- { "8", "Castle Door 8" , "door8" , "door8"},
-- { "9", "Castle Door 9" , "door9" , "door9"},
-- { "10", "Castle Door 10" , "door10" , "door10"},
-- { "11", "Castle Door 11" , "door11" , "door11"},
-- { "12", "Castle Door 12" , "door12" , "door12"},
}
for i in ipairs(hdoor_list) do
local img = hdoor_list[i][1]
local desc = hdoor_list[i][2]
local dimg = hdoor_list[i][3]
doors.register_door("my_hidden_doors:hidden_door"..img.."_locked", {
description = desc.." Locked",
inventory_image = "mydoors_"..img.."_inv.png",
groups = {choppy=2,cracky=2,door=1},
tiles_bottom = {dimg..".png[transformFX", "mydoors_"..img.."_edge.png"},
tiles_top = {dimg..".png[transformFX", "mydoors_"..img.."_edge.png"},
only_placer_can_open = true,
})
end
--[[
-- Crafts
minetest.register_craft({
output = "my_castle_doors:door1_locked 1",
recipe = {
{"default:steel_ingot", "default:glass", ""},
{"my_door_wood:wood_dark_grey", "my_door_wood:wood_dark_grey", "default:steel_ingot"},
{"my_door_wood:wood_dark_grey", "default:steel_ingot", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door2_locked 1",
recipe = {
{"default:steel_ingot", "default:glass", ""},
{"my_door_wood:wood_red", "my_door_wood:wood_red", "default:steel_ingot"},
{"my_door_wood:wood_red", "default:steel_ingot", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door3_locked 1",
recipe = {
{"my_door_wood:wood_yellow", "default:steel_ingot", ""},
{"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", "default:steel_ingot"},
{"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door4_locked 1",
recipe = {
{"my_door_wood:wood_brown", "default:steel_ingot", ""},
{"my_door_wood:wood_brown", "my_door_wood:wood_brown", "default:steel_ingot"},
{"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door5_locked 1",
recipe = {
{"my_door_wood:wood_yellow", "default:steel_ingot", ""},
{"my_door_wood:wood_white", "my_door_wood:wood_yellow", "default:steel_ingot"},
{"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door6_locked 1",
recipe = {
{"my_door_wood:wood_grey", "my_door_wood:wood_grey", ""},
{"my_door_wood:wood_grey", "default:steel_ingot", "default:steel_ingot"},
{"my_door_wood:wood_grey", "my_door_wood:wood_grey", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door7_locked 1",
recipe = {
{"my_door_wood:wood_red", "my_door_wood:wood_red", ""},
{"my_door_wood:wood_red", "default:steel_ingot", "default:steel_ingot"},
{"my_door_wood:wood_red", "my_door_wood:wood_red", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door8_locked 1",
recipe = {
{"default:steel_ingot", "default:steel_ingot", ""},
{"my_door_wood:wood_dark_grey", "my_door_wood:wood_dark_grey", "default:steel_ingot"},
{"default:steel_ingot", "default:steel_ingot", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door9_locked 1",
recipe = {
{"default:steel_ingot", "my_door_wood:wood_yellow", ""},
{"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", "default:steel_ingot"},
{"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door10_locked 1",
recipe = {
{"my_door_wood:wood_red", "default:steel_ingot", ""},
{"my_door_wood:wood_red", "my_door_wood:wood_red", "default:steel_ingot"},
{"my_door_wood:wood_red", "my_door_wood:wood_red", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door11_locked 1",
recipe = {
{"my_door_wood:wood_brown", "default:steel_ingot", ""},
{"my_door_wood:wood_brown", "my_door_wood:wood_brown", "default:steel_ingot"},
{"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door12_locked 1",
recipe = {
{"my_door_wood:wood_brown", "default:steel_ingot", ""},
{"my_door_wood:wood_grey", "my_door_wood:wood_brown", "default:steel_ingot"},
{"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""}
}
})
--]]

Binary file not shown.

After

Width:  |  Height:  |  Size: 767 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 874 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 672 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 747 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 826 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -1,136 +0,0 @@
local cdoor_list = { --Number , Description , Inven Image , Image
-- { "1" , "Castle Door 1" , "door1", "door1"},
-- { "2" , "Castle Door 2" , "door2" , "door2"},
{ "3", "Castle Door 3" , "door3" , "door3"},
{ "4", "Castle Door 4" , "door4" , "door4"},
{ "5", "Castle Door 5" , "door5" , "door5"},
-- { "6", "Castle Door 6" , "door6" , "door6"},
-- { "7", "Castle Door 7" , "door7" , "door7"},
-- { "8", "Castle Door 8" , "door8" , "door8"},
{ "9", "Castle Door 9" , "door9" , "door9"},
{ "10", "Castle Door 10" , "door10" , "door10"},
{ "11", "Castle Door 11" , "door11" , "door11"},
{ "12", "Castle Door 12" , "door12" , "door12"},
}
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]
local lock = cdoor_list[i][5]
doors.register_door("my_castle_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_castle_doors:door1 1",
recipe = {
{"default:steel_ingot", "default:glass", ""},
{"my_door_wood:wood_dark_grey", "my_door_wood:wood_dark_grey", ""},
{"my_door_wood:wood_dark_grey", "default:steel_ingot", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door2 1",
recipe = {
{"default:steel_ingot", "default:glass", ""},
{"my_door_wood:wood_red", "my_door_wood:wood_red", ""},
{"my_door_wood:wood_red", "default:steel_ingot", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door3 1",
recipe = {
{"my_door_wood:wood_yellow", "default:steel_ingot", ""},
{"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", ""},
{"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door4 1",
recipe = {
{"my_door_wood:wood_brown", "default:steel_ingot", ""},
{"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""},
{"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door5 1",
recipe = {
{"my_door_wood:wood_yellow", "default:steel_ingot", ""},
{"my_door_wood:wood_white", "my_door_wood:wood_yellow", ""},
{"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door6 1",
recipe = {
{"my_door_wood:wood_grey", "my_door_wood:wood_grey", ""},
{"my_door_wood:wood_grey", "default:steel_ingot", ""},
{"my_door_wood:wood_grey", "my_door_wood:wood_grey", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door7 1",
recipe = {
{"my_door_wood:wood_red", "my_door_wood:wood_red", ""},
{"my_door_wood:wood_red", "default:steel_ingot", ""},
{"my_door_wood:wood_red", "my_door_wood:wood_red", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door8 1",
recipe = {
{"default:steel_ingot", "default:steel_ingot", ""},
{"my_door_wood:wood_dark_grey", "my_door_wood:wood_dark_grey", ""},
{"default:steel_ingot", "default:steel_ingot", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door9 1",
recipe = {
{"default:steel_ingot", "my_door_wood:wood_yellow", ""},
{"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", ""},
{"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door10 1",
recipe = {
{"my_door_wood:wood_red", "default:steel_ingot", ""},
{"my_door_wood:wood_red", "my_door_wood:wood_red", ""},
{"my_door_wood:wood_red", "my_door_wood:wood_red", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door11 1",
recipe = {
{"my_door_wood:wood_brown", "default:steel_ingot", ""},
{"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""},
{"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""}
}
})
minetest.register_craft({
output = "my_castle_doors:door12 1",
recipe = {
{"my_door_wood:wood_brown", "default:steel_ingot", ""},
{"my_door_wood:wood_grey", "my_door_wood:wood_brown", ""},
{"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""}
}
})

View File

@ -1,3 +1,4 @@
default
doors
my_door_wood
wool

View File

@ -3,7 +3,7 @@ local mdoor_list = { --Number , Description , Inven Image , Image
-- { "2" , "Misc Door 2" , "door2" , "door2"},
{ "3" , "Misc Door 3" , "door3" , "door3"},
{ "4" , "Misc Door 4" , "door4" , "door4"},
{ "5" , "Misc Door 5" , "door5" , "door5"},
-- { "5" , "Misc Door 5" , "door5" , "door5"},
{ "6" , "Misc Door 6" , "door6" , "door6"},
}
@ -60,3 +60,22 @@ minetest.register_craft({
{"default:cobble", "default:cobble", ""}
}
})
minetest.register_craft({
output = "my_misc_doors:door5_locked 1",
recipe = {
{"my_door_wood:wood_white", "wool:red", ""},
{"my_door_wood:wood_white", "my_door_wood:wood_white", "default:steel_ingot"},
{"my_door_wood:wood_white", "wool:red", ""}
}
})
minetest.register_craft({
output = "my_misc_doors:door6_locked 1",
recipe = {
{"default:steel_ingot", "default:iron_lump", ""},
{"default:steel_ingot", "default:iron_lump", "default:steel_ingot"},
{"default:steel_ingot", "default:iron_lump", ""}
}
})

View File

@ -59,3 +59,19 @@ minetest.register_craft({
{"default:cobble", "default:cobble", ""}
}
})
minetest.register_craft({
output = "my_misc_doors:door5 1",
recipe = {
{"my_door_wood:wood_white", "wool:red", ""},
{"my_door_wood:wood_white", "my_door_wood:wood_white", ""},
{"my_door_wood:wood_white", "wool:red", ""}
}
})
minetest.register_craft({
output = "my_misc_doors:door6 1",
recipe = {
{"default:steel_ingot", "default:iron_lump", ""},
{"default:steel_ingot", "default:iron_lump", ""},
{"default:steel_ingot", "default:iron_lump", ""}
}
})

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 KiB