1 --8 power levels 8 being the highest
4 local coloring = math.floor(color)
6 minetest.register_node("redstone:wire_"..i,{
7 description = "Redstone Wire",
8 --wield_image = "redstone_wire.png^[colorize:red:"..coloring,
12 --paramtype2 = "wallmounted",
16 --{xmin, ymin, zmin, xmax, ymax, zmax}
18 fixed = {-1/16, -1/2, -1/16, 1/16, -7/16, 1/16},
20 disconnected_sides = {-1/16, -1/2, -1/16, 1/16, 1/2, 1/16},
22 connect_top = {-1/16, -1/2, -1/16, 1/16, 1/2, 1/16},
24 connect_front = {-1/16, -1/2, -1/2, 1/16, -7/16, 1/16},
25 connect_left = {-1/2, -1/2, -1/16, 1/16, -7/16, 1/16},
26 connect_back = {-1/16, -1/2, -1/16, 1/16, -7/16, 1/2},
27 connect_right = {-1/16, -1/2, -1/16, 1/2, -7/16, 1/16},
31 --{xmin, ymin, zmin, xmax, ymax, zmax}
33 fixed = {-1/16, -1/2, -1/16, 1/16, -7/16, 1/16},
36 connect_front = {-1/16, -1/2, -1/2, 1/16, -7/16, 1/16},
37 connect_left = {-1/2, -1/2, -1/16, 1/16, -7/16, 1/16},
38 connect_back = {-1/16, -1/2, -1/16, 1/16, -7/16, 1/2},
39 connect_right = {-1/16, -1/2, -1/16, 1/2, -7/16, 1/16},
41 connects_to = {"group:redstone"},
42 inventory_image = "dirt.png",
43 wield_image = "dirt.png",
44 tiles = {"redstone_wire.png^[colorize:red:"..coloring},
45 sunlight_propagates = true,
46 is_ground_content = false,
47 groups = {redstone =1, instant=1,redstone=1,redstone_wire=1},
48 on_place = function(itemstack, placer, pointed_thing)
49 minetest.item_place_node(itemstack, placer, pointed_thing)
50 redstone.update(pointed_thing.above)
52 on_dig = function(pos, node, digger)
53 minetest.node_dig(pos, node, digger)
54 redstone.update(pos,node)