diff --git a/my_castle_doors/init.lua b/my_castle_doors/init.lua index d8b799a..450e098 100644 --- a/my_castle_doors/init.lua +++ b/my_castle_doors/init.lua @@ -1,4 +1,2 @@ dofile(minetest.get_modpath("my_castle_doors").."/locked.lua") dofile(minetest.get_modpath("my_castle_doors").."/unlocked.lua") - - diff --git a/my_castle_doors/unlocked.lua b/my_castle_doors/unlocked.lua index 48cc6b7..bd49708 100644 --- a/my_castle_doors/unlocked.lua +++ b/my_castle_doors/unlocked.lua @@ -136,5 +136,3 @@ minetest.register_craft({ {"my_door_wood:wood_brown", "my_door_wood:wood_brown", "default:steel_ingot"} } }) - - diff --git a/my_cottage_doors/init.lua b/my_cottage_doors/init.lua index 15a8803..e0becbc 100644 --- a/my_cottage_doors/init.lua +++ b/my_cottage_doors/init.lua @@ -1,4 +1,2 @@ dofile(minetest.get_modpath("my_cottage_doors").."/locked.lua") dofile(minetest.get_modpath("my_cottage_doors").."/unlocked.lua") - - diff --git a/my_cottage_doors/locked.lua b/my_cottage_doors/locked.lua index 54a9ca0..14410fb 100644 --- a/my_cottage_doors/locked.lua +++ b/my_cottage_doors/locked.lua @@ -1,6 +1,6 @@ local cdoor_list = { --Number , Description , Inven Image , Image {"Cottage Door 1" , "door1"}, --- {"Cottage Door 2" , "door2"}, +-- {"Cottage Door 2" , "door2"}, } @@ -37,7 +37,3 @@ minetest.register_craft({ {"my_door_wood:wood_red", "my_door_wood:wood_red", ""} } }) - - - - diff --git a/my_cottage_doors/unlocked.lua b/my_cottage_doors/unlocked.lua index f705d93..ca6ca41 100644 --- a/my_cottage_doors/unlocked.lua +++ b/my_cottage_doors/unlocked.lua @@ -1,6 +1,6 @@ local cdoor_list = { --Number , Description , Inven Image , Image -- {"Cottage Door 1" , "door1"}, - {"Cottage Door 2" , "door2"}, + {"Cottage Door 2" , "door2"}, } @@ -37,7 +37,3 @@ minetest.register_craft({ {"my_door_wood:wood_red", "my_door_wood:wood_red", ""} } }) - - - - diff --git a/my_default_doors/init.lua b/my_default_doors/init.lua index 5106fad..42636e3 100644 --- a/my_default_doors/init.lua +++ b/my_default_doors/init.lua @@ -1,4 +1,2 @@ dofile(minetest.get_modpath("my_default_doors").."/locked.lua") --dofile(minetest.get_modpath("my_default_doors").."/unlocked.lua") - - diff --git a/my_default_doors/locked.lua b/my_default_doors/locked.lua index c90fed4..487924f 100644 --- a/my_default_doors/locked.lua +++ b/my_default_doors/locked.lua @@ -2,7 +2,7 @@ local cdoor_list = { --Number , Description , Inven Image , Image { "1", "Bronze Door" , "bronze", "bronze_ingot"}, { "2", "Copper Door" , "copper", "copper_ingot"}, { "3", "Gold Door" , "gold", "gold_ingot"}, - { "4", "Diamond Door" , "diamond", "diamond"}, + { "4", "Diamond Door" , "diamond", "diamond"}, { "5", "Mese Door" , "mese", "mese_crystal"}, } @@ -34,8 +34,3 @@ minetest.register_craft({ } }) end - - - - - diff --git a/my_default_doors/unlocked.lua b/my_default_doors/unlocked.lua index 33a0ff3..75f530f 100644 --- a/my_default_doors/unlocked.lua +++ b/my_default_doors/unlocked.lua @@ -2,7 +2,7 @@ local cdoor_list = { --Number , Description , Inven Image , Image { "1", "Bronze Door" , "bronze", "bronze_ingot"}, { "2", "Copper Door" , "copper", "copper_ingot"}, { "3", "Gold Door" , "gold", "gold_ingot"}, - { "4", "Diamond Door" , "diamond", "diamond"}, + { "4", "Diamond Door" , "diamond", "diamond"}, { "5", "Mese Door" , "mese", "mese_crystal"}, } @@ -34,8 +34,3 @@ minetest.register_craft({ } }) end - - - - - diff --git a/my_door_wood/init.lua b/my_door_wood/init.lua index da108b5..6aaf536 100644 --- a/my_door_wood/init.lua +++ b/my_door_wood/init.lua @@ -33,6 +33,3 @@ minetest.register_craft({ } }) end - - - diff --git a/my_fancy_doors/init.lua b/my_fancy_doors/init.lua index aa7ab97..de11e68 100644 --- a/my_fancy_doors/init.lua +++ b/my_fancy_doors/init.lua @@ -1,4 +1,2 @@ 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 index 7757ab6..6c09d0b 100644 --- a/my_fancy_doors/locked.lua +++ b/my_fancy_doors/locked.lua @@ -1,11 +1,11 @@ local fdoor_list = { --Number , Description , Inven Image , Image {"Fancy Door 1" , "door1"}, --- {"Fancy Door 2" , "door2"}, --- {"Fancy Door 3" , "door3"}, - {"Fancy Door 4" , "door4"}, - {"Fancy Door 5" , "door5"}, - {"Fancy Door 6" , "door6"}, - {"Fancy Door 7" , "door7"}, +-- {"Fancy Door 2" , "door2"}, +-- {"Fancy Door 3" , "door3"}, + {"Fancy Door 4" , "door4"}, + {"Fancy Door 5" , "door5"}, + {"Fancy Door 6" , "door6"}, + {"Fancy Door 7" , "door7"}, {"Fancy Door 8" , "door8"}, } @@ -91,5 +91,3 @@ minetest.register_craft({ {"my_door_wood:wood_red", "my_door_wood:wood_red", ""} } }) - - diff --git a/my_fancy_doors/unlocked.lua b/my_fancy_doors/unlocked.lua index 22e6408..2ab32f9 100644 --- a/my_fancy_doors/unlocked.lua +++ b/my_fancy_doors/unlocked.lua @@ -1,11 +1,11 @@ local fdoor_list = { --Number , Description , Inven Image , Image -- {"Fancy Door 1" , "door1"}, - {"Fancy Door 2" , "door2"}, - {"Fancy Door 3" , "door3"}, --- {"Fancy Door 4" , "door4"}, --- {"Fancy Door 5" , "door5"}, --- {"Fancy Door 6" , "door6"}, --- {"Fancy Door 7" , "door7"}, + {"Fancy Door 2" , "door2"}, + {"Fancy Door 3" , "door3"}, +-- {"Fancy Door 4" , "door4"}, +-- {"Fancy Door 5" , "door5"}, +-- {"Fancy Door 6" , "door6"}, +-- {"Fancy Door 7" , "door7"}, -- {"Fancy Door 8" , "door8"}, } @@ -59,4 +59,3 @@ minetest.register_craft({ {"my_door_wood:wood_red", "my_door_wood:wood_dark_grey", ""} } }) - diff --git a/my_future_doors/framed.lua b/my_future_doors/framed.lua index a26e23c..0ece781 100644 --- a/my_future_doors/framed.lua +++ b/my_future_doors/framed.lua @@ -31,10 +31,10 @@ minetest.register_node("my_future_doors:door1a_"..col, { selection_box = { type = "fixed", fixed = { - {-0.4375, -0.5, -0.1875, 0.4375, 1.5, -0.0625}, --door - {0.4375, -0.5, -0.5625, 0.625, 1.4375, 0.5625}, --right - {-0.625, -0.5, -0.5625, -0.4375, 1.4375, 0.5625}, --left - {-0.625, 1.4375, -0.5625, 0.625, 1.625, 0.5625}, --top + {-0.4375, -0.5, -0.1875, 0.4375, 1.5, -0.0625}, --door + {0.4375, -0.5, -0.5625, 0.625, 1.4375, 0.5625}, --right + {-0.625, -0.5, -0.5625, -0.4375, 1.4375, 0.5625}, --left + {-0.625, 1.4375, -0.5625, 0.625, 1.625, 0.5625}, --top } }, @@ -47,7 +47,7 @@ on_place = function(itemstack, placer, pointed_thing) not minetest.registered_nodes[minetest.get_node(pos2).name].buildable_to or not placer or not placer:is_player() then - return + return end return minetest.item_place(itemstack, placer, pointed_thing) end, @@ -84,21 +84,21 @@ minetest.register_node("my_future_doors:door1b_"..col, { type = "fixed", fixed = { {-0.4375, -0.5, -0.1875, 0.4375, 0.5, -0.0625}, - {-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5}, - {0.4375, -0.5, -0.5, 0.5, 0.5, 0.5}, - {0.4375, -0.5, 0.5, 0.625, 0.5, 0.5625}, - {0.4375, -0.5, -0.5625, 0.625, 0.5, -0.5}, - {-0.625, -0.5, -0.5625, -0.4375, 0.5, -0.5}, - {-0.625, -0.5, 0.5, -0.4375, 0.5, 0.5625}, - {-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5}, - {-0.625, 0.4375, -0.5625, 0.625, 0.625, -0.5}, - {-0.625, 0.4375, 0.5, 0.625, 0.625, 0.5625}, + {-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5}, + {0.4375, -0.5, -0.5, 0.5, 0.5, 0.5}, + {0.4375, -0.5, 0.5, 0.625, 0.5, 0.5625}, + {0.4375, -0.5, -0.5625, 0.625, 0.5, -0.5}, + {-0.625, -0.5, -0.5625, -0.4375, 0.5, -0.5}, + {-0.625, -0.5, 0.5, -0.4375, 0.5, 0.5625}, + {-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5}, + {-0.625, 0.4375, -0.5625, 0.625, 0.625, -0.5}, + {-0.625, 0.4375, 0.5, 0.625, 0.625, 0.5625}, } }, selection_box = { type = "fixed", fixed = { - {-0.5, -0.5, -0.5, -0.5, -0.5, -0.5}, + {-0.5, -0.5, -0.5, -0.5, -0.5, -0.5}, } }, })minetest.register_node("my_future_doors:door1c_"..col, { @@ -128,9 +128,9 @@ minetest.register_node("my_future_doors:door1b_"..col, { selection_box = { type = "fixed", fixed = { - {0.4375, -0.5, -0.5625, 0.625, 1.4375, 0.5625}, --right - {-0.625, -0.5, -0.5625, -0.4375, 1.4375, 0.5625}, --left - {-0.625, 1.4375, -0.5625, 0.625, 1.625, 0.5625}, --top + {0.4375, -0.5, -0.5625, 0.625, 1.4375, 0.5625}, --right + {-0.625, -0.5, -0.5625, -0.4375, 1.4375, 0.5625}, --left + {-0.625, 1.4375, -0.5625, 0.625, 1.625, 0.5625}, --top } }, after_place_node = function(pos, placer, itemstack, pointed_thing) @@ -175,7 +175,7 @@ minetest.register_node("my_future_doors:door1d_"..col, { selection_box = { type = "fixed", fixed = { - {-0.5, -0.5, -0.5, -0.5, -0.5, -0.5}, + {-0.5, -0.5, -0.5, -0.5, -0.5, -0.5}, } }, }) diff --git a/my_future_doors/sliding.lua b/my_future_doors/sliding.lua index 9c9b6f0..6ee4646 100644 --- a/my_future_doors/sliding.lua +++ b/my_future_doors/sliding.lua @@ -7,7 +7,7 @@ local doors = { {"my_future_doors:door8a","my_future_doors:door8b","my_future_doors:door8c","my_future_doors:door8d","8","Blue Steel"}, {"my_future_doors:door9a","my_future_doors:door9b","my_future_doors:door9c","my_future_doors:door9d","9","Tan Steel"}, } - + local recipes = { {{"default:steel_ingot", "default:steelblock", ""}, {"default:steel_ingot", "default:steel_ingot", ""}, @@ -30,7 +30,7 @@ local recipes = { {{"default:steel_ingot", "default:steelblock", ""}, {"default:steel_ingot", "default:steel_ingot", "dye:brown"}, { "default:steel_ingot", "default:steelblock",""}}, -} +} for i in ipairs (doors) do local doora = doors[i][1] local doorb = doors[i][2] @@ -49,7 +49,7 @@ function onplace(itemstack, placer, pointed_thing) not minetest.registered_nodes[minetest.get_node(pos2).name].buildable_to or not placer or not placer:is_player() then - return + return end local pt = pointed_thing.above local pt2 = {x=pt.x, y=pt.y, z=pt.z} @@ -259,7 +259,7 @@ minetest.register_node(doord, { selection_box = { type = "fixed", fixed = { - {0, 0, 0, 0, 0, 0}, + {0, 0, 0, 0, 0, 0}, } }, }) diff --git a/my_garage_door/init.lua b/my_garage_door/init.lua index da9ae93..ad4a81e 100644 --- a/my_garage_door/init.lua +++ b/my_garage_door/init.lua @@ -34,7 +34,7 @@ print(p2) after_destruct = function(pos, oldnode) minetest.set_node({x=pos.x,y=pos.y+1,z=pos.z},{name = "air"}) end, - + on_rightclick = function(pos, node, player, itemstack, pointed_thing) local p2 = node.param2 --minetest.dir_to_facedir(player:get_look_dir()) local t1 = {x=pos.x,y=pos.y+1,z=pos.z} @@ -103,7 +103,7 @@ minetest.register_node("my_garage_door:garage_door_open", { } }, selection_box = {type = "fixed",fixed = {{-1.5, 0.375, -0.5, 1.5, 0.5, 1.5},}}, - + on_rightclick = function(pos, node, player, itemstack, pointed_thing) local p2 = node.param2 --minetest.dir_to_facedir(player:get_look_dir()) local t1 = {x=pos.x,y=pos.y+1,z=pos.z} diff --git a/my_hidden_doors/init.lua b/my_hidden_doors/init.lua index ea9ea57..0d997d7 100644 --- a/my_hidden_doors/init.lua +++ b/my_hidden_doors/init.lua @@ -1,6 +1,6 @@ local hdoor_list = { --Number , Description , default image { "cobble" , "Hidden Cobble Door", "default_cobble"}, - { "stone" , "Hidden Stone Door", "default_stone"}, + { "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"}, @@ -116,5 +116,3 @@ minetest.register_craft({ {"my_door_wood:wood_dark_grey", "my_door_wood:wood_dark_grey", ""} } }) - - diff --git a/my_misc_doors/bars.lua b/my_misc_doors/bars.lua index 033baab..633fba3 100644 --- a/my_misc_doors/bars.lua +++ b/my_misc_doors/bars.lua @@ -39,7 +39,7 @@ on_place = function(itemstack, placer, pointed_thing) not minetest.registered_nodes[minetest.get_node(pos2).name].buildable_to or not placer or not placer:is_player() then - return + return end local pt = pointed_thing.above local pt2 = {x=pt.x, y=pt.y, z=pt.z} @@ -215,7 +215,7 @@ minetest.register_node("my_misc_doors:door2d", { selection_box = { type = "fixed", fixed = { - {0, 0, 0, 0, 0, 0}, + {0, 0, 0, 0, 0, 0}, } }, }) diff --git a/my_misc_doors/init.lua b/my_misc_doors/init.lua index 1622020..190324d 100644 --- a/my_misc_doors/init.lua +++ b/my_misc_doors/init.lua @@ -1,5 +1,3 @@ dofile(minetest.get_modpath("my_misc_doors").."/locked.lua") dofile(minetest.get_modpath("my_misc_doors").."/unlocked.lua") dofile(minetest.get_modpath("my_misc_doors").."/bars.lua") - - diff --git a/my_misc_doors/locked.lua b/my_misc_doors/locked.lua index 4868f58..a2299ac 100644 --- a/my_misc_doors/locked.lua +++ b/my_misc_doors/locked.lua @@ -1,6 +1,6 @@ local mdoor_list = { --Number , Description , Inven Image , Image -- {"Misc Door 1" , "door1"}, --- {"Misc Door 2" , "door2"}, +-- {"Misc Door 2" , "door2"}, {"Misc Door 3" , "door3"}, {"Misc Door 4" , "door4"}, -- {"Misc Door 5" , "door5"}, @@ -72,6 +72,3 @@ minetest.register_craft({ {"default:steel_ingot", "default:iron_lump", ""} } }) - - - diff --git a/my_misc_doors/unlocked.lua b/my_misc_doors/unlocked.lua index baaf4a6..14af743 100644 --- a/my_misc_doors/unlocked.lua +++ b/my_misc_doors/unlocked.lua @@ -1,6 +1,6 @@ local mdoor_list = { --Number , Description , Inven Image , Image {"Misc Door 1" , "door1"}, - {"Misc Door 2" , "door2"}, + {"Misc Door 2" , "door2"}, -- {"Misc Door 3" , "door3"}, -- {"Misc Door 4" , "door4"}, {"Misc Door 5" , "door5"}, diff --git a/my_old_doors/init.lua b/my_old_doors/init.lua index 56ba45d..057bfc7 100644 --- a/my_old_doors/init.lua +++ b/my_old_doors/init.lua @@ -1,4 +1,2 @@ dofile(minetest.get_modpath("my_old_doors").."/locked.lua") dofile(minetest.get_modpath("my_old_doors").."/unlocked.lua") - - diff --git a/my_old_doors/locked.lua b/my_old_doors/locked.lua index b7439e9..9b4dd17 100644 --- a/my_old_doors/locked.lua +++ b/my_old_doors/locked.lua @@ -2,7 +2,7 @@ local cdoor_list = { --Number , Description , Inven Image , Image { "1", "Old Door 1" , "old1"}, { "2", "Old Door 2" , "old2"}, { "3", "Old Door 3" , "old3"}, - { "4", "Old Door 4" , "old4"}, + { "4", "Old Door 4" , "old4"}, } for i in ipairs(cdoor_list) do local num = cdoor_list[i][1] diff --git a/my_old_doors/unlocked.lua b/my_old_doors/unlocked.lua index 4e53dba..b7bacc6 100644 --- a/my_old_doors/unlocked.lua +++ b/my_old_doors/unlocked.lua @@ -2,7 +2,7 @@ local cdoor_list = { --Number , Description , Inven Image , Image -- { "1", "Old Door 1" , "old1"}, -- { "2", "Old Door 2" , "old2"}, -- { "3", "Old Door 3" , "old3"}, --- { "4", "Old Door 4" , "old4"}, +-- { "4", "Old Door 4" , "old4"}, } for i in ipairs(cdoor_list) do local num = cdoor_list[i][1] @@ -52,6 +52,3 @@ minetest.register_craft({ {"my_door_wood:wood_red", "my_door_wood:wood_red", ""} } }) - - - diff --git a/my_saloon_doors/init.lua b/my_saloon_doors/init.lua index 00253b1..8bd35f9 100644 --- a/my_saloon_doors/init.lua +++ b/my_saloon_doors/init.lua @@ -51,7 +51,7 @@ on_place = function(itemstack, placer, pointed_thing) not minetest.registered_nodes[minetest.get_node(pos2).name].buildable_to or not placer or not placer:is_player() then - return + return end return minetest.item_place(itemstack, placer, pointed_thing) end, diff --git a/my_sliding_doors/jdoors1.lua b/my_sliding_doors/jdoors1.lua index 3f30cc8..24450a5 100644 --- a/my_sliding_doors/jdoors1.lua +++ b/my_sliding_doors/jdoors1.lua @@ -42,7 +42,7 @@ function rightclick(pos, node, player, itemstack, pointed_thing) local par2 = par + 2 if par2 == 4 then par2 = 0 end if par2 == 5 then par2 = 1 end - + local a = minetest.get_node({x=pos.x, y=pos.y, z=pos.z-1}) local b = minetest.get_node({x=pos.x, y=pos.y, z=pos.z+1}) local c = minetest.get_node({x=pos.x+1, y=pos.y, z=pos.z}) @@ -71,7 +71,7 @@ function rightclick(pos, node, player, itemstack, pointed_thing) minetest.set_node({x=pos.x-1, y=pos.y, z=pos.z}, {name=doorc, param2=d.param2}) minetest.set_node({x=pos.x-1,y=pos.y+1,z=pos.z}, {name=doord, param2=d.param2}) end - + if a.name == doora.."2" then minetest.set_node({x=pos.x, y=pos.y, z=pos.z-1}, {name=doorc.."2", param2=a.param2}) minetest.set_node({x=pos.x,y=pos.y+1,z=pos.z-1}, {name=doord.."2", param2=a.param2}) @@ -104,7 +104,7 @@ function rightclick(pos, node, player, itemstack, pointed_thing) minetest.set_node({x=pos.x-1, y=pos.y, z=pos.z}, {name=doora, param2=d.param2}) minetest.set_node({x=pos.x-1,y=pos.y+1,z=pos.z}, {name=doorb, param2=d.param2}) end - + if a.name == doorc.."2" then minetest.set_node({x=pos.x, y=pos.y, z=pos.z-1}, {name=doora.."2", param2=a.param2}) minetest.set_node({x=pos.x,y=pos.y+1,z=pos.z-1}, {name=doorb.."2", param2=a.param2}) @@ -150,15 +150,15 @@ minetest.register_node(doora, { fixed = { {0.375, -0.5, 0.1875, 0.5, 0.5, 0.0625}, {-0.5, -0.5, 0.1875, -0.375, 0.5, 0.0625}, - + {-0.5, -0.5, 0.1875, 0.5, -0.375, 0.0625}, {-0.5, -0.5, 0.125, 0.5, 0.5, 0.145}, - - {-0.625, -0.5, -0.0625, -0.5, 0.5, 0.0625}, - {-1.5, -0.5, -0.0625, -1.375, 0.5, 0.0625}, - - {-1.5, -0.5, -0.0625, -0.5, -0.375, 0.0625}, - {-1.5, -0.5, 0, -0.5, 0.5, 0.02}, + + {-0.625, -0.5, -0.0625, -0.5, 0.5, 0.0625}, + {-1.5, -0.5, -0.0625, -1.375, 0.5, 0.0625}, + + {-1.5, -0.5, -0.0625, -0.5, -0.375, 0.0625}, + {-1.5, -0.5, 0, -0.5, 0.5, 0.02}, } }, selection_box = {type = "fixed",fixed = {{-1.5, -0.5, -0.0625, -0.5, 1.5, 0.0625},{-0.5, -0.5, 0.0625, 0.5, 1.5, 0.1875}}}, @@ -188,15 +188,15 @@ minetest.register_node(doorb, { fixed = { {0.375, -0.5, 0.1875, 0.5, 0.5, 0.0625}, {-0.5, -0.5, 0.1875, -0.375, 0.5, 0.0625}, - + {-0.5, 0.5, 0.1875, 0.5, 0.375, 0.0625}, {-0.5, -0.5, 0.125, 0.5, 0.5, 0.145}, - - {-0.625, -0.5, -0.0625, -0.5, 0.5, 0.0625}, - {-1.5, -0.5, -0.0625, -1.375, 0.5, 0.0625}, - - {-1.5, 0.5, -0.0625, -0.5, 0.375, 0.0625}, - {-1.5, -0.5, 0, -0.5, 0.5, 0.02}, + + {-0.625, -0.5, -0.0625, -0.5, 0.5, 0.0625}, + {-1.5, -0.5, -0.0625, -1.375, 0.5, 0.0625}, + + {-1.5, 0.5, -0.0625, -0.5, 0.375, 0.0625}, + {-1.5, -0.5, 0, -0.5, 0.5, 0.02}, } }, selection_box = { @@ -225,15 +225,15 @@ minetest.register_node(doorb, { fixed = { {-0.625, -0.5, 0.1875, -0.5, 0.5, 0.0625}, {-1.5, -0.5, 0.1875, -1.375, 0.5, 0.0625}, - + {-1.5, -0.5, 0.1875, -0.5, -0.375, 0.0625}, {-1.5, -0.5, 0.125, -0.5, 0.5, 0.145}, - - {-0.625, -0.5, -0.0625, -0.5, 0.5, 0.0625}, - {-1.5, -0.5, -0.0625, -1.375, 0.5, 0.0625}, - - {-1.5, -0.5, -0.0625, -0.5, -0.375, 0.0625}, - {-1.5, -0.5, 0, -0.5, 0.5, 0.02}, + + {-0.625, -0.5, -0.0625, -0.5, 0.5, 0.0625}, + {-1.5, -0.5, -0.0625, -1.375, 0.5, 0.0625}, + + {-1.5, -0.5, -0.0625, -0.5, -0.375, 0.0625}, + {-1.5, -0.5, 0, -0.5, 0.5, 0.02}, } }, selection_box = { @@ -265,21 +265,21 @@ minetest.register_node(doord, { fixed = { {-0.625, -0.5, 0.1875, -0.5, 0.5, 0.0625}, {-1.5, -0.5, 0.1875, -1.375, 0.5, 0.0625}, - + {-1.5, 0.5, 0.1875, -0.5, 0.375, 0.0625}, {-1.5, -0.5, 0.125, -0.5, 0.5, 0.145}, - - {-0.625, -0.5, -0.0625, -0.5, 0.5, 0.0625}, - {-1.5, -0.5, -0.0625, -1.375, 0.5, 0.0625}, - - {-1.5, 0.5, -0.0625, -0.5, 0.375, 0.0625}, - {-1.5, -0.5, 0, -0.5, 0.5, 0.02}, + + {-0.625, -0.5, -0.0625, -0.5, 0.5, 0.0625}, + {-1.5, -0.5, -0.0625, -1.375, 0.5, 0.0625}, + + {-1.5, 0.5, -0.0625, -0.5, 0.375, 0.0625}, + {-1.5, -0.5, 0, -0.5, 0.5, 0.02}, } }, selection_box = { type = "fixed", fixed = { - {0, 0, 0, 0, 0, 0}, + {0, 0, 0, 0, 0, 0}, } }, }) @@ -311,7 +311,7 @@ minetest.register_node("my_sliding_doors:jpanel"..num, { }, selection_box = {type = "fixed",fixed = {{-0.5, -0.5, -0.0625, 0.5, 1.5, 0.0625}}}, collision_box = {type = "fixed",fixed = {{-0.5, -0.5, -0.0625, 0.5, 1.5, 0.0625}}}, - + on_place = function(itemstack, placer, pointed_thing) local p2 = minetest.dir_to_facedir(placer:get_look_dir()) local pos = pointed_thing.above @@ -430,7 +430,7 @@ minetest.register_node("my_sliding_doors:jpanel_corner_top"..num, { {-0.5, -0.5, -0.0625, -0.375, 0.5, 0.0625}, {-0.5, 0.375, -0.0625, 0.0625, 0.5, 0.0625}, {-0.5, -0.5, 0, 0, 0.5, 0.02}, - {-0.0625, 0.375, -0.5, 0.0625, 0.5, 0.0625}, + {-0.0625, 0.375, -0.5, 0.0625, 0.5, 0.0625}, {0.02, -0.5, -0.5, 0, 0.5, 0}, } }, diff --git a/my_sliding_doors/jdoors2.lua b/my_sliding_doors/jdoors2.lua index b929ed0..83d4c3c 100644 --- a/my_sliding_doors/jdoors2.lua +++ b/my_sliding_doors/jdoors2.lua @@ -20,7 +20,7 @@ function onplace(itemstack, placer, pointed_thing) not minetest.registered_nodes[minetest.get_node(pos2).name].buildable_to or not placer or not placer:is_player() then - return + return end local pt = pointed_thing.above local pt2 = {x=pt.x, y=pt.y, z=pt.z} @@ -71,7 +71,7 @@ function rightclick(pos, node, player, itemstack, pointed_thing) local par2 = par + 2 if par2 == 4 then par2 = 0 end if par2 == 5 then par2 = 1 end - + local a = minetest.get_node({x=pos.x, y=pos.y, z=pos.z-1}) local b = minetest.get_node({x=pos.x, y=pos.y, z=pos.z+1}) local c = minetest.get_node({x=pos.x+1, y=pos.y, z=pos.z}) @@ -100,7 +100,7 @@ function rightclick(pos, node, player, itemstack, pointed_thing) minetest.set_node({x=pos.x-1, y=pos.y, z=pos.z}, {name=doorc, param2=d.param2}) minetest.set_node({x=pos.x-1,y=pos.y+1,z=pos.z}, {name=doord, param2=d.param2}) end - + if a.name == doora.."2" then minetest.set_node({x=pos.x, y=pos.y, z=pos.z-1}, {name=doorc.."2", param2=a.param2}) minetest.set_node({x=pos.x,y=pos.y+1,z=pos.z-1}, {name=doord.."2", param2=a.param2}) @@ -133,7 +133,7 @@ function rightclick(pos, node, player, itemstack, pointed_thing) minetest.set_node({x=pos.x-1, y=pos.y, z=pos.z}, {name=doora, param2=d.param2}) minetest.set_node({x=pos.x-1,y=pos.y+1,z=pos.z}, {name=doorb, param2=d.param2}) end - + if a.name == doorc.."2" then minetest.set_node({x=pos.x, y=pos.y, z=pos.z-1}, {name=doora.."2", param2=a.param2}) minetest.set_node({x=pos.x,y=pos.y+1,z=pos.z-1}, {name=doorb.."2", param2=a.param2}) @@ -178,15 +178,15 @@ minetest.register_node(doora.."2", { fixed = { {0.375, -0.5, -0.1875, 0.5, 0.5, -0.0625}, {-0.5, -0.5, -0.1875, -0.375, 0.5, -0.0625}, - + {-0.5, -0.5, -0.1875, 0.5, -0.375, -0.0625}, {-0.5, -0.5, -0.125, 0.5, 0.5, -0.145}, - - {-0.625, -0.5, -0.0625, -0.5, 0.5, 0.0625}, - {-1.5, -0.5, -0.0625, -1.375, 0.5, 0.0625}, - - {-1.5, -0.5, -0.0625, -0.5, -0.375, 0.0625}, - {-1.5, -0.5, 0, -0.5, 0.5, 0.02}, + + {-0.625, -0.5, -0.0625, -0.5, 0.5, 0.0625}, + {-1.5, -0.5, -0.0625, -1.375, 0.5, 0.0625}, + + {-1.5, -0.5, -0.0625, -0.5, -0.375, 0.0625}, + {-1.5, -0.5, 0, -0.5, 0.5, 0.02}, } }, selection_box = {type = "fixed",fixed = {{-1.5, -0.5, -0.0625, -0.5, 1.5, 0.0625},{-0.5, -0.5, -0.0625, 0.5, 1.5, -0.1875}}}, @@ -216,15 +216,15 @@ minetest.register_node(doorb.."2", { fixed = { {0.375, -0.5, -0.1875, 0.5, 0.5, -0.0625}, {-0.5, -0.5, -0.1875, -0.375, 0.5, -0.0625}, - + {-0.5, 0.5, -0.1875, 0.5, 0.375, -0.0625}, {-0.5, -0.5, -0.125, 0.5, 0.5, -0.145}, - - {-0.625, -0.5, -0.0625, -0.5, 0.5, 0.0625}, - {-1.5, -0.5, -0.0625, -1.375, 0.5, 0.0625}, - - {-1.5, 0.5, -0.0625, -0.5, 0.375, 0.0625}, - {-1.5, -0.5, 0, -0.5, 0.5, 0.02}, + + {-0.625, -0.5, -0.0625, -0.5, 0.5, 0.0625}, + {-1.5, -0.5, -0.0625, -1.375, 0.5, 0.0625}, + + {-1.5, 0.5, -0.0625, -0.5, 0.375, 0.0625}, + {-1.5, -0.5, 0, -0.5, 0.5, 0.02}, } }, selection_box = { @@ -253,15 +253,15 @@ minetest.register_node(doorb.."2", { fixed = { {-0.625, -0.5, -0.1875, -0.5, 0.5, -0.0625}, {-1.5, -0.5, -0.1875, -1.375, 0.5, -0.0625}, - + {-1.5, -0.5, -0.1875, -0.5, -0.375, -0.0625}, {-1.5, -0.5, -0.125, -0.5, 0.5, -0.145}, - - {-0.625, -0.5, -0.0625, -0.5, 0.5, 0.0625}, - {-1.5, -0.5, -0.0625, -1.375, 0.5, 0.0625}, - - {-1.5, -0.5, -0.0625, -0.5, -0.375, 0.0625}, - {-1.5, -0.5, 0, -0.5, 0.5, 0.02}, + + {-0.625, -0.5, -0.0625, -0.5, 0.5, 0.0625}, + {-1.5, -0.5, -0.0625, -1.375, 0.5, 0.0625}, + + {-1.5, -0.5, -0.0625, -0.5, -0.375, 0.0625}, + {-1.5, -0.5, 0, -0.5, 0.5, 0.02}, } }, selection_box = { @@ -293,21 +293,21 @@ minetest.register_node(doord.."2", { fixed = { {-0.625, -0.5, -0.1875, -0.5, 0.5, -0.0625}, {-1.5, -0.5, -0.1875, -1.375, 0.5, -0.0625}, - + {-1.5, 0.5, -0.1875, -0.5, 0.375, -0.0625}, {-1.5, -0.5, -0.125, -0.5, 0.5, -0.145}, - - {-0.625, -0.5, -0.0625, -0.5, 0.5, 0.0625}, - {-1.5, -0.5, -0.0625, -1.375, 0.5, 0.0625}, - - {-1.5, 0.5, -0.0625, -0.5, 0.375, 0.0625}, - {-1.5, -0.5, 0, -0.5, 0.5, 0.02}, + + {-0.625, -0.5, -0.0625, -0.5, 0.5, 0.0625}, + {-1.5, -0.5, -0.0625, -1.375, 0.5, 0.0625}, + + {-1.5, 0.5, -0.0625, -0.5, 0.375, 0.0625}, + {-1.5, -0.5, 0, -0.5, 0.5, 0.02}, } }, selection_box = { type = "fixed", fixed = { - {0, 0, 0, 0, 0, 0}, + {0, 0, 0, 0, 0, 0}, } }, })