Major rewrite. Will conflict with old mydoors mod.
6
init.lua
@ -1,6 +0,0 @@
|
||||
|
||||
dofile(minetest.get_modpath("mydoors").."/wood.lua")
|
||||
dofile(minetest.get_modpath("mydoors").."/locked.lua")
|
||||
dofile(minetest.get_modpath("mydoors").."/unlocked.lua")
|
||||
|
||||
|
99
locked.lua
@ -1,99 +0,0 @@
|
||||
local door_list = { --Number , Description , Inven Image , Image , Is Locked
|
||||
{ "1" , "Circle" , "door1", "door1" , "true"},
|
||||
{ "2" , "Wood Circle" , "door2" , "door2" , "false"},
|
||||
{ "3" , "Wood Glass" , "door3" , "door3" , "false"},
|
||||
-- { "4" , "Wood Glass 2" , "door4" , "door4" , "false"},
|
||||
-- { "5", "White" , "door5" , "door5" , "false"},
|
||||
{ "6", "Medevil 1" , "door6" , "door6" , "true"},
|
||||
{ "7", "Medevil 2" , "door7" , "door7" , "true"},
|
||||
{ "8", "Medevil 3" , "door8" , "door8" , "true"},
|
||||
}
|
||||
|
||||
|
||||
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]
|
||||
local lock = door_list[i][5]
|
||||
|
||||
|
||||
doors.register_door("mydoors:door"..num.."_locked", {
|
||||
description = desc.." Door Locked",
|
||||
inventory_image = inv.."_inv.png",
|
||||
groups = {choppy=2,cracky=2,door=1},
|
||||
tiles_bottom = {img.."_bottom.png", img.."_edge.png"},
|
||||
tiles_top = {img.."_top.png", img.."_edge.png"},
|
||||
only_placer_can_open = true,
|
||||
})
|
||||
end
|
||||
|
||||
-- Crafts
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mydoors:door1_locked 1",
|
||||
recipe = {
|
||||
{"default:steel_ingot", "default:glass", ""},
|
||||
{"mydoors:wood_dark_grey", "mydoors:wood_dark_grey", "default:steel_ingot"},
|
||||
{"mydoors:wood_dark_grey", "default:steel_ingot", ""}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mydoors:door2_locked 1",
|
||||
recipe = {
|
||||
{"default:steel_ingot", "default:glass", ""},
|
||||
{"mydoors:wood_red", "mydoors:wood_red", "default:steel_ingot"},
|
||||
{"mydoors:wood_red", "default:steel_ingot", ""}
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "mydoors:door3_locked 1",
|
||||
recipe = {
|
||||
{"mydoors:wood_clear", "default:glass", ""},
|
||||
{"mydoors:wood_clear", "mydoors:wood_clear", "default:steel_ingot"},
|
||||
{"mydoors:wood_clear", "default:glass", ""}
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "mydoors:door4_locked 1",
|
||||
recipe = {
|
||||
{"default:glass", "mydoors:wood_clear", ""},
|
||||
{"mydoors:wood_clear", "mydoors:wood_clear", "default:steel_ingot"},
|
||||
{"default:glass", "mydoors:wood_clear", ""}
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "mydoors:door5_locked 1",
|
||||
recipe = {
|
||||
{"mydoors:wood_white", "default:glass", ""},
|
||||
{"mydoors:wood_white", "mydoors:wood_white", "default:steel_ingot"},
|
||||
{"mydoors:wood_white", "default:glass", ""}
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "mydoors:door6_locked 1",
|
||||
recipe = {
|
||||
{"mydoors:wood_grey", "mydoors:wood_grey", ""},
|
||||
{"mydoors:wood_grey", "default:steel_ingot", "default:steel_ingot"},
|
||||
{"mydoors:wood_grey", "mydoors:wood_grey", ""}
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "mydoors:door7_locked 1",
|
||||
recipe = {
|
||||
{"mydoors:wood_red", "mydoors:wood_red", ""},
|
||||
{"mydoors:wood_red", "default:steel_ingot", "default:steel_ingot"},
|
||||
{"mydoors:wood_red", "mydoors:wood_red", ""}
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "mydoors:door8_locked 1",
|
||||
recipe = {
|
||||
{"default:steel_ingot", "default:steel_ingot", ""},
|
||||
{"mydoors:wood_dark_grey", "mydoors:wood_dark_grey", "default:steel_ingot"},
|
||||
{"default:steel_ingot", "default:steel_ingot", ""}
|
||||
}
|
||||
})
|
||||
|
||||
|
0
modpack.txt
Normal file
@ -1,2 +1,3 @@
|
||||
default
|
||||
doors
|
||||
my_door_wood
|
4
my_castle_doors/init.lua
Normal file
@ -0,0 +1,4 @@
|
||||
dofile(minetest.get_modpath("my_castle_doors").."/locked.lua")
|
||||
dofile(minetest.get_modpath("my_castle_doors").."/unlocked.lua")
|
||||
|
||||
|
136
my_castle_doors/locked.lua
Normal file
@ -0,0 +1,136 @@
|
||||
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.."_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_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", ""}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 243 B After Width: | Height: | Size: 243 B |
Before Width: | Height: | Size: 286 B After Width: | Height: | Size: 286 B |
Before Width: | Height: | Size: 230 B After Width: | Height: | Size: 230 B |
BIN
my_castle_doors/textures/mydoors_door10_bottom.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
my_castle_doors/textures/mydoors_door10_edge.png
Normal file
After Width: | Height: | Size: 109 B |
BIN
my_castle_doors/textures/mydoors_door10_inv.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
my_castle_doors/textures/mydoors_door10_top.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
my_castle_doors/textures/mydoors_door11_bottom.png
Normal file
After Width: | Height: | Size: 762 B |
BIN
my_castle_doors/textures/mydoors_door11_edge.png
Normal file
After Width: | Height: | Size: 109 B |
BIN
my_castle_doors/textures/mydoors_door11_inv.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
my_castle_doors/textures/mydoors_door11_top.png
Normal file
After Width: | Height: | Size: 768 B |
BIN
my_castle_doors/textures/mydoors_door12_bottom.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
my_castle_doors/textures/mydoors_door12_edge.png
Normal file
After Width: | Height: | Size: 109 B |
BIN
my_castle_doors/textures/mydoors_door12_inv.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
my_castle_doors/textures/mydoors_door12_top.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 820 B After Width: | Height: | Size: 820 B |
Before Width: | Height: | Size: 109 B After Width: | Height: | Size: 109 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 109 B After Width: | Height: | Size: 109 B |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
BIN
my_castle_doors/textures/mydoors_door3_bottom.png
Normal file
After Width: | Height: | Size: 650 B |
BIN
my_castle_doors/textures/mydoors_door3_edge.png
Normal file
After Width: | Height: | Size: 70 B |
BIN
my_castle_doors/textures/mydoors_door3_inv.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
my_castle_doors/textures/mydoors_door3_top.png
Normal file
After Width: | Height: | Size: 638 B |
BIN
my_castle_doors/textures/mydoors_door4_bottom.png
Normal file
After Width: | Height: | Size: 584 B |
BIN
my_castle_doors/textures/mydoors_door4_edge.png
Normal file
After Width: | Height: | Size: 128 B |
BIN
my_castle_doors/textures/mydoors_door4_inv.png
Normal file
After Width: | Height: | Size: 914 B |
BIN
my_castle_doors/textures/mydoors_door4_top.png
Normal file
After Width: | Height: | Size: 576 B |
BIN
my_castle_doors/textures/mydoors_door5_bottom.png
Normal file
After Width: | Height: | Size: 704 B |
BIN
my_castle_doors/textures/mydoors_door5_edge.png
Normal file
After Width: | Height: | Size: 128 B |
BIN
my_castle_doors/textures/mydoors_door5_inv.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
my_castle_doors/textures/mydoors_door5_top.png
Normal file
After Width: | Height: | Size: 700 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 109 B After Width: | Height: | Size: 109 B |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 890 B After Width: | Height: | Size: 890 B |
Before Width: | Height: | Size: 163 B After Width: | Height: | Size: 163 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 946 B After Width: | Height: | Size: 946 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 109 B After Width: | Height: | Size: 109 B |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
BIN
my_castle_doors/textures/mydoors_door9_bottom.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
my_castle_doors/textures/mydoors_door9_edge.png
Normal file
After Width: | Height: | Size: 109 B |
BIN
my_castle_doors/textures/mydoors_door9_inv.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
my_castle_doors/textures/mydoors_door9_top.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 257 B After Width: | Height: | Size: 257 B |
Before Width: | Height: | Size: 263 B After Width: | Height: | Size: 263 B |
Before Width: | Height: | Size: 222 B After Width: | Height: | Size: 222 B |
136
my_castle_doors/unlocked.lua
Normal file
@ -0,0 +1,136 @@
|
||||
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", ""}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
minetest.register_node("mydoors:wood_red", {
|
||||
minetest.register_node("my_castle_doors:wood_red", {
|
||||
description = "Red Stained Wood",
|
||||
drawtype = "normal",
|
||||
paramtype = "light",
|
||||
@ -7,7 +7,7 @@ minetest.register_node("mydoors:wood_red", {
|
||||
groups = {cracky = 2, choppy = 2},
|
||||
|
||||
})
|
||||
minetest.register_node("mydoors:wood_grey", {
|
||||
minetest.register_node("my_castle_doors:wood_grey", {
|
||||
description = "Grey Stained Wood",
|
||||
drawtype = "normal",
|
||||
paramtype = "light",
|
||||
@ -16,7 +16,7 @@ minetest.register_node("mydoors:wood_grey", {
|
||||
groups = {cracky = 2, choppy = 2},
|
||||
|
||||
})
|
||||
minetest.register_node("mydoors:wood_dark_grey", {
|
||||
minetest.register_node("my_castle_doors:wood_dark_grey", {
|
||||
description = "Dark Grey Stained Wood",
|
||||
drawtype = "normal",
|
||||
paramtype = "light",
|
||||
@ -25,7 +25,7 @@ minetest.register_node("mydoors:wood_dark_grey", {
|
||||
groups = {cracky = 2, choppy = 2},
|
||||
|
||||
})
|
||||
minetest.register_node("mydoors:wood_brown", {
|
||||
minetest.register_node("my_castle_doors:wood_brown", {
|
||||
description = "Brown Stained Wood",
|
||||
drawtype = "normal",
|
||||
paramtype = "light",
|
||||
@ -34,7 +34,7 @@ minetest.register_node("mydoors:wood_brown", {
|
||||
groups = {cracky = 2, choppy = 2},
|
||||
|
||||
})
|
||||
minetest.register_node("mydoors:wood_white", {
|
||||
minetest.register_node("my_castle_doors:wood_white", {
|
||||
description = "White Stained Wood",
|
||||
drawtype = "normal",
|
||||
paramtype = "light",
|
||||
@ -43,7 +43,7 @@ minetest.register_node("mydoors:wood_white", {
|
||||
groups = {cracky = 2, choppy = 2},
|
||||
|
||||
})
|
||||
minetest.register_node("mydoors:wood_clear", {
|
||||
minetest.register_node("my_castle_doors:wood_clear", {
|
||||
description = "Clear Stained Wood",
|
||||
drawtype = "normal",
|
||||
paramtype = "light",
|
||||
@ -56,7 +56,7 @@ minetest.register_node("mydoors:wood_clear", {
|
||||
-- Crafts
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mydoors:wood_red 1",
|
||||
output = "my_castle_doors:wood_red 1",
|
||||
recipe = {
|
||||
{"default:wood", "", ""},
|
||||
{"dye:red", "", ""},
|
||||
@ -64,7 +64,7 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "mydoors:wood_grey 1",
|
||||
output = "my_castle_doors:wood_grey 1",
|
||||
recipe = {
|
||||
{"default:wood", "", ""},
|
||||
{"dye:grey", "", ""},
|
||||
@ -72,7 +72,7 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "mydoors:wood_dark_grey 1",
|
||||
output = "my_castle_doors:wood_dark_grey 1",
|
||||
recipe = {
|
||||
{"default:wood", "", ""},
|
||||
{"dye:dark_grey", "", ""},
|
||||
@ -80,7 +80,7 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "mydoors:wood_brown 1",
|
||||
output = "my_castle_doors:wood_brown 1",
|
||||
recipe = {
|
||||
{"default:wood", "", ""},
|
||||
{"dye:brown", "", ""},
|
||||
@ -88,7 +88,7 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "mydoors:wood_white 1",
|
||||
output = "my_castle_doors:wood_white 1",
|
||||
recipe = {
|
||||
{"default:wood", "", ""},
|
||||
{"dye:white", "", ""},
|
||||
@ -96,7 +96,7 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "mydoors:wood_clear 1",
|
||||
output = "my_castle_doors:wood_clear 1",
|
||||
recipe = {
|
||||
{"default:wood", "", ""},
|
||||
{"default:glass", "", ""},
|
37
my_door_wood/init.lua
Normal file
@ -0,0 +1,37 @@
|
||||
local door_wood = { -- color, desc, image
|
||||
{"red", "Red Stained", "red"},
|
||||
{"grey", "Grey Stained", "grey"},
|
||||
{"dark_grey", "Dark Grey Stained", "dark_grey"},
|
||||
{"brown", "Brown Stained", "brown"},
|
||||
{"white", "White Stained", "white"},
|
||||
{"yellow", "Clear Stained", "yellow"},
|
||||
}
|
||||
for i in ipairs(door_wood) do
|
||||
local color = door_wood[i][1]
|
||||
local desc = door_wood[i][2]
|
||||
local img = door_wood[i][3]
|
||||
|
||||
minetest.register_node("my_door_wood:wood_"..color, {
|
||||
description = desc.." Wood",
|
||||
drawtype = "normal",
|
||||
paramtype = "light",
|
||||
tiles = {"mydoors_"..img.."_wood.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2, choppy = 2},
|
||||
|
||||
})
|
||||
|
||||
-- Crafts
|
||||
|
||||
minetest.register_craft({
|
||||
output = "my_door_wood:wood_"..color,
|
||||
recipe = {
|
||||
{"default:wood", "", ""},
|
||||
{"dye:"..color, "", ""},
|
||||
{"", "", ""}
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
|
BIN
my_door_wood/textures/mydoors_brown_wood.png
Normal file
After Width: | Height: | Size: 243 B |
BIN
my_door_wood/textures/mydoors_dark_grey_wood.png
Normal file
After Width: | Height: | Size: 230 B |
BIN
my_door_wood/textures/mydoors_grey_wood.png
Normal file
After Width: | Height: | Size: 257 B |
BIN
my_door_wood/textures/mydoors_red_wood.png
Normal file
After Width: | Height: | Size: 263 B |
BIN
my_door_wood/textures/mydoors_white_wood.png
Normal file
After Width: | Height: | Size: 222 B |
BIN
my_door_wood/textures/mydoors_yellow_wood.png
Normal file
After Width: | Height: | Size: 286 B |
3
my_fancy_doors/depends.txt
Normal file
@ -0,0 +1,3 @@
|
||||
default
|
||||
doors
|
||||
my_door_wood
|
4
my_fancy_doors/init.lua
Normal file
@ -0,0 +1,4 @@
|
||||
dofile(minetest.get_modpath("my_fancy_doors").."/locked.lua")
|
||||
dofile(minetest.get_modpath("my_fancy_doors").."/unlocked.lua")
|
||||
|
||||
|
4
my_fancy_doors/init.lua~
Normal file
@ -0,0 +1,4 @@
|
||||
dofile(minetest.get_modpath("my_fancy_doors").."/locked.lua")
|
||||
--dofile(minetest.get_modpath("my_fancy_doors").."/unlocked.lua")
|
||||
|
||||
|
52
my_fancy_doors/locked.lua
Normal file
@ -0,0 +1,52 @@
|
||||
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"},
|
||||
}
|
||||
|
||||
|
||||
for i in ipairs(fdoor_list) do
|
||||
local num = fdoor_list[i][1]
|
||||
local desc = fdoor_list[i][2]
|
||||
local inv = fdoor_list[i][3]
|
||||
local img = fdoor_list[i][4]
|
||||
|
||||
|
||||
doors.register_door("my_fancy_doors:door"..num.."_locked", {
|
||||
description = desc.." Locked",
|
||||
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 = true,
|
||||
})
|
||||
end
|
||||
|
||||
-- Crafts
|
||||
|
||||
minetest.register_craft({
|
||||
output = "my_fancy_doors:door1_locked 1",
|
||||
recipe = {
|
||||
{"my_door_wood:wood_yellow", "default:glass", ""},
|
||||
{"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", "default:steel_ingot"},
|
||||
{"my_door_wood:wood_yellow", "default:glass", ""}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "my_fancy_doors:door2_locked 1",
|
||||
recipe = {
|
||||
{"my_door_wood:wood_yellow", "default:glass", ""},
|
||||
{"my_door_wood:wood_yellow", "default:steel_ingot", "default:steel_ingot"},
|
||||
{"my_door_wood:wood_yellow", "default:glass", ""}
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "my_fancy_doors:door3_locked 1",
|
||||
recipe = {
|
||||
{"my_door_wood:wood_white", "default:glass", ""},
|
||||
{"my_door_wood:wood_white", "my_door_wood:wood_white", "default:steel_ingot"},
|
||||
{"my_door_wood:wood_white", "default:glass", ""}
|
||||
}
|
||||
})
|
||||
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 230 B After Width: | Height: | Size: 230 B |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 230 B After Width: | Height: | Size: 230 B |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 166 B After Width: | Height: | Size: 166 B |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
52
my_fancy_doors/unlocked.lua
Normal file
@ -0,0 +1,52 @@
|
||||
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"},
|
||||
}
|
||||
|
||||
|
||||
for i in ipairs(fdoor_list) do
|
||||
local num = fdoor_list[i][1]
|
||||
local desc = fdoor_list[i][2]
|
||||
local inv = fdoor_list[i][3]
|
||||
local img = fdoor_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", ""}
|
||||
}
|
||||
})
|
||||
|
52
my_fancy_doors/unlocked.lua~
Normal file
@ -0,0 +1,52 @@
|
||||
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", ""}
|
||||
}
|
||||
})
|
||||
|
3
my_misc_doors/depends.txt
Normal file
@ -0,0 +1,3 @@
|
||||
default
|
||||
doors
|
||||
my_door_wood
|
4
my_misc_doors/init.lua
Normal file
@ -0,0 +1,4 @@
|
||||
dofile(minetest.get_modpath("my_misc_doors").."/locked.lua")
|
||||
dofile(minetest.get_modpath("my_misc_doors").."/unlocked.lua")
|
||||
|
||||
|
60
my_misc_doors/locked.lua
Normal file
@ -0,0 +1,60 @@
|
||||
local mdoor_list = { --Number , Description , Inven Image , Image
|
||||
-- { "1" , "Misc Door 1" , "door1" , "door1"},
|
||||
-- { "2" , "Misc Door 2" , "door2" , "door2"},
|
||||
{ "3" , "Misc Door 3" , "door3" , "door3"},
|
||||
{ "4" , "Misc Door 4" , "door4" , "door4"},
|
||||
}
|
||||
|
||||
|
||||
for i in ipairs(mdoor_list) do
|
||||
local num = mdoor_list[i][1]
|
||||
local desc = mdoor_list[i][2]
|
||||
local inv = mdoor_list[i][3]
|
||||
local img = mdoor_list[i][4]
|
||||
|
||||
|
||||
doors.register_door("my_misc_doors:door"..num.."_locked", {
|
||||
description = desc.." Locked",
|
||||
inventory_image = "mymdoors_"..inv.."_inv.png",
|
||||
groups = {choppy=2,cracky=2,door=1},
|
||||
tiles_bottom = {"mymdoors_"..img.."_bottom.png", "mymdoors_"..img.."_edge.png"},
|
||||
tiles_top = {"mymdoors_"..img.."_top.png", "mymdoors_"..img.."_edge.png"},
|
||||
only_placer_can_open = true,
|
||||
})
|
||||
end
|
||||
|
||||
-- Crafts
|
||||
|
||||
minetest.register_craft({
|
||||
output = "my_misc_doors:door1_locked 1",
|
||||
recipe = {
|
||||
{"my_door_wood:wood_white", "my_door_wood:wood_white", ""},
|
||||
{"my_door_wood:wood_white", "my_door_wood:wood_white", "default:steel_ingot"},
|
||||
{"my_door_wood:wood_white", "my_door_wood:wood_white", ""}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "my_misc_doors:door2_locked 1",
|
||||
recipe = {
|
||||
{"my_door_wood:wood_grey", "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_misc_doors:door3_locked 1",
|
||||
recipe = {
|
||||
{"default:stone", "default:stone", ""},
|
||||
{"default:stone", "default:stone", "default:steel_ingot"},
|
||||
{"default:stone", "default:stone", ""}
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "my_misc_doors:door4_locked 1",
|
||||
recipe = {
|
||||
{"default:cobble", "default:cobble", ""},
|
||||
{"default:cobble", "default:cobble", "default:steel_ingot"},
|
||||
{"default:cobble", "default:cobble", ""}
|
||||
}
|
||||
})
|
BIN
my_misc_doors/textures/mymdoors_door1_bottom.png
Normal file
After Width: | Height: | Size: 212 B |
BIN
my_misc_doors/textures/mymdoors_door1_edge.png
Normal file
After Width: | Height: | Size: 109 B |
BIN
my_misc_doors/textures/mymdoors_door1_inv.png
Normal file
After Width: | Height: | Size: 302 B |
BIN
my_misc_doors/textures/mymdoors_door1_top.png
Normal file
After Width: | Height: | Size: 182 B |
BIN
my_misc_doors/textures/mymdoors_door2_bottom.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
my_misc_doors/textures/mymdoors_door2_edge.png
Normal file
After Width: | Height: | Size: 109 B |
BIN
my_misc_doors/textures/mymdoors_door2_inv.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
my_misc_doors/textures/mymdoors_door2_top.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
my_misc_doors/textures/mymdoors_door3_bottom.png
Normal file
After Width: | Height: | Size: 778 B |