2018-01-07 00:53:12 +00:00
|
|
|
local NAME = minetest.get_current_modname()
|
|
|
|
|
|
|
|
minetest.register_node(NAME ..":cable", {
|
|
|
|
description = "Copper Cable",
|
|
|
|
tiles = {"cable.png"},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
connects_to = {"group:sparktech_net_trigger", "group:sparktech_net_passive"},
|
|
|
|
stack_max = 128,
|
|
|
|
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_net_passive = 1,}
|
2016-12-29 11:59:47 +00:00
|
|
|
})
|
2018-01-07 00:53:12 +00:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = NAME .. ":cable 16",
|
|
|
|
type = "shapeless",
|
2018-01-07 14:17:20 +00:00
|
|
|
recipe = { 'group:silicon', 'default:copper_ingot', 'group:silicon' }
|
|
|
|
})
|