Cleanfile: remove all whitespace issues.
This commit is contained in:
parent
033e08d375
commit
b567295eae
@ -1,4 +1,2 @@
|
||||
dofile(minetest.get_modpath("my_castle_doors").."/locked.lua")
|
||||
dofile(minetest.get_modpath("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"}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
@ -1,4 +1,2 @@
|
||||
dofile(minetest.get_modpath("my_cottage_doors").."/locked.lua")
|
||||
dofile(minetest.get_modpath("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", ""}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -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", ""}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,2 @@
|
||||
dofile(minetest.get_modpath("my_default_doors").."/locked.lua")
|
||||
--dofile(minetest.get_modpath("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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -33,6 +33,3 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,2 @@
|
||||
dofile(minetest.get_modpath("my_fancy_doors").."/locked.lua")
|
||||
dofile(minetest.get_modpath("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"},
|
||||
}
|
||||
|
||||
@ -91,5 +91,3 @@ minetest.register_craft({
|
||||
{"my_door_wood:wood_red", "my_door_wood:wood_red", ""}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
@ -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", ""}
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -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},
|
||||
}
|
||||
},
|
||||
})
|
||||
|
@ -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},
|
||||
}
|
||||
},
|
||||
})
|
||||
|
@ -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}
|
||||
|
@ -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", ""}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
@ -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},
|
||||
}
|
||||
},
|
||||
})
|
||||
|
@ -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")
|
||||
|
||||
|
||||
|
@ -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", ""}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
@ -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"},
|
||||
|
@ -1,4 +1,2 @@
|
||||
dofile(minetest.get_modpath("my_old_doors").."/locked.lua")
|
||||
dofile(minetest.get_modpath("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]
|
||||
|
@ -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", ""}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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},
|
||||
}
|
||||
},
|
||||
|
@ -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},
|
||||
}
|
||||
},
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user