-- A do-nothing "structural" node, to ensure all digtron nodes that are supposed to be connected to each other can be connected to each other. minetest.register_node("digtron:structure", { description = "Digger Structure", groups = {cracky = 3, oddly_breakable_by_hand=3, digtron = 1}, drop = "digtron:structure", tiles = {"digtron_plate.png"}, drawtype = "nodebox", sounds = digtron.metal_sounds, climbable = true, walkable = false, paramtype = "light", is_ground_content = false, node_box = { type = "fixed", fixed = { {0.3125, 0.3125, -0.5, 0.5, 0.5, 0.5}, {0.3125, -0.5, -0.5, 0.5, -0.3125, 0.5}, {-0.5, 0.3125, -0.5, -0.3125, 0.5, 0.5}, {-0.5, -0.5, -0.5, -0.3125, -0.3125, 0.5}, {-0.3125, 0.3125, 0.3125, 0.3125, 0.5, 0.5}, {-0.3125, -0.5, 0.3125, 0.3125, -0.3125, 0.5}, {-0.5, -0.3125, 0.3125, -0.3125, 0.3125, 0.5}, {0.3125, -0.3125, 0.3125, 0.5, 0.3125, 0.5}, {-0.5, -0.3125, -0.5, -0.3125, 0.3125, -0.3125}, {0.3125, -0.3125, -0.5, 0.5, 0.3125, -0.3125}, {-0.3125, 0.3125, -0.5, 0.3125, 0.5, -0.3125}, {-0.3125, -0.5, -0.5, 0.3125, -0.3125, -0.3125}, } }, }) -- A modest light source that will move with the digtron, handy for working in a tunnel you aren't bothering to install permanent lights in. minetest.register_node("digtron:light", { description = "Digger Light", groups = {cracky = 3, oddly_breakable_by_hand=3, digtron = 1}, drop = "digtron:light", tiles = {"digtron_light.png"}, drawtype = "nodebox", paramtype = "light", is_ground_content = false, light_source = 10, sounds = default.node_sound_glass_defaults(), paramtype2 = "wallmounted", node_box = { type = "wallmounted", wall_top = {-0.25, 0.3125, -0.25, 0.25, 0.5, 0.25}, wall_bottom = {-0.25, -0.3125, -0.25, 0.25, -0.5, 0.25}, wall_side = {-0.5, -0.25, -0.25, -0.1875, 0.25, 0.25}, }, })