Improved selectionbox
This commit is contained in:
parent
02592d54f7
commit
0df7fcd054
@ -17,12 +17,6 @@ minetest.register_node(":streets:trafficlight_bottom",{
|
|||||||
{-0.1,0.25,-0.1,0.1,0.5,0.1}
|
{-0.1,0.25,-0.1,0.1,0.5,0.1}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
selection_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {
|
|
||||||
{-0.25,-0.5,-0.25,0.25,2.5,0.25},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node(":streets:trafficlight_middle",{
|
minetest.register_node(":streets:trafficlight_middle",{
|
||||||
@ -54,6 +48,13 @@ minetest.register_node(":streets:trafficlight_controller",{
|
|||||||
{-0.05,0.5,-0.05,0.05,1.6,0.05}
|
{-0.05,0.5,-0.05,0.05,1.6,0.05}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5,-0.5,-0.5,0.5,0.5,0.5},
|
||||||
|
{-0.5,1.5,-0.5,0.5,4.5,0.5}
|
||||||
|
}
|
||||||
|
},
|
||||||
on_receive_fields = function(pos, formname, fields, sender)
|
on_receive_fields = function(pos, formname, fields, sender)
|
||||||
minetest.get_meta(pos):set_string("channel", fields.channel)
|
minetest.get_meta(pos):set_string("channel", fields.channel)
|
||||||
end,
|
end,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user