2016-12-31 07:38:18 +01:00
|
|
|
-- 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",
|
2017-01-03 04:07:15 +01:00
|
|
|
groups = {cracky = 3, oddly_breakable_by_hand=3, digtron = 1},
|
2017-01-04 03:43:32 +01:00
|
|
|
drop = "digtron:structure",
|
2016-12-31 07:38:18 +01:00
|
|
|
tiles = {"digtron_plate.png"},
|
|
|
|
drawtype = "nodebox",
|
2017-01-04 07:56:34 +01:00
|
|
|
sounds = digtron.metal_sounds,
|
2017-01-01 05:19:52 +01:00
|
|
|
climbable = true,
|
|
|
|
walkable = false,
|
2016-12-31 07:38:18 +01:00
|
|
|
paramtype = "light",
|
2017-01-06 07:52:09 +01:00
|
|
|
is_ground_content = false,
|
2016-12-31 07:38:18 +01:00
|
|
|
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",
|
2017-01-03 04:07:15 +01:00
|
|
|
groups = {cracky = 3, oddly_breakable_by_hand=3, digtron = 1},
|
2017-01-04 03:43:32 +01:00
|
|
|
drop = "digtron:light",
|
2016-12-31 07:38:18 +01:00
|
|
|
tiles = {"digtron_light.png"},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
2017-01-06 07:52:09 +01:00
|
|
|
is_ground_content = false,
|
2016-12-31 07:38:18 +01:00
|
|
|
light_source = 10,
|
2017-01-02 05:17:52 +01:00
|
|
|
sounds = default.node_sound_glass_defaults(),
|
2016-12-31 07:38:18 +01:00
|
|
|
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},
|
|
|
|
},
|
|
|
|
})
|