mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-29 18:43:53 +01:00
selection box improvements
This commit is contained in:
parent
eb0540c712
commit
1b0992734f
@ -54,7 +54,7 @@ minetest.register_lbm({
|
|||||||
local peer_pos = P(peer)
|
local peer_pos = P(peer)
|
||||||
local _,node = Tube:get_node(peer_pos)
|
local _,node = Tube:get_node(peer_pos)
|
||||||
local tube_dir = ((3 + (node.param2 % 4)) % 4) + 1
|
local tube_dir = ((3 + (node.param2 % 4)) % 4) + 1
|
||||||
print("migrate "..node.name.." at "..S(pos))
|
--print("migrate "..node.name.." at "..S(pos))
|
||||||
meta:set_string("peer", nil)
|
meta:set_string("peer", nil)
|
||||||
if tube_dir then
|
if tube_dir then
|
||||||
meta:set_int("tube_dir", tube_dir)
|
meta:set_int("tube_dir", tube_dir)
|
||||||
@ -65,7 +65,7 @@ minetest.register_lbm({
|
|||||||
else
|
else
|
||||||
local items = TubesTranslation[node.name][node.param2]
|
local items = TubesTranslation[node.name][node.param2]
|
||||||
if items then
|
if items then
|
||||||
print("migrate "..node.name.." at "..S(pos))
|
--print("migrate "..node.name.." at "..S(pos))
|
||||||
local param2, ntype = items[1], items[2]
|
local param2, ntype = items[1], items[2]
|
||||||
minetest.set_node(pos, {name = "tubelib:tube"..ntype, param2 = param2})
|
minetest.set_node(pos, {name = "tubelib:tube"..ntype, param2 = param2})
|
||||||
end
|
end
|
||||||
|
@ -18,7 +18,7 @@ minetest.register_node("tubelib_stairway:bridge1", {
|
|||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
{-16/32, -18/32, -16/32, 16/32, -12/32, 16/32},
|
{-16/32, -16/32, -16/32, 16/32, -10/32, 16/32},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ minetest.register_node("tubelib_stairway:bridge2", {
|
|||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
{-16/32, -18/32, -16/32, 16/32, -12/32, 16/32},
|
{-16/32, -16/32, -16/32, 16/32, -10/32, 16/32},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ minetest.register_node("tubelib_stairway:bridge3", {
|
|||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
{-16/32, -18/32, -16/32, 16/32, -12/32, 16/32},
|
{-16/32, -16/32, -16/32, 16/32, -10/32, 16/32},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -118,7 +118,7 @@ minetest.register_node("tubelib_stairway:bridge4", {
|
|||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
{-16/32, -18/32, -16/32, 16/32, -12/32, 16/32},
|
{-16/32, -16/32, -16/32, 16/32, -10/32, 16/32},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -149,7 +149,7 @@ minetest.register_node("tubelib_stairway:bridge5", {
|
|||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
{-16/32, -18/32, -16/32, 16/32, -12/32, 16/32},
|
{-16/32, -16/32, -16/32, 16/32, -10/32, 16/32},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -186,8 +186,8 @@ minetest.register_node("tubelib_stairway:stairway", {
|
|||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
{-16/32, -18/32, -16/32, 16/32, -12/32, 0/32},
|
{-16/32, -16/32, -16/32, 16/32, -10/32, 0/32},
|
||||||
{-16/32, -18/32, 0/32, 16/32, 2/32, 16/32},
|
{-16/32, -16/32, 0/32, 16/32, 2/32, 16/32},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user