mirror of
https://github.com/D00Med/scifi_nodes.git
synced 2025-06-30 15:10:46 +02:00
slopes and a few other nodes
>added slopes >added more doom-ey nodes >added a ladder >added more random nodes >added "strong" glass
This commit is contained in:
218
nodeboxes.lua
218
nodeboxes.lua
@ -11,6 +11,7 @@ minetest.register_node("scifi_nodes:lightbar", {
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "wallmounted",
|
||||
sunlight_propagates = true,
|
||||
light_source = 25,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -21,6 +22,105 @@ minetest.register_node("scifi_nodes:lightbar", {
|
||||
groups = {cracky=1},
|
||||
sounds = default.node_sound_glass_defaults()
|
||||
})
|
||||
--wall switch, currently does not do anything
|
||||
minetest.register_node("scifi_nodes:switch_off", {
|
||||
description = "Wall switch",
|
||||
tiles = {
|
||||
"scifi_nodes_switch_off.png",
|
||||
},
|
||||
inventory_image = "scifi_nodes_switch_on.png",
|
||||
wield_image = "scifi_nodes_switch_on.png",
|
||||
drawtype = "signlike",
|
||||
sunlight_propagates = true,
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
fixed = {-0.5, -0.3, -0.3, -0.45, 0.3, 0.3}
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "wallmounted",
|
||||
groups = {cracky=1, oddly_breakable_by_hand=1},
|
||||
on_rightclick = function(pos, node, clicker, item, _)
|
||||
minetest.set_node(pos, {name="scifi_nodes:switch_on", param2=node.param2})
|
||||
end,
|
||||
sounds = default.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
minetest.register_node("scifi_nodes:switch_on", {
|
||||
description = "Wall switch",
|
||||
sunlight_propagates = true,
|
||||
tiles = {
|
||||
"scifi_nodes_switch_on.png",
|
||||
},
|
||||
inventory_image = "scifi_nodes_switch_on.png",
|
||||
wield_image = "scifi_nodes_switch_on.png",
|
||||
drawtype = "signlike",
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
fixed = {-0.5, -0.3, -0.3, -0.45, 0.3, 0.3}
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "wallmounted",
|
||||
light_source = 5,
|
||||
groups = {cracky=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1},
|
||||
on_rightclick = function(pos, node, clicker, item, _)
|
||||
minetest.set_node(pos, {name="scifi_nodes:switch_off", param2=node.param2})
|
||||
end,
|
||||
sounds = default.node_sound_glass_defaults()
|
||||
})
|
||||
--end of wall switch
|
||||
|
||||
minetest.register_node("scifi_nodes:light_dynamic", {
|
||||
description = "Wall light",
|
||||
tiles = {
|
||||
"scifi_nodes_lightoverlay.png",
|
||||
},
|
||||
inventory_image = "scifi_nodes_lightoverlay.png",
|
||||
wield_image = "scifi_nodes_lightoverlay.png",
|
||||
drawtype = "signlike",
|
||||
paramtype = "light",
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
fixed = {-0.5, -0.5, -0.5, -0.45, 0.5, 0.5}
|
||||
},
|
||||
paramtype2 = "wallmounted",
|
||||
light_source = 25,
|
||||
groups = {cracky=1, oddly_breakable_by_hand=1},
|
||||
sounds = default.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
minetest.register_node("scifi_nodes:ladder", {
|
||||
description = "Metal Ladder",
|
||||
tiles = {
|
||||
"scifi_nodes_ladder.png",
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
fixed = {-0.5, -0.5, -0.5, -0.45, 0.5, 0.5}
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{0.3125, -0.5, -0.4375, 0.4375, -0.375, -0.3125}, -- NodeBox12
|
||||
{-0.4375, -0.5, -0.4375, -0.3125, -0.375, -0.3125}, -- NodeBox13
|
||||
{-0.375, -0.375, -0.4375, 0.375, -0.3125, -0.3125}, -- NodeBox14
|
||||
{-0.375, -0.375, 0.3125, 0.375, -0.3125, 0.4375}, -- NodeBox18
|
||||
{-0.375, -0.375, 0.0625, 0.375, -0.3125, 0.1875}, -- NodeBox19
|
||||
{-0.375, -0.375, -0.1875, 0.375, -0.3125, -0.0625}, -- NodeBox20
|
||||
{-0.4375, -0.5, -0.1875, -0.3125, -0.375, -0.0625}, -- NodeBox21
|
||||
{-0.4375, -0.5, 0.0625, -0.3125, -0.375, 0.1875}, -- NodeBox22
|
||||
{-0.4375, -0.5, 0.3125, -0.3125, -0.375, 0.4375}, -- NodeBox23
|
||||
{0.3125, -0.5, 0.3125, 0.4375, -0.375, 0.4375}, -- NodeBox24
|
||||
{0.3125, -0.5, 0.0625, 0.4375, -0.375, 0.1875}, -- NodeBox25
|
||||
{0.3125, -0.5, -0.1875, 0.4375, -0.375, -0.0625}, -- NodeBox26
|
||||
}
|
||||
},
|
||||
paramtype2 = "wallmounted",
|
||||
walkable = false,
|
||||
climbable = true,
|
||||
groups = {cracky=1, oddly_breakable_by_hand=1},
|
||||
})
|
||||
|
||||
minetest.register_node("scifi_nodes:lightbars", {
|
||||
description = "orange lightbars",
|
||||
@ -330,6 +430,124 @@ minetest.register_node("scifi_nodes:pipen", {
|
||||
on_place = minetest.rotate_node
|
||||
})
|
||||
|
||||
minetest.register_node("scifi_nodes:windowcorner", {
|
||||
description = "strong window corner",
|
||||
tiles = {
|
||||
"scifi_nodes_glassstrngsd2.png",
|
||||
"scifi_nodes_white.png",
|
||||
"scifi_nodes_glassstrngcrnr.png",
|
||||
"scifi_nodes_glassstrngcrnr2.png",
|
||||
"scifi_nodes_white.png",
|
||||
"scifi_nodes_glassstrngsd.png"
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
use_texture_alpha = true,
|
||||
sunlight_propagates = true,
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.3125, -0.5, -0.5, 0.3125, -0.25, 0.5}, -- NodeBox1
|
||||
{-0.3125, -0.25, 0.25, 0.3125, -0.1875, 0.5}, -- NodeBox7
|
||||
{-0.3125, -0.25, 0.3125, 0.3125, -0.125, 0.375}, -- NodeBox8
|
||||
{-0.3125, -0.3125, 0.25, 0.3125, -0.1875, 0.3125}, -- NodeBox9
|
||||
{-0.3125, -0.5, 0.375, 0.3125, 0.5, 0.5}, -- NodeBox10
|
||||
{-0.0625, -0.5, -0.5, 0.0625, 0.5, 0.5}, -- NodeBox11
|
||||
}
|
||||
},
|
||||
groups = {cracky=1},
|
||||
on_place = minetest.rotate_node,
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("scifi_nodes:windowstraight", {
|
||||
description = "strong window",
|
||||
tiles = {
|
||||
"scifi_nodes_glassstrngsd2.png",
|
||||
"scifi_nodes_white.png",
|
||||
"scifi_nodes_glassstrng.png",
|
||||
"scifi_nodes_glassstrng.png",
|
||||
"scifi_nodes_glassstrngsd.png",
|
||||
"scifi_nodes_glassstrngsd.png"
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
use_texture_alpha = true,
|
||||
sunlight_propagates = true,
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.3125, -0.5, -0.5, 0.3125, -0.25, 0.5}, -- NodeBox10
|
||||
{-0.0625, -0.5, -0.5, 0.0625, 0.5, 0.5}, -- NodeBox11
|
||||
}
|
||||
},
|
||||
groups = {cracky=1},
|
||||
on_place = minetest.rotate_node,
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("scifi_nodes:windowcorner2", {
|
||||
description = "strong window corner(black)",
|
||||
tiles = {
|
||||
"scifi_nodes_glassstrngsd4.png",
|
||||
"scifi_nodes_black.png",
|
||||
"scifi_nodes_glassstrngcrnr3.png",
|
||||
"scifi_nodes_glassstrngcrnr4.png",
|
||||
"scifi_nodes_black.png",
|
||||
"scifi_nodes_glassstrngsd3.png"
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
use_texture_alpha = true,
|
||||
sunlight_propagates = true,
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.3125, -0.5, -0.5, 0.3125, -0.25, 0.5}, -- NodeBox1
|
||||
{-0.3125, -0.25, 0.25, 0.3125, -0.1875, 0.5}, -- NodeBox7
|
||||
{-0.3125, -0.25, 0.3125, 0.3125, -0.125, 0.375}, -- NodeBox8
|
||||
{-0.3125, -0.3125, 0.25, 0.3125, -0.1875, 0.3125}, -- NodeBox9
|
||||
{-0.3125, -0.5, 0.375, 0.3125, 0.5, 0.5}, -- NodeBox10
|
||||
{-0.0625, -0.5, -0.5, 0.0625, 0.5, 0.5}, -- NodeBox11
|
||||
}
|
||||
},
|
||||
groups = {cracky=1},
|
||||
on_place = minetest.rotate_node,
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("scifi_nodes:windowstraight2", {
|
||||
description = "strong window(black)",
|
||||
tiles = {
|
||||
"scifi_nodes_glassstrngsd4.png",
|
||||
"scifi_nodes_black.png",
|
||||
"scifi_nodes_glassstrng2.png",
|
||||
"scifi_nodes_glassstrng2.png",
|
||||
"scifi_nodes_glassstrngsd3.png",
|
||||
"scifi_nodes_glassstrngsd3.png"
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
use_texture_alpha = true,
|
||||
sunlight_propagates = true,
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.3125, -0.5, -0.5, 0.3125, -0.25, 0.5}, -- NodeBox10
|
||||
{-0.0625, -0.5, -0.5, 0.0625, 0.5, 0.5}, -- NodeBox11
|
||||
}
|
||||
},
|
||||
groups = {cracky=1},
|
||||
on_place = minetest.rotate_node,
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
|
||||
|
||||
minetest.register_node("scifi_nodes:capsule", {
|
||||
description = "sample capsule",
|
||||
tiles = {
|
||||
|
Reference in New Issue
Block a user