diff --git a/README.md b/README.md deleted file mode 100644 index f48df6c..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -mydoors -======= - -misc doors for minetest diff --git a/init.lua b/init.lua deleted file mode 100644 index 5b197a6..0000000 --- a/init.lua +++ /dev/null @@ -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") - - diff --git a/locked.lua b/locked.lua deleted file mode 100644 index 17514a4..0000000 --- a/locked.lua +++ /dev/null @@ -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", ""} - } -}) - - diff --git a/modpack.txt b/modpack.txt new file mode 100644 index 0000000..e69de29 diff --git a/depends.txt b/my_castle_doors/depends.txt similarity index 51% rename from depends.txt rename to my_castle_doors/depends.txt index f2c4494..b58752b 100644 --- a/depends.txt +++ b/my_castle_doors/depends.txt @@ -1,2 +1,3 @@ default doors +my_door_wood diff --git a/my_castle_doors/init.lua b/my_castle_doors/init.lua new file mode 100644 index 0000000..d8b799a --- /dev/null +++ b/my_castle_doors/init.lua @@ -0,0 +1,4 @@ +dofile(minetest.get_modpath("my_castle_doors").."/locked.lua") +dofile(minetest.get_modpath("my_castle_doors").."/unlocked.lua") + + diff --git a/my_castle_doors/locked.lua b/my_castle_doors/locked.lua new file mode 100644 index 0000000..93d65b1 --- /dev/null +++ b/my_castle_doors/locked.lua @@ -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", ""} + } +}) + + + diff --git a/textures/mydoors_brown_wood.png b/my_castle_doors/textures/mydoors_brown_wood.png similarity index 100% rename from textures/mydoors_brown_wood.png rename to my_castle_doors/textures/mydoors_brown_wood.png diff --git a/textures/mydoors_clear_wood.png b/my_castle_doors/textures/mydoors_clear_wood.png similarity index 100% rename from textures/mydoors_clear_wood.png rename to my_castle_doors/textures/mydoors_clear_wood.png diff --git a/textures/mydoors_dark_grey_wood.png b/my_castle_doors/textures/mydoors_dark_grey_wood.png similarity index 100% rename from textures/mydoors_dark_grey_wood.png rename to my_castle_doors/textures/mydoors_dark_grey_wood.png diff --git a/my_castle_doors/textures/mydoors_door10_bottom.png b/my_castle_doors/textures/mydoors_door10_bottom.png new file mode 100644 index 0000000..5917c31 Binary files /dev/null and b/my_castle_doors/textures/mydoors_door10_bottom.png differ diff --git a/my_castle_doors/textures/mydoors_door10_edge.png b/my_castle_doors/textures/mydoors_door10_edge.png new file mode 100644 index 0000000..5835a10 Binary files /dev/null and b/my_castle_doors/textures/mydoors_door10_edge.png differ diff --git a/my_castle_doors/textures/mydoors_door10_inv.png b/my_castle_doors/textures/mydoors_door10_inv.png new file mode 100644 index 0000000..5587782 Binary files /dev/null and b/my_castle_doors/textures/mydoors_door10_inv.png differ diff --git a/my_castle_doors/textures/mydoors_door10_top.png b/my_castle_doors/textures/mydoors_door10_top.png new file mode 100644 index 0000000..86aa377 Binary files /dev/null and b/my_castle_doors/textures/mydoors_door10_top.png differ diff --git a/my_castle_doors/textures/mydoors_door11_bottom.png b/my_castle_doors/textures/mydoors_door11_bottom.png new file mode 100644 index 0000000..53b3658 Binary files /dev/null and b/my_castle_doors/textures/mydoors_door11_bottom.png differ diff --git a/my_castle_doors/textures/mydoors_door11_edge.png b/my_castle_doors/textures/mydoors_door11_edge.png new file mode 100644 index 0000000..ce2f6cf Binary files /dev/null and b/my_castle_doors/textures/mydoors_door11_edge.png differ diff --git a/my_castle_doors/textures/mydoors_door11_inv.png b/my_castle_doors/textures/mydoors_door11_inv.png new file mode 100644 index 0000000..074999d Binary files /dev/null and b/my_castle_doors/textures/mydoors_door11_inv.png differ diff --git a/my_castle_doors/textures/mydoors_door11_top.png b/my_castle_doors/textures/mydoors_door11_top.png new file mode 100644 index 0000000..be994e4 Binary files /dev/null and b/my_castle_doors/textures/mydoors_door11_top.png differ diff --git a/my_castle_doors/textures/mydoors_door12_bottom.png b/my_castle_doors/textures/mydoors_door12_bottom.png new file mode 100644 index 0000000..a37a735 Binary files /dev/null and b/my_castle_doors/textures/mydoors_door12_bottom.png differ diff --git a/my_castle_doors/textures/mydoors_door12_edge.png b/my_castle_doors/textures/mydoors_door12_edge.png new file mode 100644 index 0000000..9e9f82c Binary files /dev/null and b/my_castle_doors/textures/mydoors_door12_edge.png differ diff --git a/my_castle_doors/textures/mydoors_door12_inv.png b/my_castle_doors/textures/mydoors_door12_inv.png new file mode 100644 index 0000000..4a02bd6 Binary files /dev/null and b/my_castle_doors/textures/mydoors_door12_inv.png differ diff --git a/my_castle_doors/textures/mydoors_door12_top.png b/my_castle_doors/textures/mydoors_door12_top.png new file mode 100644 index 0000000..f39cf3e Binary files /dev/null and b/my_castle_doors/textures/mydoors_door12_top.png differ diff --git a/textures/door1_bottom.png b/my_castle_doors/textures/mydoors_door1_bottom.png similarity index 100% rename from textures/door1_bottom.png rename to my_castle_doors/textures/mydoors_door1_bottom.png diff --git a/textures/door1_edge.png b/my_castle_doors/textures/mydoors_door1_edge.png similarity index 100% rename from textures/door1_edge.png rename to my_castle_doors/textures/mydoors_door1_edge.png diff --git a/textures/door1_inv.png b/my_castle_doors/textures/mydoors_door1_inv.png similarity index 100% rename from textures/door1_inv.png rename to my_castle_doors/textures/mydoors_door1_inv.png diff --git a/textures/door1_top.png b/my_castle_doors/textures/mydoors_door1_top.png similarity index 100% rename from textures/door1_top.png rename to my_castle_doors/textures/mydoors_door1_top.png diff --git a/textures/door2_bottom.png b/my_castle_doors/textures/mydoors_door2_bottom.png similarity index 100% rename from textures/door2_bottom.png rename to my_castle_doors/textures/mydoors_door2_bottom.png diff --git a/textures/door2_edge.png b/my_castle_doors/textures/mydoors_door2_edge.png similarity index 100% rename from textures/door2_edge.png rename to my_castle_doors/textures/mydoors_door2_edge.png diff --git a/textures/door2_inv.png b/my_castle_doors/textures/mydoors_door2_inv.png similarity index 100% rename from textures/door2_inv.png rename to my_castle_doors/textures/mydoors_door2_inv.png diff --git a/textures/door2_top.png b/my_castle_doors/textures/mydoors_door2_top.png similarity index 100% rename from textures/door2_top.png rename to my_castle_doors/textures/mydoors_door2_top.png diff --git a/my_castle_doors/textures/mydoors_door3_bottom.png b/my_castle_doors/textures/mydoors_door3_bottom.png new file mode 100644 index 0000000..b2c1df3 Binary files /dev/null and b/my_castle_doors/textures/mydoors_door3_bottom.png differ diff --git a/my_castle_doors/textures/mydoors_door3_edge.png b/my_castle_doors/textures/mydoors_door3_edge.png new file mode 100644 index 0000000..cbd49e4 Binary files /dev/null and b/my_castle_doors/textures/mydoors_door3_edge.png differ diff --git a/my_castle_doors/textures/mydoors_door3_inv.png b/my_castle_doors/textures/mydoors_door3_inv.png new file mode 100644 index 0000000..d1966db Binary files /dev/null and b/my_castle_doors/textures/mydoors_door3_inv.png differ diff --git a/my_castle_doors/textures/mydoors_door3_top.png b/my_castle_doors/textures/mydoors_door3_top.png new file mode 100644 index 0000000..37b9d42 Binary files /dev/null and b/my_castle_doors/textures/mydoors_door3_top.png differ diff --git a/my_castle_doors/textures/mydoors_door4_bottom.png b/my_castle_doors/textures/mydoors_door4_bottom.png new file mode 100644 index 0000000..13a1406 Binary files /dev/null and b/my_castle_doors/textures/mydoors_door4_bottom.png differ diff --git a/my_castle_doors/textures/mydoors_door4_edge.png b/my_castle_doors/textures/mydoors_door4_edge.png new file mode 100644 index 0000000..dfffde1 Binary files /dev/null and b/my_castle_doors/textures/mydoors_door4_edge.png differ diff --git a/my_castle_doors/textures/mydoors_door4_inv.png b/my_castle_doors/textures/mydoors_door4_inv.png new file mode 100644 index 0000000..5b7cd46 Binary files /dev/null and b/my_castle_doors/textures/mydoors_door4_inv.png differ diff --git a/my_castle_doors/textures/mydoors_door4_top.png b/my_castle_doors/textures/mydoors_door4_top.png new file mode 100644 index 0000000..1b164f9 Binary files /dev/null and b/my_castle_doors/textures/mydoors_door4_top.png differ diff --git a/my_castle_doors/textures/mydoors_door5_bottom.png b/my_castle_doors/textures/mydoors_door5_bottom.png new file mode 100644 index 0000000..0f06222 Binary files /dev/null and b/my_castle_doors/textures/mydoors_door5_bottom.png differ diff --git a/my_castle_doors/textures/mydoors_door5_edge.png b/my_castle_doors/textures/mydoors_door5_edge.png new file mode 100644 index 0000000..bfd2d80 Binary files /dev/null and b/my_castle_doors/textures/mydoors_door5_edge.png differ diff --git a/my_castle_doors/textures/mydoors_door5_inv.png b/my_castle_doors/textures/mydoors_door5_inv.png new file mode 100644 index 0000000..1b2da37 Binary files /dev/null and b/my_castle_doors/textures/mydoors_door5_inv.png differ diff --git a/my_castle_doors/textures/mydoors_door5_top.png b/my_castle_doors/textures/mydoors_door5_top.png new file mode 100644 index 0000000..2f9b02a Binary files /dev/null and b/my_castle_doors/textures/mydoors_door5_top.png differ diff --git a/textures/door6_bottom.png b/my_castle_doors/textures/mydoors_door6_bottom.png similarity index 100% rename from textures/door6_bottom.png rename to my_castle_doors/textures/mydoors_door6_bottom.png diff --git a/textures/door6_edge.png b/my_castle_doors/textures/mydoors_door6_edge.png similarity index 100% rename from textures/door6_edge.png rename to my_castle_doors/textures/mydoors_door6_edge.png diff --git a/textures/door6_inv.png b/my_castle_doors/textures/mydoors_door6_inv.png similarity index 100% rename from textures/door6_inv.png rename to my_castle_doors/textures/mydoors_door6_inv.png diff --git a/textures/door6_top.png b/my_castle_doors/textures/mydoors_door6_top.png similarity index 100% rename from textures/door6_top.png rename to my_castle_doors/textures/mydoors_door6_top.png diff --git a/textures/door7_bottom.png b/my_castle_doors/textures/mydoors_door7_bottom.png similarity index 100% rename from textures/door7_bottom.png rename to my_castle_doors/textures/mydoors_door7_bottom.png diff --git a/textures/door7_edge.png b/my_castle_doors/textures/mydoors_door7_edge.png similarity index 100% rename from textures/door7_edge.png rename to my_castle_doors/textures/mydoors_door7_edge.png diff --git a/textures/door7_inv.png b/my_castle_doors/textures/mydoors_door7_inv.png similarity index 100% rename from textures/door7_inv.png rename to my_castle_doors/textures/mydoors_door7_inv.png diff --git a/textures/door7_top.png b/my_castle_doors/textures/mydoors_door7_top.png similarity index 100% rename from textures/door7_top.png rename to my_castle_doors/textures/mydoors_door7_top.png diff --git a/textures/door8_bottom.png b/my_castle_doors/textures/mydoors_door8_bottom.png similarity index 100% rename from textures/door8_bottom.png rename to my_castle_doors/textures/mydoors_door8_bottom.png diff --git a/textures/door8_edge.png b/my_castle_doors/textures/mydoors_door8_edge.png similarity index 100% rename from textures/door8_edge.png rename to my_castle_doors/textures/mydoors_door8_edge.png diff --git a/textures/door8_inv.png b/my_castle_doors/textures/mydoors_door8_inv.png similarity index 100% rename from textures/door8_inv.png rename to my_castle_doors/textures/mydoors_door8_inv.png diff --git a/textures/door8_top.png b/my_castle_doors/textures/mydoors_door8_top.png similarity index 100% rename from textures/door8_top.png rename to my_castle_doors/textures/mydoors_door8_top.png diff --git a/my_castle_doors/textures/mydoors_door9_bottom.png b/my_castle_doors/textures/mydoors_door9_bottom.png new file mode 100644 index 0000000..06ce04d Binary files /dev/null and b/my_castle_doors/textures/mydoors_door9_bottom.png differ diff --git a/my_castle_doors/textures/mydoors_door9_edge.png b/my_castle_doors/textures/mydoors_door9_edge.png new file mode 100644 index 0000000..4fdf3ca Binary files /dev/null and b/my_castle_doors/textures/mydoors_door9_edge.png differ diff --git a/my_castle_doors/textures/mydoors_door9_inv.png b/my_castle_doors/textures/mydoors_door9_inv.png new file mode 100644 index 0000000..c47beca Binary files /dev/null and b/my_castle_doors/textures/mydoors_door9_inv.png differ diff --git a/my_castle_doors/textures/mydoors_door9_top.png b/my_castle_doors/textures/mydoors_door9_top.png new file mode 100644 index 0000000..d390f70 Binary files /dev/null and b/my_castle_doors/textures/mydoors_door9_top.png differ diff --git a/textures/mydoors_grey_wood.png b/my_castle_doors/textures/mydoors_grey_wood.png similarity index 100% rename from textures/mydoors_grey_wood.png rename to my_castle_doors/textures/mydoors_grey_wood.png diff --git a/textures/mydoors_red_wood.png b/my_castle_doors/textures/mydoors_red_wood.png similarity index 100% rename from textures/mydoors_red_wood.png rename to my_castle_doors/textures/mydoors_red_wood.png diff --git a/textures/mydoors_white_wood.png b/my_castle_doors/textures/mydoors_white_wood.png similarity index 100% rename from textures/mydoors_white_wood.png rename to my_castle_doors/textures/mydoors_white_wood.png diff --git a/my_castle_doors/unlocked.lua b/my_castle_doors/unlocked.lua new file mode 100644 index 0000000..bf38ad4 --- /dev/null +++ b/my_castle_doors/unlocked.lua @@ -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", ""} + } +}) + + + diff --git a/wood.lua b/my_castle_doors/wood.lua similarity index 75% rename from wood.lua rename to my_castle_doors/wood.lua index 603890c..e03fc46 100644 --- a/wood.lua +++ b/my_castle_doors/wood.lua @@ -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", "", ""}, diff --git a/my_door_wood/init.lua b/my_door_wood/init.lua new file mode 100644 index 0000000..960e8b6 --- /dev/null +++ b/my_door_wood/init.lua @@ -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 + + + diff --git a/my_door_wood/textures/mydoors_brown_wood.png b/my_door_wood/textures/mydoors_brown_wood.png new file mode 100644 index 0000000..d0962f2 Binary files /dev/null and b/my_door_wood/textures/mydoors_brown_wood.png differ diff --git a/my_door_wood/textures/mydoors_dark_grey_wood.png b/my_door_wood/textures/mydoors_dark_grey_wood.png new file mode 100644 index 0000000..c43c62e Binary files /dev/null and b/my_door_wood/textures/mydoors_dark_grey_wood.png differ diff --git a/my_door_wood/textures/mydoors_grey_wood.png b/my_door_wood/textures/mydoors_grey_wood.png new file mode 100644 index 0000000..db561f5 Binary files /dev/null and b/my_door_wood/textures/mydoors_grey_wood.png differ diff --git a/my_door_wood/textures/mydoors_red_wood.png b/my_door_wood/textures/mydoors_red_wood.png new file mode 100644 index 0000000..d069f7a Binary files /dev/null and b/my_door_wood/textures/mydoors_red_wood.png differ diff --git a/my_door_wood/textures/mydoors_white_wood.png b/my_door_wood/textures/mydoors_white_wood.png new file mode 100644 index 0000000..91c430e Binary files /dev/null and b/my_door_wood/textures/mydoors_white_wood.png differ diff --git a/my_door_wood/textures/mydoors_yellow_wood.png b/my_door_wood/textures/mydoors_yellow_wood.png new file mode 100644 index 0000000..079da26 Binary files /dev/null and b/my_door_wood/textures/mydoors_yellow_wood.png differ diff --git a/my_fancy_doors/depends.txt b/my_fancy_doors/depends.txt new file mode 100644 index 0000000..b58752b --- /dev/null +++ b/my_fancy_doors/depends.txt @@ -0,0 +1,3 @@ +default +doors +my_door_wood diff --git a/my_fancy_doors/init.lua b/my_fancy_doors/init.lua new file mode 100644 index 0000000..aa7ab97 --- /dev/null +++ b/my_fancy_doors/init.lua @@ -0,0 +1,4 @@ +dofile(minetest.get_modpath("my_fancy_doors").."/locked.lua") +dofile(minetest.get_modpath("my_fancy_doors").."/unlocked.lua") + + diff --git a/my_fancy_doors/init.lua~ b/my_fancy_doors/init.lua~ new file mode 100644 index 0000000..b3a7a9f --- /dev/null +++ b/my_fancy_doors/init.lua~ @@ -0,0 +1,4 @@ +dofile(minetest.get_modpath("my_fancy_doors").."/locked.lua") +--dofile(minetest.get_modpath("my_fancy_doors").."/unlocked.lua") + + diff --git a/my_fancy_doors/locked.lua b/my_fancy_doors/locked.lua new file mode 100644 index 0000000..780591c --- /dev/null +++ b/my_fancy_doors/locked.lua @@ -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", ""} + } +}) + diff --git a/textures/door3_bottom.png b/my_fancy_doors/textures/myfdoors_door1_bottom.png similarity index 100% rename from textures/door3_bottom.png rename to my_fancy_doors/textures/myfdoors_door1_bottom.png diff --git a/textures/door3_edge.png b/my_fancy_doors/textures/myfdoors_door1_edge.png similarity index 100% rename from textures/door3_edge.png rename to my_fancy_doors/textures/myfdoors_door1_edge.png diff --git a/textures/door3_inv.png b/my_fancy_doors/textures/myfdoors_door1_inv.png similarity index 100% rename from textures/door3_inv.png rename to my_fancy_doors/textures/myfdoors_door1_inv.png diff --git a/textures/door3_top.png b/my_fancy_doors/textures/myfdoors_door1_top.png similarity index 100% rename from textures/door3_top.png rename to my_fancy_doors/textures/myfdoors_door1_top.png diff --git a/textures/door4_bottom.png b/my_fancy_doors/textures/myfdoors_door2_bottom.png similarity index 100% rename from textures/door4_bottom.png rename to my_fancy_doors/textures/myfdoors_door2_bottom.png diff --git a/textures/door4_edge.png b/my_fancy_doors/textures/myfdoors_door2_edge.png similarity index 100% rename from textures/door4_edge.png rename to my_fancy_doors/textures/myfdoors_door2_edge.png diff --git a/textures/door4_inv.png b/my_fancy_doors/textures/myfdoors_door2_inv.png similarity index 100% rename from textures/door4_inv.png rename to my_fancy_doors/textures/myfdoors_door2_inv.png diff --git a/textures/door4_top.png b/my_fancy_doors/textures/myfdoors_door2_top.png similarity index 100% rename from textures/door4_top.png rename to my_fancy_doors/textures/myfdoors_door2_top.png diff --git a/textures/door5_bottom.png b/my_fancy_doors/textures/myfdoors_door3_bottom.png similarity index 100% rename from textures/door5_bottom.png rename to my_fancy_doors/textures/myfdoors_door3_bottom.png diff --git a/textures/door5_edge.png b/my_fancy_doors/textures/myfdoors_door3_edge.png similarity index 100% rename from textures/door5_edge.png rename to my_fancy_doors/textures/myfdoors_door3_edge.png diff --git a/textures/door5_inv.png b/my_fancy_doors/textures/myfdoors_door3_inv.png similarity index 100% rename from textures/door5_inv.png rename to my_fancy_doors/textures/myfdoors_door3_inv.png diff --git a/textures/door5_top.png b/my_fancy_doors/textures/myfdoors_door3_top.png similarity index 100% rename from textures/door5_top.png rename to my_fancy_doors/textures/myfdoors_door3_top.png diff --git a/my_fancy_doors/unlocked.lua b/my_fancy_doors/unlocked.lua new file mode 100644 index 0000000..df9e535 --- /dev/null +++ b/my_fancy_doors/unlocked.lua @@ -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", ""} + } +}) + diff --git a/my_fancy_doors/unlocked.lua~ b/my_fancy_doors/unlocked.lua~ new file mode 100644 index 0000000..d8c62b0 --- /dev/null +++ b/my_fancy_doors/unlocked.lua~ @@ -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", ""} + } +}) + diff --git a/my_misc_doors/depends.txt b/my_misc_doors/depends.txt new file mode 100644 index 0000000..b58752b --- /dev/null +++ b/my_misc_doors/depends.txt @@ -0,0 +1,3 @@ +default +doors +my_door_wood diff --git a/my_misc_doors/init.lua b/my_misc_doors/init.lua new file mode 100644 index 0000000..eb5cf1f --- /dev/null +++ b/my_misc_doors/init.lua @@ -0,0 +1,4 @@ +dofile(minetest.get_modpath("my_misc_doors").."/locked.lua") +dofile(minetest.get_modpath("my_misc_doors").."/unlocked.lua") + + diff --git a/my_misc_doors/locked.lua b/my_misc_doors/locked.lua new file mode 100644 index 0000000..5422d2a --- /dev/null +++ b/my_misc_doors/locked.lua @@ -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", ""} + } +}) diff --git a/my_misc_doors/textures/mymdoors_door1_bottom.png b/my_misc_doors/textures/mymdoors_door1_bottom.png new file mode 100644 index 0000000..438452d Binary files /dev/null and b/my_misc_doors/textures/mymdoors_door1_bottom.png differ diff --git a/my_misc_doors/textures/mymdoors_door1_edge.png b/my_misc_doors/textures/mymdoors_door1_edge.png new file mode 100644 index 0000000..4c7c1b1 Binary files /dev/null and b/my_misc_doors/textures/mymdoors_door1_edge.png differ diff --git a/my_misc_doors/textures/mymdoors_door1_inv.png b/my_misc_doors/textures/mymdoors_door1_inv.png new file mode 100644 index 0000000..cb9c7d1 Binary files /dev/null and b/my_misc_doors/textures/mymdoors_door1_inv.png differ diff --git a/my_misc_doors/textures/mymdoors_door1_top.png b/my_misc_doors/textures/mymdoors_door1_top.png new file mode 100644 index 0000000..5f7691a Binary files /dev/null and b/my_misc_doors/textures/mymdoors_door1_top.png differ diff --git a/my_misc_doors/textures/mymdoors_door2_bottom.png b/my_misc_doors/textures/mymdoors_door2_bottom.png new file mode 100644 index 0000000..e5137b0 Binary files /dev/null and b/my_misc_doors/textures/mymdoors_door2_bottom.png differ diff --git a/my_misc_doors/textures/mymdoors_door2_edge.png b/my_misc_doors/textures/mymdoors_door2_edge.png new file mode 100644 index 0000000..423ea61 Binary files /dev/null and b/my_misc_doors/textures/mymdoors_door2_edge.png differ diff --git a/my_misc_doors/textures/mymdoors_door2_inv.png b/my_misc_doors/textures/mymdoors_door2_inv.png new file mode 100644 index 0000000..539209a Binary files /dev/null and b/my_misc_doors/textures/mymdoors_door2_inv.png differ diff --git a/my_misc_doors/textures/mymdoors_door2_top.png b/my_misc_doors/textures/mymdoors_door2_top.png new file mode 100644 index 0000000..e228145 Binary files /dev/null and b/my_misc_doors/textures/mymdoors_door2_top.png differ diff --git a/my_misc_doors/textures/mymdoors_door3_bottom.png b/my_misc_doors/textures/mymdoors_door3_bottom.png new file mode 100644 index 0000000..b0d75ba Binary files /dev/null and b/my_misc_doors/textures/mymdoors_door3_bottom.png differ diff --git a/my_misc_doors/textures/mymdoors_door3_edge.png b/my_misc_doors/textures/mymdoors_door3_edge.png new file mode 100644 index 0000000..a537324 Binary files /dev/null and b/my_misc_doors/textures/mymdoors_door3_edge.png differ diff --git a/my_misc_doors/textures/mymdoors_door3_inv.png b/my_misc_doors/textures/mymdoors_door3_inv.png new file mode 100644 index 0000000..be86d19 Binary files /dev/null and b/my_misc_doors/textures/mymdoors_door3_inv.png differ diff --git a/my_misc_doors/textures/mymdoors_door3_top.png b/my_misc_doors/textures/mymdoors_door3_top.png new file mode 100644 index 0000000..6abc135 Binary files /dev/null and b/my_misc_doors/textures/mymdoors_door3_top.png differ diff --git a/my_misc_doors/textures/mymdoors_door4_bottom.png b/my_misc_doors/textures/mymdoors_door4_bottom.png new file mode 100644 index 0000000..3fa3be8 Binary files /dev/null and b/my_misc_doors/textures/mymdoors_door4_bottom.png differ diff --git a/my_misc_doors/textures/mymdoors_door4_edge.png b/my_misc_doors/textures/mymdoors_door4_edge.png new file mode 100644 index 0000000..a537324 Binary files /dev/null and b/my_misc_doors/textures/mymdoors_door4_edge.png differ diff --git a/my_misc_doors/textures/mymdoors_door4_inv.png b/my_misc_doors/textures/mymdoors_door4_inv.png new file mode 100644 index 0000000..01d0356 Binary files /dev/null and b/my_misc_doors/textures/mymdoors_door4_inv.png differ diff --git a/my_misc_doors/textures/mymdoors_door4_top.png b/my_misc_doors/textures/mymdoors_door4_top.png new file mode 100644 index 0000000..f4c1929 Binary files /dev/null and b/my_misc_doors/textures/mymdoors_door4_top.png differ diff --git a/my_misc_doors/textures/mymdoors_door5_bottom.png b/my_misc_doors/textures/mymdoors_door5_bottom.png new file mode 100644 index 0000000..ee91b75 Binary files /dev/null and b/my_misc_doors/textures/mymdoors_door5_bottom.png differ diff --git a/my_misc_doors/textures/mymdoors_door5_edge.png b/my_misc_doors/textures/mymdoors_door5_edge.png new file mode 100644 index 0000000..4c7c1b1 Binary files /dev/null and b/my_misc_doors/textures/mymdoors_door5_edge.png differ diff --git a/my_misc_doors/textures/mymdoors_door5_inv.png b/my_misc_doors/textures/mymdoors_door5_inv.png new file mode 100644 index 0000000..a65a9fe Binary files /dev/null and b/my_misc_doors/textures/mymdoors_door5_inv.png differ diff --git a/my_misc_doors/textures/mymdoors_door5_top.png b/my_misc_doors/textures/mymdoors_door5_top.png new file mode 100644 index 0000000..fed89d5 Binary files /dev/null and b/my_misc_doors/textures/mymdoors_door5_top.png differ diff --git a/my_misc_doors/unlocked.lua b/my_misc_doors/unlocked.lua new file mode 100644 index 0000000..b5700b4 --- /dev/null +++ b/my_misc_doors/unlocked.lua @@ -0,0 +1,61 @@ +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"}, + { "5" , "Misc Door 5" , "door5" , "door5"}, +} + + +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, { + description = desc, + 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 = false, +}) +end + +-- Crafts + +minetest.register_craft({ + output = "my_misc_doors:door1 1", + recipe = { + {"my_door_wood:wood_white", "my_door_wood:wood_white", ""}, + {"my_door_wood:wood_white", "my_door_wood:wood_white", ""}, + {"my_door_wood:wood_white", "my_door_wood:wood_white", ""} + } +}) + +minetest.register_craft({ + output = "my_misc_doors:door2 1", + recipe = { + {"my_door_wood:wood_grey", "my_door_wood:wood_grey", ""}, + {"my_door_wood:wood_grey", "my_door_wood:wood_grey", ""}, + {"my_door_wood:wood_grey", "my_door_wood:wood_grey", ""} + } +}) +minetest.register_craft({ + output = "my_misc_doors:door3 1", + recipe = { + {"default:stone", "default:stone", ""}, + {"default:stone", "default:stone", ""}, + {"default:stone", "default:stone", ""} + } +}) +minetest.register_craft({ + output = "my_misc_doors:door4 1", + recipe = { + {"default:cobble", "default:cobble", ""}, + {"default:cobble", "default:cobble", ""}, + {"default:cobble", "default:cobble", ""} + } +}) diff --git a/mydoors.zip b/mydoors.zip new file mode 100644 index 0000000..da7f081 Binary files /dev/null and b/mydoors.zip differ diff --git a/textures/doors.xcf b/textures/doors.xcf deleted file mode 100644 index 4273c60..0000000 Binary files a/textures/doors.xcf and /dev/null differ diff --git a/unlocked.lua b/unlocked.lua deleted file mode 100644 index f29c4fc..0000000 --- a/unlocked.lua +++ /dev/null @@ -1,97 +0,0 @@ -local door_list = { --Number , Description , Inven Image , Image , Is Locked - { "1" , "Locked 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.."_unlocked", { - description = desc.." Door Unlocked", - 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 = false, -}) -end - --- Crafts - -minetest.register_craft({ - output = "mydoors:door1_unlocked 1", - recipe = { - {"default:steel_ingot", "default:glass", ""}, - {"mydoors:wood_dark_grey", "mydoors:wood_dark_grey", ""}, - {"mydoors:wood_dark_grey", "default:steel_ingot", ""} - } -}) - -minetest.register_craft({ - output = "mydoors:door2_unlocked 1", - recipe = { - {"default:steel_ingot", "default:glass", ""}, - {"mydoors:wood_red", "mydoors:wood_red", ""}, - {"mydoors:wood_red", "default:steel_ingot", ""} - } -}) -minetest.register_craft({ - output = "mydoors:door3_unlocked 1", - recipe = { - {"mydoors:wood_clear", "default:glass", ""}, - {"mydoors:wood_clear", "mydoors:wood_clear", ""}, - {"mydoors:wood_clear", "default:glass", ""} - } -}) -minetest.register_craft({ - output = "mydoors:door4_unlocked 1", - recipe = { - {"default:glass", "mydoors:wood_clear", ""}, - {"mydoors:wood_clear", "mydoors:wood_clear", ""}, - {"default:glass", "mydoors:wood_clear", ""} - } -}) -minetest.register_craft({ - output = "mydoors:door5_unlocked 1", - recipe = { - {"mydoors:wood_white", "default:glass", ""}, - {"mydoors:wood_white", "mydoors:wood_white", ""}, - {"mydoors:wood_white", "default:glass", ""} - } -}) -minetest.register_craft({ - output = "mydoors:door6_unlocked 1", - recipe = { - {"mydoors:wood_grey", "mydoors:wood_grey", ""}, - {"mydoors:wood_grey", "default:steel_ingot", ""}, - {"mydoors:wood_grey", "mydoors:wood_grey", ""} - } -}) -minetest.register_craft({ - output = "mydoors:door7_unlocked 1", - recipe = { - {"mydoors:wood_red", "mydoors:wood_red", ""}, - {"mydoors:wood_red", "default:steel_ingot", ""}, - {"mydoors:wood_red", "mydoors:wood_red", ""} - } -}) -minetest.register_craft({ - output = "mydoors:door8_unlocked 1", - recipe = { - {"default:steel_ingot", "default:steel_ingot", ""}, - {"mydoors:wood_dark_grey", "mydoors:wood_dark_grey", ""}, - {"default:steel_ingot", "default:steel_ingot", ""} - } -})