mirror of
https://github.com/minetest-mods/digtron.git
synced 2024-12-22 20:32:22 +01:00
Various structural panels
This commit is contained in:
parent
795fc6ea93
commit
105b8a068f
@ -1,6 +1,6 @@
|
||||
-- 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",
|
||||
description = "Digtron Structure",
|
||||
groups = {cracky = 3, oddly_breakable_by_hand=3, digtron = 1},
|
||||
drop = "digtron:structure",
|
||||
tiles = {"digtron_plate.png"},
|
||||
@ -31,7 +31,7 @@ minetest.register_node("digtron:structure", {
|
||||
|
||||
-- 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",
|
||||
description = "Digtron Light",
|
||||
groups = {cracky = 3, oddly_breakable_by_hand=3, digtron = 1},
|
||||
drop = "digtron:light",
|
||||
tiles = {"digtron_light.png"},
|
||||
@ -48,3 +48,80 @@ minetest.register_node("digtron:light", {
|
||||
wall_side = {-0.5, -0.25, -0.25, -0.1875, 0.25, 0.25},
|
||||
},
|
||||
})
|
||||
|
||||
-- A simple structural panel
|
||||
minetest.register_node("digtron:panel", {
|
||||
description = "Digtron Panel",
|
||||
groups = {cracky = 3, oddly_breakable_by_hand=3, digtron = 1},
|
||||
drop = "digtron:panel",
|
||||
tiles = {"digtron_plate.png"},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
is_ground_content = false,
|
||||
sounds = digtron.metal_sounds,
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
|
||||
},
|
||||
collision_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
|
||||
},
|
||||
})
|
||||
|
||||
-- A simple structural panel
|
||||
minetest.register_node("digtron:edge_panel", {
|
||||
description = "Digtron Edge Panel",
|
||||
groups = {cracky = 3, oddly_breakable_by_hand=3, digtron = 1},
|
||||
drop = "digtron:edge_panel",
|
||||
tiles = {"digtron_plate.png"},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
is_ground_content = false,
|
||||
sounds = digtron.metal_sounds,
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, 0.375, 0.5, 0.5, 0.5},
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.375, 0.375}
|
||||
},
|
||||
},
|
||||
collision_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, 0.4375, 0.5, 0.5, 0.5},
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.4375}
|
||||
},
|
||||
},
|
||||
|
||||
})
|
||||
|
||||
minetest.register_node("digtron:corner_panel", {
|
||||
description = "Digtron Corner Panel",
|
||||
groups = {cracky = 3, oddly_breakable_by_hand=3, digtron = 1},
|
||||
drop = "digtron:corner_panel",
|
||||
tiles = {"digtron_plate.png"},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
is_ground_content = false,
|
||||
sounds = digtron.metal_sounds,
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, 0.375, 0.5, 0.5, 0.5},
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.375, 0.375},
|
||||
{-0.5, -0.375, -0.5, -0.375, 0.5, 0.375},
|
||||
},
|
||||
},
|
||||
collision_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, 0.4375, 0.5, 0.5, 0.5},
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.4375},
|
||||
{-0.5, -0.4375, -0.5, -0.4375, 0.5, 0.4375},
|
||||
},
|
||||
},
|
||||
})
|
56
recipes.lua
56
recipes.lua
@ -93,6 +93,17 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "digtron:pusher",
|
||||
recipe = {
|
||||
{"","default:coal_lump",""},
|
||||
{"default:coal_lump","digtron:digtron_core","default:coal_lump"},
|
||||
{"","default:coal_lump",""}
|
||||
}
|
||||
})
|
||||
|
||||
-- Structural
|
||||
|
||||
minetest.register_craft({
|
||||
output = "digtron:structure",
|
||||
recipe = {
|
||||
@ -103,11 +114,29 @@ minetest.register_craft({
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "digtron:pusher",
|
||||
output = "digtron:panel",
|
||||
recipe = {
|
||||
{"","default:coal_lump",""},
|
||||
{"default:coal_lump","digtron:digtron_core","default:coal_lump"},
|
||||
{"","default:coal_lump",""}
|
||||
{"","",""},
|
||||
{"","digtron:digtron_core",""},
|
||||
{"","default:steel_ingot",""}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "digtron:edge_panel",
|
||||
recipe = {
|
||||
{"","",""},
|
||||
{"","digtron:digtron_core","default:steel_ingot"},
|
||||
{"","default:steel_ingot",""}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "digtron:corner_panel",
|
||||
recipe = {
|
||||
{"","",""},
|
||||
{"default:steel_ingot","digtron:digtron_core","default:steel_ingot"},
|
||||
{"","","default:steel_ingot"}
|
||||
}
|
||||
})
|
||||
|
||||
@ -145,6 +174,25 @@ minetest.register_craft({
|
||||
{"digtron:structure"},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "digtron:digtron_core",
|
||||
recipe = {
|
||||
{"digtron:panel"},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "digtron:digtron_core",
|
||||
recipe = {
|
||||
{"digtron:corner_panel"},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "digtron:digtron_core",
|
||||
recipe = {
|
||||
{"digtron:edge_panel"},
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
output = "digtron:digtron_core",
|
||||
|
Loading…
Reference in New Issue
Block a user