slopes and a few other nodes
>added slopes >added more doom-ey nodes >added a ladder >added more random nodes >added "strong" glass
11
doors.lua
@ -16,7 +16,8 @@
|
|||||||
|
|
||||||
local doors = {
|
local doors = {
|
||||||
{"scifi_nodes:door2a","scifi_nodes:door2b","scifi_nodes:door2c","scifi_nodes:door2d","2","black"},
|
{"scifi_nodes:door2a","scifi_nodes:door2b","scifi_nodes:door2c","scifi_nodes:door2d","2","black"},
|
||||||
{"scifi_nodes:door3a","scifi_nodes:door3b","scifi_nodes:door3c","scifi_nodes:door3d","3","white"},}
|
{"scifi_nodes:door3a","scifi_nodes:door3b","scifi_nodes:door3c","scifi_nodes:door3d","3","white"},
|
||||||
|
{"scifi_nodes:door1a","scifi_nodes:door1b","scifi_nodes:door1c","scifi_nodes:door1d","1","Doom"},}
|
||||||
|
|
||||||
for i in ipairs (doors) do
|
for i in ipairs (doors) do
|
||||||
local doora = doors[i][1]
|
local doora = doors[i][1]
|
||||||
@ -140,7 +141,7 @@ minetest.register_node(doora, {
|
|||||||
"scifi_nodes_door"..num.."a_edge.png",
|
"scifi_nodes_door"..num.."a_edge.png",
|
||||||
"scifi_nodes_door"..num.."a_edge.png",
|
"scifi_nodes_door"..num.."a_edge.png",
|
||||||
"scifi_nodes_door"..num.."a_edge.png",
|
"scifi_nodes_door"..num.."a_edge.png",
|
||||||
"scifi_nodes_door"..num.."a_bottom.png^[transformFX",
|
"scifi_nodes_door"..num.."a_rbottom.png",
|
||||||
"scifi_nodes_door"..num.."a_bottom.png"
|
"scifi_nodes_door"..num.."a_bottom.png"
|
||||||
},
|
},
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -172,7 +173,7 @@ minetest.register_node(doorb, {
|
|||||||
"scifi_nodes_door"..num.."a_edge.png",
|
"scifi_nodes_door"..num.."a_edge.png",
|
||||||
"scifi_nodes_door"..num.."a_edge.png",
|
"scifi_nodes_door"..num.."a_edge.png",
|
||||||
"scifi_nodes_door"..num.."a_edge.png",
|
"scifi_nodes_door"..num.."a_edge.png",
|
||||||
"scifi_nodes_door"..num.."a_top.png^[transformFX",
|
"scifi_nodes_door"..num.."a_rtop.png",
|
||||||
"scifi_nodes_door"..num.."a_top.png"
|
"scifi_nodes_door"..num.."a_top.png"
|
||||||
},
|
},
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -197,7 +198,7 @@ minetest.register_node(doorb, {
|
|||||||
"scifi_nodes_door"..num.."a_edge.png",
|
"scifi_nodes_door"..num.."a_edge.png",
|
||||||
"scifi_nodes_door"..num.."a_edge.png",
|
"scifi_nodes_door"..num.."a_edge.png",
|
||||||
"scifi_nodes_door"..num.."a_edge.png",
|
"scifi_nodes_door"..num.."a_edge.png",
|
||||||
"scifi_nodes_door"..num.."a_bottom0.png^[transformFX",
|
"scifi_nodes_door"..num.."a_rbottom0.png",
|
||||||
"scifi_nodes_door"..num.."a_bottom0.png"
|
"scifi_nodes_door"..num.."a_bottom0.png"
|
||||||
},
|
},
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -227,7 +228,7 @@ minetest.register_node(doord, {
|
|||||||
"scifi_nodes_door"..num.."a_edge.png",
|
"scifi_nodes_door"..num.."a_edge.png",
|
||||||
"scifi_nodes_door"..num.."a_edge.png",
|
"scifi_nodes_door"..num.."a_edge.png",
|
||||||
"scifi_nodes_door"..num.."a_edge.png",
|
"scifi_nodes_door"..num.."a_edge.png",
|
||||||
"scifi_nodes_door"..num.."a_topo.png^[transformFX",
|
"scifi_nodes_door"..num.."a_rtopo.png",
|
||||||
"scifi_nodes_door"..num.."a_topo.png"
|
"scifi_nodes_door"..num.."a_topo.png"
|
||||||
},
|
},
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
|
36
init.lua
@ -16,6 +16,28 @@ minetest.register_node("scifi_nodes:light", {
|
|||||||
groups = {cracky=1}
|
groups = {cracky=1}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_node("scifi_nodes:rfloor", {
|
||||||
|
description = "rusty floor",
|
||||||
|
tiles = {
|
||||||
|
"scifi_nodes_rustfloor.png",
|
||||||
|
},
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
light_source = 10,
|
||||||
|
groups = {cracky=1}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("scifi_nodes:bfloor", {
|
||||||
|
description = "blue floor",
|
||||||
|
tiles = {
|
||||||
|
"scifi_nodes_bluefloor.png",
|
||||||
|
},
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
light_source = 10,
|
||||||
|
groups = {cracky=1}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("scifi_nodes:stripes2", {
|
minetest.register_node("scifi_nodes:stripes2", {
|
||||||
description = "hazard stripes2",
|
description = "hazard stripes2",
|
||||||
@ -290,7 +312,18 @@ node.types = {
|
|||||||
{"doomwall2", "Doom wall 2", "doomwall2"},
|
{"doomwall2", "Doom wall 2", "doomwall2"},
|
||||||
{"doomwall3", "Doom wall 3", "doomwall3"},
|
{"doomwall3", "Doom wall 3", "doomwall3"},
|
||||||
{"doomwall4", "Doom wall 4", "doomwall4"},
|
{"doomwall4", "Doom wall 4", "doomwall4"},
|
||||||
|
{"doomwall41", "Doom wall 4.1", "doomwall4.1"},
|
||||||
|
{"doomwall42", "Doom wall 4.2", "doomwall4.2"},
|
||||||
|
{"doomwall43", "Doom wall 4.3", "doomwall4.3"},
|
||||||
|
{"doomwall431", "Doom wall 4.3.1", "doomwall4.3.1"},
|
||||||
|
{"doomwall44", "Doom wall 4.4", "doomwall4.4"},
|
||||||
|
{"blackdmg", "Damaged black wall", "blckdmg"},
|
||||||
|
{"blackdmgstripe", "Damaged black wall(stripes)", "blckdmgstripe"},
|
||||||
|
{"doomengine", "Doom engine wall", "doomengine"},
|
||||||
|
{"monitorwall", "Wall monitors", "monitorwall"},
|
||||||
|
{"screen3", "Wall monitor", "screen3"},
|
||||||
{"doomlight", "Doom light", "doomlight", "12"},
|
{"doomlight", "Doom light", "doomlight", "12"},
|
||||||
|
{"bluwllight", "Blue wall light", "capsule3", "20"},
|
||||||
{"fan", "Fan", "fan"},
|
{"fan", "Fan", "fan"},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -309,7 +342,7 @@ for _, row in ipairs(node.types) do
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
--chest code from default(couldn't find creator?)
|
--chest code from default(Copyright (C) 2012 celeron55, Perttu Ahola <celeron55@gmail.com>)
|
||||||
|
|
||||||
local chest_formspec =
|
local chest_formspec =
|
||||||
"size[8,9]" ..
|
"size[8,9]" ..
|
||||||
@ -513,3 +546,4 @@ dofile(minetest.get_modpath("scifi_nodes").."/panes.lua")
|
|||||||
end
|
end
|
||||||
dofile(minetest.get_modpath("scifi_nodes").."/doors.lua")
|
dofile(minetest.get_modpath("scifi_nodes").."/doors.lua")
|
||||||
dofile(minetest.get_modpath("scifi_nodes").."/nodeboxes.lua")
|
dofile(minetest.get_modpath("scifi_nodes").."/nodeboxes.lua")
|
||||||
|
dofile(minetest.get_modpath("scifi_nodes").."/models.lua")
|
19
license.txt
@ -43,3 +43,22 @@ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
|||||||
1. You are allowed to do whatever you want to with what content is using this license.
|
1. You are allowed to do whatever you want to with what content is using this license.
|
||||||
2. This content is provided 'as-is', without any express or implied warranty. In no event
|
2. This content is provided 'as-is', without any express or implied warranty. In no event
|
||||||
will the authors be held liable for any damages arising from the use of this content.
|
will the authors be held liable for any damages arising from the use of this content.
|
||||||
|
|
||||||
|
|
||||||
|
For moreblocks_slope.obj:
|
||||||
|
|
||||||
|
zlib license
|
||||||
|
============
|
||||||
|
|
||||||
|
Copyright (c) 2011-2015 Calinou and contributors
|
||||||
|
|
||||||
|
**This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.**
|
||||||
|
|
||||||
|
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
|
||||||
|
|
||||||
|
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
|
||||||
|
|
||||||
|
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
|
||||||
|
|
||||||
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
|
**Forum topic:** <https://forum.minetest.net/viewtopic.php?f=11&t=509>
|
54
models.lua
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
--some code taken from moreblocks(the collision and selection boxes), license below:
|
||||||
|
--Copyright (c) 2011-2015 Calinou and contributors.
|
||||||
|
--Licensed under the zlib license.
|
||||||
|
|
||||||
|
scifi_nodes = {}
|
||||||
|
|
||||||
|
function scifi_nodes.register_slope(name, desc, texture, light)
|
||||||
|
minetest.register_node("scifi_nodes:slope_"..name, {
|
||||||
|
description = desc.." Slope",
|
||||||
|
sunlight_propagates = false,
|
||||||
|
drawtype = "mesh",
|
||||||
|
mesh = "moreblocks_slope.obj",
|
||||||
|
tiles = texture,
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
|
||||||
|
{-0.5, -0.25, -0.25, 0.5, 0, 0.5},
|
||||||
|
{-0.5, 0, 0, 0.5, 0.25, 0.5},
|
||||||
|
{-0.5, 0.25, 0.25, 0.5, 0.5, 0.5}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
collision_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
|
||||||
|
{-0.5, -0.25, -0.25, 0.5, 0, 0.5},
|
||||||
|
{-0.5, 0, 0, 0.5, 0.25, 0.5},
|
||||||
|
{-0.5, 0.25, 0.25, 0.5, 0.5, 0.5}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
light_source = light,
|
||||||
|
groups = {cracky=1},
|
||||||
|
on_place = minetest.rotate_node
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
scifi_nodes.register_slope("black", "black", {"scifi_nodes_black.png",}, 0)
|
||||||
|
scifi_nodes.register_slope("white", "white", {"scifi_nodes_white.png",}, 0)
|
||||||
|
scifi_nodes.register_slope("grey", "grey", {"scifi_nodes_grey.png",}, 0)
|
||||||
|
scifi_nodes.register_slope("blue", "blue", {"scifi_nodes_bluebars.png",}, 0)
|
||||||
|
scifi_nodes.register_slope("mesh", "mesh", {"scifi_nodes_mesh2.png",}, 0)
|
||||||
|
scifi_nodes.register_slope("vent", "vent", {"scifi_nodes_vent2.png",}, 0)
|
||||||
|
scifi_nodes.register_slope("rlight", "red light", {"scifi_nodes_redlight.png",}, 0)
|
||||||
|
scifi_nodes.register_slope("blight", "blue light", {"scifi_nodes_light.png",}, 0)
|
||||||
|
scifi_nodes.register_slope("glight", "green light", {"scifi_nodes_greenlight.png",}, 0)
|
||||||
|
scifi_nodes.register_slope("holes", "holes", {"scifi_nodes_holes.png",}, 0)
|
||||||
|
scifi_nodes.register_slope("pipe", "pipe", {"scifi_nodes_pipe.png",}, 0)
|
||||||
|
scifi_nodes.register_slope("stripes", "stripes", {"scifi_nodes_stripes.png",}, 0)
|
||||||
|
scifi_nodes.register_slope("screen", "screen", {"scifi_nodes_screen3.png",}, 5)
|
||||||
|
scifi_nodes.register_slope("lightstripe", "lightstripe", {"scifi_nodes_lightstripe.png",}, 20)
|
||||||
|
scifi_nodes.register_slope("blight2", "blue light 2", {"scifi_nodes_capsule3.png",}, 20)
|
21
models/moreblocks_slope.obj
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Blender v2.69 (sub 0) OBJ File: 'slope_test_slope_onetexture.blend'
|
||||||
|
# www.blender.org
|
||||||
|
mtllib slope_test_slope_onetexture.mtl
|
||||||
|
o Cube_Cube.002
|
||||||
|
v 0.500000 0.500000 0.500000
|
||||||
|
v -0.500000 0.500000 0.500000
|
||||||
|
v -0.500000 -0.500000 0.500000
|
||||||
|
v 0.500000 -0.500000 0.500000
|
||||||
|
v -0.500000 -0.500000 -0.500000
|
||||||
|
v 0.500000 -0.500000 -0.500000
|
||||||
|
vt 1.000000 1.000000
|
||||||
|
vt 0.000000 1.000000
|
||||||
|
vt 0.000000 0.000000
|
||||||
|
vt 1.000000 0.000000
|
||||||
|
usemtl None
|
||||||
|
s off
|
||||||
|
f 1/1 2/2 3/3 4/4
|
||||||
|
f 4/3 3/4 5/1 6/2
|
||||||
|
f 2/1 5/3 3/4
|
||||||
|
f 1/2 4/3 6/4
|
||||||
|
f 2/1 1/2 6/3 5/4
|
218
nodeboxes.lua
@ -11,6 +11,7 @@ minetest.register_node("scifi_nodes:lightbar", {
|
|||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
|
sunlight_propagates = true,
|
||||||
light_source = 25,
|
light_source = 25,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
@ -21,6 +22,105 @@ minetest.register_node("scifi_nodes:lightbar", {
|
|||||||
groups = {cracky=1},
|
groups = {cracky=1},
|
||||||
sounds = default.node_sound_glass_defaults()
|
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", {
|
minetest.register_node("scifi_nodes:lightbars", {
|
||||||
description = "orange lightbars",
|
description = "orange lightbars",
|
||||||
@ -330,6 +430,124 @@ minetest.register_node("scifi_nodes:pipen", {
|
|||||||
on_place = minetest.rotate_node
|
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", {
|
minetest.register_node("scifi_nodes:capsule", {
|
||||||
description = "sample capsule",
|
description = "sample capsule",
|
||||||
tiles = {
|
tiles = {
|
||||||
|
BIN
textures/scifi_nodes_blackdmg.png
Normal file
After Width: | Height: | Size: 491 B |
BIN
textures/scifi_nodes_blackdmgstripe.png
Normal file
After Width: | Height: | Size: 575 B |
Before Width: | Height: | Size: 758 B After Width: | Height: | Size: 791 B |
Before Width: | Height: | Size: 218 B After Width: | Height: | Size: 239 B |
Before Width: | Height: | Size: 241 B After Width: | Height: | Size: 268 B |
BIN
textures/scifi_nodes_bluefloor.png
Normal file
After Width: | Height: | Size: 265 B |
Before Width: | Height: | Size: 86 B After Width: | Height: | Size: 107 B |
Before Width: | Height: | Size: 133 B After Width: | Height: | Size: 154 B |
BIN
textures/scifi_nodes_bluwllight.png
Normal file
After Width: | Height: | Size: 222 B |
BIN
textures/scifi_nodes_doomengine.png
Normal file
After Width: | Height: | Size: 603 B |
Before Width: | Height: | Size: 702 B After Width: | Height: | Size: 716 B |
BIN
textures/scifi_nodes_doomwall41.png
Normal file
After Width: | Height: | Size: 791 B |
BIN
textures/scifi_nodes_doomwall42.png
Normal file
After Width: | Height: | Size: 730 B |
BIN
textures/scifi_nodes_doomwall43.png
Normal file
After Width: | Height: | Size: 768 B |
BIN
textures/scifi_nodes_doomwall431.png
Normal file
After Width: | Height: | Size: 787 B |
BIN
textures/scifi_nodes_doomwall44.png
Normal file
After Width: | Height: | Size: 731 B |
BIN
textures/scifi_nodes_door1a_bottom.png
Normal file
After Width: | Height: | Size: 754 B |
BIN
textures/scifi_nodes_door1a_bottom0.png
Normal file
After Width: | Height: | Size: 314 B |
BIN
textures/scifi_nodes_door1a_edge.png
Normal file
After Width: | Height: | Size: 91 B |
BIN
textures/scifi_nodes_door1a_inv.png
Normal file
After Width: | Height: | Size: 502 B |
BIN
textures/scifi_nodes_door1a_rbottom.png
Normal file
After Width: | Height: | Size: 780 B |
BIN
textures/scifi_nodes_door1a_rbottom0.png
Normal file
After Width: | Height: | Size: 308 B |
BIN
textures/scifi_nodes_door1a_rtop.png
Normal file
After Width: | Height: | Size: 637 B |
BIN
textures/scifi_nodes_door1a_rtopo.png
Normal file
After Width: | Height: | Size: 270 B |
BIN
textures/scifi_nodes_door1a_top.png
Normal file
After Width: | Height: | Size: 691 B |
BIN
textures/scifi_nodes_door1a_topo.png
Normal file
After Width: | Height: | Size: 275 B |
BIN
textures/scifi_nodes_door2a_rbottom.png
Normal file
After Width: | Height: | Size: 351 B |
BIN
textures/scifi_nodes_door2a_rbottom0.png
Normal file
After Width: | Height: | Size: 212 B |
BIN
textures/scifi_nodes_door2a_rtop.png
Normal file
After Width: | Height: | Size: 401 B |
BIN
textures/scifi_nodes_door2a_rtopo.png
Normal file
After Width: | Height: | Size: 269 B |
BIN
textures/scifi_nodes_door3a_rbottom.png
Normal file
After Width: | Height: | Size: 218 B |
BIN
textures/scifi_nodes_door3a_rbottom0.png
Normal file
After Width: | Height: | Size: 166 B |
BIN
textures/scifi_nodes_door3a_rtop.png
Normal file
After Width: | Height: | Size: 258 B |
BIN
textures/scifi_nodes_door3a_rtopo.png
Normal file
After Width: | Height: | Size: 164 B |
BIN
textures/scifi_nodes_glassstrng.png
Normal file
After Width: | Height: | Size: 114 B |
BIN
textures/scifi_nodes_glassstrng2.png
Normal file
After Width: | Height: | Size: 113 B |
BIN
textures/scifi_nodes_glassstrngcrnr.png
Normal file
After Width: | Height: | Size: 133 B |
BIN
textures/scifi_nodes_glassstrngcrnr2.png
Normal file
After Width: | Height: | Size: 129 B |
BIN
textures/scifi_nodes_glassstrngcrnr3.png
Normal file
After Width: | Height: | Size: 127 B |
BIN
textures/scifi_nodes_glassstrngcrnr4.png
Normal file
After Width: | Height: | Size: 131 B |
BIN
textures/scifi_nodes_glassstrngsd.png
Normal file
After Width: | Height: | Size: 127 B |
BIN
textures/scifi_nodes_glassstrngsd2.png
Normal file
After Width: | Height: | Size: 122 B |
BIN
textures/scifi_nodes_glassstrngsd3.png
Normal file
After Width: | Height: | Size: 129 B |
BIN
textures/scifi_nodes_glassstrngsd4.png
Normal file
After Width: | Height: | Size: 122 B |
BIN
textures/scifi_nodes_ladder.png
Normal file
After Width: | Height: | Size: 169 B |
BIN
textures/scifi_nodes_lightoverlay.png
Normal file
After Width: | Height: | Size: 628 B |
BIN
textures/scifi_nodes_monitorwall.png
Normal file
After Width: | Height: | Size: 349 B |
BIN
textures/scifi_nodes_rustfloor.png
Normal file
After Width: | Height: | Size: 336 B |
BIN
textures/scifi_nodes_screen3.png
Normal file
After Width: | Height: | Size: 513 B |
BIN
textures/scifi_nodes_switch_off.png
Normal file
After Width: | Height: | Size: 405 B |
BIN
textures/scifi_nodes_switch_on.png
Normal file
After Width: | Height: | Size: 393 B |