Make cable node visual connections dynamic
This commit is contained in:
parent
5e627c2025
commit
381878fd21
@ -3,16 +3,20 @@ minetest.register_node(minetest.get_current_modname() ..":cable", {
|
||||
tiles = {"cable.png"},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
connects_to = {"group:sparktech_energy_conductor"},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{0.2, 0.5, 0.2, -0.2, -0.5, -0.2},
|
||||
{0.5, 0.2, 0.2, -0.5, -0.2, -0.2},
|
||||
{0.2, 0.2, 0.5, -0.2, -0.2, -0.5}
|
||||
}
|
||||
type = "connected",
|
||||
fixed = {-0.2, -0.2, -0.2, 0.2, 0.2, 0.2},
|
||||
connect_top = {-0.2, 0.2, -0.2, 0.2, 0.5, 0.2},
|
||||
connect_bottom = {-0.2, -0.5, -0.2, 0.2, -0.2, 0.2},
|
||||
connect_back = {-0.2, -0.2, 0.2, 0.2, 0.2, 0.5},
|
||||
connect_right = {0.2, -0.2, -0.2, 0.5, 0.2, 0.2},
|
||||
connect_front = {-0.2, -0.2, -0.5, 0.2, 0.2, -0.2},
|
||||
connect_left = {-0.5, -0.2, -0.2, -0.2, 0.2, 0.2},
|
||||
},
|
||||
groups = {
|
||||
sparktech_techy = 1,
|
||||
sparktech_energy_conductor = 1,
|
||||
sparktech_energy_max = 400}
|
||||
sparktech_energy_max = 400
|
||||
},
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user