23 lines
750 B
Lua
23 lines
750 B
Lua
minetest.register_node(minetest.get_current_modname() ..":cable", {
|
|
description = "Cable",
|
|
tiles = {"cable.png"},
|
|
drawtype = "nodebox",
|
|
paramtype = "light",
|
|
connects_to = {"group:sparktech_energy_conductor"},
|
|
node_box = {
|
|
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
|
|
},
|
|
})
|