mirror of
https://github.com/D00Med/scifi_nodes.git
synced 2024-12-22 16:10:18 +01:00
is ground content revision (#81)
also cleaned up some of the whitespace indentation and one occurance where ';' was being used instead of ','
This commit is contained in:
parent
014ca0179f
commit
49703e7386
31
builder.lua
31
builder.lua
@ -86,25 +86,26 @@ minetest.register_node("scifi_nodes:builder", {
|
|||||||
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
local istack = inv:get_stack("input", 1)
|
local istack = inv:get_stack("input", 1)
|
||||||
local stack_name = istack:get_name()
|
local stack_name = istack:get_name()
|
||||||
inv:remove_item("input", stack_name.." 1")
|
inv:remove_item("input", stack_name.." 1")
|
||||||
|
|
||||||
inv:set_stack("output", 1, "")
|
inv:set_stack("output", 1, "")
|
||||||
inv:set_stack("output", 2, "")
|
inv:set_stack("output", 2, "")
|
||||||
inv:set_stack("output", 3, "")
|
inv:set_stack("output", 3, "")
|
||||||
inv:set_stack("output", 4, "")
|
inv:set_stack("output", 4, "")
|
||||||
inv:set_stack("output", 5, "")
|
inv:set_stack("output", 5, "")
|
||||||
inv:set_stack("output", 6, "")
|
inv:set_stack("output", 6, "")
|
||||||
inv:set_stack("output", 7, "")
|
inv:set_stack("output", 7, "")
|
||||||
inv:set_stack("output", 8, "")
|
inv:set_stack("output", 8, "")
|
||||||
inv:set_stack("output", 9, "")
|
inv:set_stack("output", 9, "")
|
||||||
inv:set_stack("output", 10, "")
|
inv:set_stack("output", 10, "")
|
||||||
inv:set_stack("output", 11, "")
|
inv:set_stack("output", 11, "")
|
||||||
inv:set_stack("output", 12, "")
|
inv:set_stack("output", 12, "")
|
||||||
end,
|
end,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1},
|
groups = {cracky=1, oddly_breakable_by_hand=1},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_metal_defaults(),
|
sounds = scifi_nodes.node_sound_metal_defaults(),
|
||||||
})
|
})
|
||||||
|
@ -102,7 +102,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||||||
end
|
end
|
||||||
-- play sound at context position
|
-- play sound at context position
|
||||||
minetest.sound_play(sounds[sound_index], {
|
minetest.sound_play(sounds[sound_index], {
|
||||||
pos = context.pos,
|
pos = context.pos,
|
||||||
max_hear_distance = 10
|
max_hear_distance = 10
|
||||||
})
|
})
|
||||||
context[player:get_player_name()] = nil -- we don't need it anymore
|
context[player:get_player_name()] = nil -- we don't need it anymore
|
||||||
@ -122,6 +122,7 @@ minetest.register_node("scifi_nodes:digicode_on", {
|
|||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
light_source = 5,
|
light_source = 5,
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1, mesecon_needs_receiver = 1},
|
groups = {cracky=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1, mesecon_needs_receiver = 1},
|
||||||
|
is_ground_content = false,
|
||||||
drop = "scifi_nodes:digicode_off",
|
drop = "scifi_nodes:digicode_off",
|
||||||
mesecons = {
|
mesecons = {
|
||||||
receptor = {
|
receptor = {
|
||||||
@ -145,6 +146,7 @@ minetest.register_node("scifi_nodes:digicode_off", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1, mesecon_needs_receiver = 1},
|
groups = {cracky=1, oddly_breakable_by_hand=1, mesecon_needs_receiver = 1},
|
||||||
|
is_ground_content = false,
|
||||||
mesecons = {
|
mesecons = {
|
||||||
receptor = {
|
receptor = {
|
||||||
state = (has_mesecons and mesecon.state.off)
|
state = (has_mesecons and mesecon.state.off)
|
||||||
|
@ -246,6 +246,7 @@ for _, current_door in ipairs(doors) do
|
|||||||
scifi_nodes_door = 1,
|
scifi_nodes_door = 1,
|
||||||
door = 1
|
door = 1
|
||||||
},
|
},
|
||||||
|
is_ground_content = false,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
@ -279,6 +280,7 @@ for _, current_door in ipairs(doors) do
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {cracky = 1, dig_generic = 3, door = 1},
|
groups = {cracky = 1, dig_generic = 3, door = 1},
|
||||||
|
is_ground_content = false,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
@ -309,6 +311,7 @@ for _, current_door in ipairs(doors) do
|
|||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
drop = closed,
|
drop = closed,
|
||||||
groups = {cracky = 1, dig_generic = 3, door = 2},
|
groups = {cracky = 1, dig_generic = 3, door = 2},
|
||||||
|
is_ground_content = false,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
@ -340,6 +343,7 @@ for _, current_door in ipairs(doors) do
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {cracky = 1, dig_generic = 3, door = 2},
|
groups = {cracky = 1, dig_generic = 3, door = 2},
|
||||||
|
is_ground_content = false,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
|
@ -6,6 +6,7 @@ minetest.register_node("scifi_nodes:forcefield", {
|
|||||||
cracky = 1,
|
cracky = 1,
|
||||||
level = 3
|
level = 3
|
||||||
},
|
},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults(),
|
sounds = scifi_nodes.node_sound_glass_defaults(),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
light_source = minetest.LIGHT_MAX,
|
light_source = minetest.LIGHT_MAX,
|
||||||
|
37
models.lua
37
models.lua
@ -16,29 +16,30 @@ function scifi_nodes.register_slope(name, desc, texture, light, soundtype)
|
|||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
mesh = "scifi_nodes_slope.obj",
|
mesh = "scifi_nodes_slope.obj",
|
||||||
tiles = texture,
|
tiles = texture,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
|
{-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.25, -0.25, 0.5, 0, 0.5},
|
||||||
{-0.5, 0, 0, 0.5, 0.25, 0.5},
|
{-0.5, 0, 0, 0.5, 0.25, 0.5},
|
||||||
{-0.5, 0.25, 0.25, 0.5, 0.5, 0.5}
|
{-0.5, 0.25, 0.25, 0.5, 0.5, 0.5}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
collision_box = {
|
collision_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
|
{-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.25, -0.25, 0.5, 0, 0.5},
|
||||||
{-0.5, 0, 0, 0.5, 0.25, 0.5},
|
{-0.5, 0, 0, 0.5, 0.25, 0.5},
|
||||||
{-0.5, 0.25, 0.25, 0.5, 0.5, 0.5}
|
{-0.5, 0.25, 0.25, 0.5, 0.5, 0.5}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
use_texture_alpha = "clip",
|
use_texture_alpha = "clip",
|
||||||
light_source = light,
|
light_source = light,
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
on_place = minetest.rotate_node,
|
on_place = minetest.rotate_node,
|
||||||
sounds = sounds,
|
sounds = sounds,
|
||||||
})
|
})
|
||||||
|
208
nodeboxes.lua
208
nodeboxes.lua
@ -19,6 +19,7 @@ minetest.register_node("scifi_nodes:alienslope", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
@ -50,6 +51,7 @@ minetest.register_node("scifi_nodes:wallpipe", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
@ -82,6 +84,7 @@ minetest.register_node("scifi_nodes:plant_trap", {
|
|||||||
walkable = false,
|
walkable = false,
|
||||||
sunlight_propagates = false,
|
sunlight_propagates = false,
|
||||||
groups = {snappy=1, oddly_breakable_by_hand=1},
|
groups = {snappy=1, oddly_breakable_by_hand=1},
|
||||||
|
is_ground_content = false,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
@ -108,6 +111,7 @@ minetest.register_node("scifi_nodes:egg", {
|
|||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1, dig_immediate=2, falling_node=1, dig_generic = 3},
|
groups = {cracky=1, oddly_breakable_by_hand=1, dig_immediate=2, falling_node=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
light_source = 5,
|
light_source = 5,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
@ -127,14 +131,14 @@ minetest.register_node("scifi_nodes:egg", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
if minetest.get_modpath("scifi_mobs") then
|
if minetest.get_modpath("scifi_mobs") then
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"scifi_nodes:egg"},
|
nodenames = {"scifi_nodes:egg"},
|
||||||
interval = 30, chance = 10,
|
interval = 30, chance = 10,
|
||||||
action = function(pos, node, _, _)
|
action = function(pos, node, _, _)
|
||||||
minetest.add_entity(pos, "scifi_mobs:xenomorph")
|
minetest.add_entity(pos, "scifi_mobs:xenomorph")
|
||||||
minetest.remove_node(pos)
|
minetest.remove_node(pos)
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_node("scifi_nodes:pad", {
|
minetest.register_node("scifi_nodes:pad", {
|
||||||
@ -150,6 +154,7 @@ minetest.register_node("scifi_nodes:pad", {
|
|||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1},
|
groups = {cracky=1, oddly_breakable_by_hand=1},
|
||||||
|
is_ground_content = false,
|
||||||
light_source = 5,
|
light_source = 5,
|
||||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||||
local placer_name = placer:get_player_name()
|
local placer_name = placer:get_player_name()
|
||||||
@ -168,92 +173,93 @@ minetest.register_node("scifi_nodes:pad", {
|
|||||||
local clicker_name = clicker:get_player_name()
|
local clicker_name = clicker:get_player_name()
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
if meta:get_int("type") == 1 and position2 ~= nil and position1 ~= nil then
|
if meta:get_int("type") == 1 and position2 ~= nil and position1 ~= nil then
|
||||||
minetest.add_particlespawner(
|
minetest.add_particlespawner(
|
||||||
25, --amount
|
25, --amount
|
||||||
1.5, --time
|
1.5, --time
|
||||||
{x=pos.x-0.9, y=pos.y-0.3, z=pos.z-0.9}, --minpos
|
{x=pos.x-0.9, y=pos.y-0.3, z=pos.z-0.9}, --minpos
|
||||||
{x=pos.x+0.9, y=pos.y-0.3, z=pos.z+0.9}, --maxpos
|
{x=pos.x+0.9, y=pos.y-0.3, z=pos.z+0.9}, --maxpos
|
||||||
{x=0, y=0, z=0}, --minvel
|
{x=0, y=0, z=0}, --minvel
|
||||||
{x=0, y=0, z=0}, --maxvel
|
{x=0, y=0, z=0}, --maxvel
|
||||||
{x=-0,y=1,z=-0}, --minacc
|
{x=-0,y=1,z=-0}, --minacc
|
||||||
{x=0,y=2,z=0}, --maxacc
|
{x=0,y=2,z=0}, --maxacc
|
||||||
0.5, --minexptime
|
0.5, --minexptime
|
||||||
1, --maxexptime
|
1, --maxexptime
|
||||||
2, --minsize
|
2, --minsize
|
||||||
5, --maxsize
|
5, --maxsize
|
||||||
false, --collisiondetection
|
false, --collisiondetection
|
||||||
"scifi_nodes_tp_part.png" --texture
|
"scifi_nodes_tp_part.png" --texture
|
||||||
)
|
)
|
||||||
minetest.after(1, function()
|
minetest.after(1, function()
|
||||||
local ppos = clicker:getpos()
|
local ppos = clicker:getpos()
|
||||||
if minetest.get_node({x=ppos.x, y=ppos.y, z=ppos.z}).name == "scifi_nodes:pad" then
|
if minetest.get_node({x=ppos.x, y=ppos.y, z=ppos.z}).name == "scifi_nodes:pad" then
|
||||||
clicker:setpos(position2)
|
clicker:setpos(position2)
|
||||||
end
|
|
||||||
local objs = minetest.get_objects_inside_radius(pos, 3)
|
|
||||||
for _, obj in pairs(objs) do
|
|
||||||
if obj:get_luaentity() and not obj:is_player() then
|
|
||||||
if obj:get_luaentity().name == "__builtin:item" then
|
|
||||||
local item1 = obj:get_luaentity().itemstring
|
|
||||||
local obj2 = minetest.add_entity(position2, "__builtin:item")
|
|
||||||
obj2:get_luaentity():set_item(item1)
|
|
||||||
obj:remove()
|
|
||||||
end
|
end
|
||||||
|
local objs = minetest.get_objects_inside_radius(pos, 3)
|
||||||
|
for _, obj in pairs(objs) do
|
||||||
|
if obj:get_luaentity() and not obj:is_player() then
|
||||||
|
if obj:get_luaentity().name == "__builtin:item" then
|
||||||
|
local item1 = obj:get_luaentity().itemstring
|
||||||
|
local obj2 = minetest.add_entity(position2, "__builtin:item")
|
||||||
|
obj2:get_luaentity():set_item(item1)
|
||||||
|
obj:remove()
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end)
|
||||||
end)
|
|
||||||
elseif meta:get_int("type") == 2 and position1 ~= nil and position2 ~= nil then
|
elseif meta:get_int("type") == 2 and position1 ~= nil and position2 ~= nil then
|
||||||
minetest.add_particlespawner(
|
minetest.add_particlespawner(
|
||||||
25, --amount
|
25, --amount
|
||||||
1.5, --time
|
1.5, --time
|
||||||
{x=pos.x-0.9, y=pos.y-0.3, z=pos.z-0.9}, --minpos
|
{x=pos.x-0.9, y=pos.y-0.3, z=pos.z-0.9}, --minpos
|
||||||
{x=pos.x+0.9, y=pos.y-0.3, z=pos.z+0.9}, --maxpos
|
{x=pos.x+0.9, y=pos.y-0.3, z=pos.z+0.9}, --maxpos
|
||||||
{x=0, y=0, z=0}, --minvel
|
{x=0, y=0, z=0}, --minvel
|
||||||
{x=0, y=0, z=0}, --maxvel
|
{x=0, y=0, z=0}, --maxvel
|
||||||
{x=-0,y=1,z=-0}, --minacc
|
{x=-0,y=1,z=-0}, --minacc
|
||||||
{x=0,y=2,z=0}, --maxacc
|
{x=0,y=2,z=0}, --maxacc
|
||||||
0.5, --minexptime
|
0.5, --minexptime
|
||||||
1, --maxexptime
|
1, --maxexptime
|
||||||
2, --minsize
|
2, --minsize
|
||||||
5, --maxsize
|
5, --maxsize
|
||||||
false, --collisiondetection
|
false, --collisiondetection
|
||||||
"scifi_nodes_tp_part.png" --texture
|
"scifi_nodes_tp_part.png" --texture
|
||||||
)
|
)
|
||||||
minetest.after(1, function()
|
minetest.after(1, function()
|
||||||
local ppos = clicker:getpos()
|
local ppos = clicker:getpos()
|
||||||
if minetest.get_node({x=ppos.x, y=ppos.y, z=ppos.z}).name == "scifi_nodes:pad" then
|
if minetest.get_node({x=ppos.x, y=ppos.y, z=ppos.z}).name == "scifi_nodes:pad" then
|
||||||
clicker:setpos(position1)
|
clicker:setpos(position1)
|
||||||
end
|
end
|
||||||
local objs = minetest.get_objects_inside_radius(pos, 3)
|
local objs = minetest.get_objects_inside_radius(pos, 3)
|
||||||
for _, obj in pairs(objs) do
|
for _, obj in pairs(objs) do
|
||||||
if obj:get_luaentity() and not obj:is_player() then
|
if obj:get_luaentity() and not obj:is_player() then
|
||||||
if obj:get_luaentity().name == "__builtin:item" then
|
if obj:get_luaentity().name == "__builtin:item" then
|
||||||
local item1 = obj:get_luaentity().itemstring
|
local item1 = obj:get_luaentity().itemstring
|
||||||
local obj2 = minetest.add_entity(position1, "__builtin:item")
|
local obj2 = minetest.add_entity(position1, "__builtin:item")
|
||||||
obj2:get_luaentity():set_item(item1)
|
obj2:get_luaentity():set_item(item1)
|
||||||
obj:remove()
|
obj:remove()
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end)
|
||||||
end
|
|
||||||
end)
|
|
||||||
elseif position1 == nil and meta:get_int("type") ~= 2 then
|
elseif position1 == nil and meta:get_int("type") ~= 2 then
|
||||||
position1 = pos
|
position1 = pos
|
||||||
meta:set_int("type", 1)
|
meta:set_int("type", 1)
|
||||||
minetest.chat_send_player(clicker_name, "Teleporter 1 connected at "..minetest.pos_to_string(pos))
|
minetest.chat_send_player(clicker_name, "Teleporter 1 connected at "..minetest.pos_to_string(pos))
|
||||||
elseif position2 == nil and meta:get_int("type") ~= 1 then
|
elseif position2 == nil and meta:get_int("type") ~= 1 then
|
||||||
position2 = pos
|
position2 = pos
|
||||||
meta:set_int("type", 2)
|
meta:set_int("type", 2)
|
||||||
minetest.chat_send_player(clicker_name, "Teleporter 2 connected at "..minetest.pos_to_string(pos))
|
minetest.chat_send_player(clicker_name, "Teleporter 2 connected at "..minetest.pos_to_string(pos))
|
||||||
else minetest.chat_send_player(clicker_name, "Teleporter error!")
|
else
|
||||||
|
minetest.chat_send_player(clicker_name, "Teleporter error!")
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
on_destruct = function(pos, oldnode, placer)
|
on_destruct = function(pos, oldnode, placer)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
if meta:get_int("type") == 1 then
|
if meta:get_int("type") == 1 then
|
||||||
position1 = nil
|
position1 = nil
|
||||||
meta:set_int("type", 0)
|
meta:set_int("type", 0)
|
||||||
elseif meta:get_int("type") == 2 then
|
elseif meta:get_int("type") == 2 then
|
||||||
position2 = nil
|
position2 = nil
|
||||||
meta:set_int("type", 0)
|
meta:set_int("type", 0)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
node_box = {
|
node_box = {
|
||||||
@ -284,6 +290,7 @@ minetest.register_node("scifi_nodes:pplwndw", {
|
|||||||
use_texture_alpha = "blend",
|
use_texture_alpha = "blend",
|
||||||
groups = {cracky=3, dig_generic = 4},
|
groups = {cracky=3, dig_generic = 4},
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults(),
|
sounds = scifi_nodes.node_sound_glass_defaults(),
|
||||||
|
is_ground_content = false,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
@ -310,6 +317,7 @@ minetest.register_node("scifi_nodes:gloshroom", {
|
|||||||
sunlight_propagates = false,
|
sunlight_propagates = false,
|
||||||
use_texture_alpha = "blend",
|
use_texture_alpha = "blend",
|
||||||
groups = {fleshy=1, oddly_breakable_by_hand=1, dig_immediate=3},
|
groups = {fleshy=1, oddly_breakable_by_hand=1, dig_immediate=3},
|
||||||
|
is_ground_content = false,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
@ -335,6 +343,7 @@ minetest.register_node("scifi_nodes:pot_lid", {
|
|||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {not_in_creative_inventory = 1},
|
groups = {not_in_creative_inventory = 1},
|
||||||
|
is_ground_content = false,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
diggable = false,
|
diggable = false,
|
||||||
drop = "",
|
drop = "",
|
||||||
@ -392,6 +401,7 @@ minetest.register_node("scifi_nodes:pot", {
|
|||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky = 1, soil = 1, sand = 1, dig_generic = 3},
|
groups = {cracky = 1, soil = 1, sand = 1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
|
||||||
@ -426,6 +436,7 @@ minetest.register_node("scifi_nodes:pot2", {
|
|||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky = 1, soil = 3, wet = 1, dig_generic = 3},
|
groups = {cracky = 1, soil = 3, wet = 1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
|
||||||
@ -470,6 +481,7 @@ minetest.register_node("scifi_nodes:lightbar", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -495,6 +507,7 @@ minetest.register_node("scifi_nodes:light_dynamic", {
|
|||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
light_source = minetest.LIGHT_MAX,
|
light_source = minetest.LIGHT_MAX,
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1},
|
groups = {cracky=1, oddly_breakable_by_hand=1},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -531,6 +544,7 @@ minetest.register_node("scifi_nodes:ladder", {
|
|||||||
walkable = false,
|
walkable = false,
|
||||||
climbable = true,
|
climbable = true,
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1},
|
groups = {cracky=1, oddly_breakable_by_hand=1},
|
||||||
|
is_ground_content = false,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("scifi_nodes:lightbars", {
|
minetest.register_node("scifi_nodes:lightbars", {
|
||||||
@ -553,12 +567,13 @@ minetest.register_node("scifi_nodes:lightbars", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("scifi_nodes:liquid_pipe", {
|
minetest.register_node("scifi_nodes:liquid_pipe", {
|
||||||
description = "Liquid pipe",
|
description = "Liquid pipe",
|
||||||
tiles = {{
|
tiles = {{
|
||||||
name = "scifi_nodes_liquid.png",
|
name = "scifi_nodes_liquid.png",
|
||||||
animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 1.00},
|
animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 1.00},
|
||||||
}},
|
}},
|
||||||
@ -575,12 +590,13 @@ tiles = {{
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1, dig_generic = 3},
|
groups = {cracky=1, oddly_breakable_by_hand=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("scifi_nodes:liquid_pipe2", {
|
minetest.register_node("scifi_nodes:liquid_pipe2", {
|
||||||
description = "Liquid pipe 2",
|
description = "Liquid pipe 2",
|
||||||
tiles = {
|
tiles = {
|
||||||
"scifi_nodes_orange.png",
|
"scifi_nodes_orange.png",
|
||||||
},
|
},
|
||||||
use_texture_alpha = "blend",
|
use_texture_alpha = "blend",
|
||||||
@ -596,6 +612,7 @@ tiles = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1},
|
groups = {cracky=1, oddly_breakable_by_hand=1},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -626,6 +643,7 @@ minetest.register_node("scifi_nodes:powered_stand", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1},
|
groups = {cracky=1, oddly_breakable_by_hand=1},
|
||||||
|
is_ground_content = false,
|
||||||
on_rightclick = function(pos, node, clicker, item, _)
|
on_rightclick = function(pos, node, clicker, item, _)
|
||||||
local wield_item_stack = clicker:get_wielded_item()
|
local wield_item_stack = clicker:get_wielded_item()
|
||||||
local wield_item = wield_item_stack:get_name()
|
local wield_item = wield_item_stack:get_name()
|
||||||
@ -667,7 +685,8 @@ minetest.register_node("scifi_nodes:cover", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
sounds = scifi_nodes.node_sound_metal_defaults(),
|
sounds = scifi_nodes.node_sound_metal_defaults(),
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1}
|
groups = {cracky=1, oddly_breakable_by_hand=1},
|
||||||
|
is_ground_content = false,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("scifi_nodes:computer", {
|
minetest.register_node("scifi_nodes:computer", {
|
||||||
@ -691,6 +710,7 @@ minetest.register_node("scifi_nodes:computer", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1},
|
groups = {cracky=1, oddly_breakable_by_hand=1},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_metal_defaults(),
|
sounds = scifi_nodes.node_sound_metal_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -718,6 +738,7 @@ minetest.register_node("scifi_nodes:keysmonitor", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1},
|
groups = {cracky=1, oddly_breakable_by_hand=1},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_defaults(),
|
sounds = scifi_nodes.node_sound_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -746,6 +767,7 @@ minetest.register_node("scifi_nodes:microscope", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1},
|
groups = {cracky=1, oddly_breakable_by_hand=1},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_defaults(),
|
sounds = scifi_nodes.node_sound_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -775,7 +797,8 @@ minetest.register_node("scifi_nodes:table", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
sounds = scifi_nodes.node_sound_metal_defaults(),
|
sounds = scifi_nodes.node_sound_metal_defaults(),
|
||||||
groups = {cracky=1, dig_generic = 3}
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("scifi_nodes:laptop_open", {
|
minetest.register_node("scifi_nodes:laptop_open", {
|
||||||
@ -800,6 +823,7 @@ minetest.register_node("scifi_nodes:laptop_open", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1},
|
groups = {cracky=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1},
|
||||||
|
is_ground_content = false,
|
||||||
on_rightclick = function(pos, node, clicker, item, _)
|
on_rightclick = function(pos, node, clicker, item, _)
|
||||||
minetest.set_node(pos, {name="scifi_nodes:laptop_closed", param2=node.param2})
|
minetest.set_node(pos, {name="scifi_nodes:laptop_closed", param2=node.param2})
|
||||||
end,
|
end,
|
||||||
@ -827,6 +851,7 @@ minetest.register_node("scifi_nodes:laptop_closed", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1},
|
groups = {cracky=1, oddly_breakable_by_hand=1},
|
||||||
|
is_ground_content = false,
|
||||||
on_rightclick = function(pos, node, clicker, item, _)
|
on_rightclick = function(pos, node, clicker, item, _)
|
||||||
minetest.set_node(pos, {name="scifi_nodes:laptop_open", param2=node.param2})
|
minetest.set_node(pos, {name="scifi_nodes:laptop_open", param2=node.param2})
|
||||||
end,
|
end,
|
||||||
@ -861,6 +886,7 @@ minetest.register_node("scifi_nodes:pipen", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
on_place = minetest.rotate_node,
|
on_place = minetest.rotate_node,
|
||||||
sounds = scifi_nodes.node_sound_metal_defaults(),
|
sounds = scifi_nodes.node_sound_metal_defaults(),
|
||||||
})
|
})
|
||||||
@ -892,6 +918,7 @@ minetest.register_node("scifi_nodes:windowcorner", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
on_place = minetest.rotate_node,
|
on_place = minetest.rotate_node,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults(),
|
sounds = scifi_nodes.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
@ -919,6 +946,7 @@ minetest.register_node("scifi_nodes:windowstraight", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
on_place = minetest.rotate_node,
|
on_place = minetest.rotate_node,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults(),
|
sounds = scifi_nodes.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
@ -950,6 +978,7 @@ minetest.register_node("scifi_nodes:windowcorner2", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
on_place = minetest.rotate_node,
|
on_place = minetest.rotate_node,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults(),
|
sounds = scifi_nodes.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
@ -977,6 +1006,7 @@ minetest.register_node("scifi_nodes:windowstraight2", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
on_place = minetest.rotate_node,
|
on_place = minetest.rotate_node,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults(),
|
sounds = scifi_nodes.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
@ -1007,6 +1037,7 @@ minetest.register_node("scifi_nodes:capsule", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1, dig_generic = 3},
|
groups = {cracky=1, oddly_breakable_by_hand=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults(),
|
sounds = scifi_nodes.node_sound_glass_defaults(),
|
||||||
on_rightclick = function(pos, node, clicker, item, _)
|
on_rightclick = function(pos, node, clicker, item, _)
|
||||||
minetest.set_node(pos, {name="scifi_nodes:capsule2", param2=node.param2})
|
minetest.set_node(pos, {name="scifi_nodes:capsule2", param2=node.param2})
|
||||||
@ -1037,6 +1068,7 @@ minetest.register_node("scifi_nodes:capsule3", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1},
|
groups = {cracky=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults(),
|
sounds = scifi_nodes.node_sound_glass_defaults(),
|
||||||
on_rightclick = function(pos, node, clicker, item, _)
|
on_rightclick = function(pos, node, clicker, item, _)
|
||||||
minetest.set_node(pos, {name="scifi_nodes:capsule", param2=node.param2})
|
minetest.set_node(pos, {name="scifi_nodes:capsule", param2=node.param2})
|
||||||
@ -1067,6 +1099,7 @@ minetest.register_node("scifi_nodes:capsule2", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1},
|
groups = {cracky=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults(),
|
sounds = scifi_nodes.node_sound_glass_defaults(),
|
||||||
on_rightclick = function(pos, node, clicker, item, _)
|
on_rightclick = function(pos, node, clicker, item, _)
|
||||||
minetest.set_node(pos, {name="scifi_nodes:capsule3", param2=node.param2})
|
minetest.set_node(pos, {name="scifi_nodes:capsule3", param2=node.param2})
|
||||||
@ -1097,6 +1130,7 @@ minetest.register_node("scifi_nodes:itemholder", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.disallow,
|
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.disallow,
|
||||||
after_place_node = function(pos, placer, itemstack)
|
after_place_node = function(pos, placer, itemstack)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
@ -1156,6 +1190,7 @@ minetest.register_node("scifi_nodes:glassscreen", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1},
|
groups = {cracky=1, oddly_breakable_by_hand=1},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults(),
|
sounds = scifi_nodes.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -1188,6 +1223,7 @@ minetest.register_node("scifi_nodes:widescreen", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1},
|
groups = {cracky=1, oddly_breakable_by_hand=1},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_defaults(),
|
sounds = scifi_nodes.node_sound_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -1219,6 +1255,7 @@ minetest.register_node("scifi_nodes:tallscreen", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1},
|
groups = {cracky=1, oddly_breakable_by_hand=1},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_defaults(),
|
sounds = scifi_nodes.node_sound_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -1240,6 +1277,7 @@ minetest.register_node("scifi_nodes:windowpanel", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
on_place = minetest.rotate_node,
|
on_place = minetest.rotate_node,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults(),
|
sounds = scifi_nodes.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
|
39
nodes.lua
39
nodes.lua
@ -11,6 +11,7 @@ minetest.register_node("scifi_nodes:grassblk", {
|
|||||||
tileable_vertical = false}},
|
tileable_vertical = false}},
|
||||||
light_source = 2,
|
light_source = 2,
|
||||||
groups = {crumbly=1, oddly_breakable_by_hand=1, soil=1},
|
groups = {crumbly=1, oddly_breakable_by_hand=1, soil=1},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_dirt_defaults({
|
sounds = scifi_nodes.node_sound_dirt_defaults({
|
||||||
footstep = scifi_nodes.node_sound_plant_defaults().footstep,
|
footstep = scifi_nodes.node_sound_plant_defaults().footstep,
|
||||||
})
|
})
|
||||||
@ -30,6 +31,7 @@ minetest.register_node("scifi_nodes:light", {
|
|||||||
light_source = 10,
|
light_source = 10,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_metal_defaults(),
|
sounds = scifi_nodes.node_sound_metal_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -42,6 +44,7 @@ minetest.register_node("scifi_nodes:rfloor", {
|
|||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
light_source = 10,
|
light_source = 10,
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_metal_defaults()
|
sounds = scifi_nodes.node_sound_metal_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -54,6 +57,7 @@ minetest.register_node("scifi_nodes:bfloor", {
|
|||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
light_source = 10,
|
light_source = 10,
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_metal_defaults()
|
sounds = scifi_nodes.node_sound_metal_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -71,6 +75,7 @@ minetest.register_node("scifi_nodes:stripes2", {
|
|||||||
},
|
},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_metal_defaults()
|
sounds = scifi_nodes.node_sound_metal_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -86,7 +91,8 @@ minetest.register_node("scifi_nodes:gblock", {
|
|||||||
"scifi_nodes_gblock.png"
|
"scifi_nodes_gblock.png"
|
||||||
},
|
},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky=1, dig_generic = 3};
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_metal_defaults()
|
sounds = scifi_nodes.node_sound_metal_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -104,6 +110,7 @@ minetest.register_node("scifi_nodes:gblock2", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_metal_defaults()
|
sounds = scifi_nodes.node_sound_metal_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -121,6 +128,7 @@ minetest.register_node("scifi_nodes:gblock3", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_metal_defaults()
|
sounds = scifi_nodes.node_sound_metal_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -140,6 +148,7 @@ minetest.register_node("scifi_nodes:green_light", {
|
|||||||
light_source = 10,
|
light_source = 10,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -157,6 +166,7 @@ minetest.register_node("scifi_nodes:red_light", {
|
|||||||
light_source = 10,
|
light_source = 10,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -173,6 +183,7 @@ minetest.register_node("scifi_nodes:discs", {
|
|||||||
},
|
},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_metal_defaults()
|
sounds = scifi_nodes.node_sound_metal_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -187,6 +198,7 @@ minetest.register_node("scifi_nodes:disc", {
|
|||||||
wield_image = "scifi_nodes_disc.png",
|
wield_image = "scifi_nodes_disc.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_defaults(),
|
sounds = scifi_nodes.node_sound_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -203,6 +215,7 @@ minetest.register_node("scifi_nodes:greenbar_animated", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
light_source = 10,
|
light_source = 10,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults(),
|
sounds = scifi_nodes.node_sound_glass_defaults(),
|
||||||
on_place = minetest.rotate_node
|
on_place = minetest.rotate_node
|
||||||
@ -217,6 +230,7 @@ minetest.register_node("scifi_nodes:blink", {
|
|||||||
}},
|
}},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
light_source = 5,
|
light_source = 5,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||||
})
|
})
|
||||||
@ -230,6 +244,7 @@ minetest.register_node("scifi_nodes:black_lights", {
|
|||||||
}},
|
}},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_metal_defaults()
|
sounds = scifi_nodes.node_sound_metal_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -242,6 +257,7 @@ minetest.register_node("scifi_nodes:black_screen", {
|
|||||||
}},
|
}},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
light_source = 1,
|
light_source = 1,
|
||||||
sounds = scifi_nodes.node_sound_metal_defaults()
|
sounds = scifi_nodes.node_sound_metal_defaults()
|
||||||
})
|
})
|
||||||
@ -255,6 +271,7 @@ minetest.register_node("scifi_nodes:screen", {
|
|||||||
}},
|
}},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
light_source = 5,
|
light_source = 5,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||||
})
|
})
|
||||||
@ -268,6 +285,7 @@ minetest.register_node("scifi_nodes:screen2", {
|
|||||||
}},
|
}},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
light_source = 5,
|
light_source = 5,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||||
})
|
})
|
||||||
@ -288,6 +306,7 @@ minetest.register_node("scifi_nodes:white_pad", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_metal_defaults()
|
sounds = scifi_nodes.node_sound_metal_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -305,6 +324,7 @@ minetest.register_node("scifi_nodes:white_base", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -322,6 +342,7 @@ minetest.register_node("scifi_nodes:grnpipe", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_metal_defaults(),
|
sounds = scifi_nodes.node_sound_metal_defaults(),
|
||||||
on_place = minetest.rotate_node
|
on_place = minetest.rotate_node
|
||||||
})
|
})
|
||||||
@ -341,6 +362,7 @@ minetest.register_node("scifi_nodes:grnpipe2", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_metal_defaults(),
|
sounds = scifi_nodes.node_sound_metal_defaults(),
|
||||||
on_place = minetest.rotate_node
|
on_place = minetest.rotate_node
|
||||||
})
|
})
|
||||||
@ -357,6 +379,7 @@ minetest.register_node("scifi_nodes:octrng", {
|
|||||||
use_texture_alpha = "blend",
|
use_texture_alpha = "blend",
|
||||||
light_source = 10,
|
light_source = 10,
|
||||||
groups = {cracky=2, dig_generic = 3},
|
groups = {cracky=2, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults(),
|
sounds = scifi_nodes.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -372,6 +395,7 @@ minetest.register_node("scifi_nodes:octgrn", {
|
|||||||
use_texture_alpha = "blend",
|
use_texture_alpha = "blend",
|
||||||
light_source = 10,
|
light_source = 10,
|
||||||
groups = {cracky=2, dig_generic = 3},
|
groups = {cracky=2, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults(),
|
sounds = scifi_nodes.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -387,6 +411,7 @@ minetest.register_node("scifi_nodes:octbl", {
|
|||||||
use_texture_alpha = "blend",
|
use_texture_alpha = "blend",
|
||||||
light_source = 10,
|
light_source = 10,
|
||||||
groups = {cracky=2, dig_generic = 3},
|
groups = {cracky=2, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults(),
|
sounds = scifi_nodes.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -402,6 +427,7 @@ minetest.register_node("scifi_nodes:octppl", {
|
|||||||
use_texture_alpha = "blend",
|
use_texture_alpha = "blend",
|
||||||
light_source = 10,
|
light_source = 10,
|
||||||
groups = {cracky=2, dig_generic = 3},
|
groups = {cracky=2, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults(),
|
sounds = scifi_nodes.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -423,6 +449,7 @@ if has_unifieddyes_mod then
|
|||||||
dig_generic = 3,
|
dig_generic = 3,
|
||||||
ud_param2_colorable = 1
|
ud_param2_colorable = 1
|
||||||
},
|
},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults(),
|
sounds = scifi_nodes.node_sound_glass_defaults(),
|
||||||
on_construct = unifieddyes.on_construct,
|
on_construct = unifieddyes.on_construct,
|
||||||
on_dig = unifieddyes.on_dig
|
on_dig = unifieddyes.on_dig
|
||||||
@ -441,6 +468,7 @@ minetest.register_node("scifi_nodes:tower", {
|
|||||||
inventory_image = "scifi_nodes_tower.png",
|
inventory_image = "scifi_nodes_tower.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky=2, dig_generic = 3},
|
groups = {cracky=2, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_metal_defaults()
|
sounds = scifi_nodes.node_sound_metal_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -459,6 +487,7 @@ minetest.register_node("scifi_nodes:junk", {
|
|||||||
"scifi_nodes_junk.png"
|
"scifi_nodes_junk.png"
|
||||||
},
|
},
|
||||||
groups = {snappy=1, oddly_breakable_by_hand=1, liquid=3, dig_immediate=1},
|
groups = {snappy=1, oddly_breakable_by_hand=1, liquid=3, dig_immediate=1},
|
||||||
|
is_ground_content = false,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
@ -476,6 +505,7 @@ minetest.register_node("scifi_nodes:blumetlight", {
|
|||||||
light_source = 10,
|
light_source = 10,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -489,6 +519,7 @@ minetest.register_node("scifi_nodes:lightstp", {
|
|||||||
light_source = minetest.LIGHT_MAX,
|
light_source = minetest.LIGHT_MAX,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -501,6 +532,7 @@ minetest.register_node("scifi_nodes:blklt2", {
|
|||||||
light_source = 10,
|
light_source = 10,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_metal_defaults()
|
sounds = scifi_nodes.node_sound_metal_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -513,6 +545,7 @@ minetest.register_node("scifi_nodes:blumetstr", {
|
|||||||
light_source = 10,
|
light_source = 10,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_metal_defaults()
|
sounds = scifi_nodes.node_sound_metal_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -526,6 +559,7 @@ minetest.register_node("scifi_nodes:glass", {
|
|||||||
use_texture_alpha = "blend",
|
use_texture_alpha = "blend",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -538,6 +572,7 @@ minetest.register_node("scifi_nodes:whtlightbnd", {
|
|||||||
light_source = 10,
|
light_source = 10,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = scifi_nodes.node_sound_metal_defaults()
|
sounds = scifi_nodes.node_sound_metal_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -568,6 +603,7 @@ for name, def in pairs(nodes) do
|
|||||||
description = def.description,
|
description = def.description,
|
||||||
tiles = tiles,
|
tiles = tiles,
|
||||||
groups = {cracky=1, dig_generic = 3},
|
groups = {cracky=1, dig_generic = 3},
|
||||||
|
is_ground_content = false,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = def.paramtype2 or "facedir",
|
paramtype2 = def.paramtype2 or "facedir",
|
||||||
light_source = def.light,
|
light_source = def.light,
|
||||||
@ -594,6 +630,7 @@ for name, def in pairs(nodes) do
|
|||||||
ud_param2_colorable = 1,
|
ud_param2_colorable = 1,
|
||||||
not_in_creative_inventory = 1
|
not_in_creative_inventory = 1
|
||||||
},
|
},
|
||||||
|
is_ground_content = false,
|
||||||
palette = "unifieddyes_palette_extended.png",
|
palette = "unifieddyes_palette_extended.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "color",
|
paramtype2 = "color",
|
||||||
|
@ -59,6 +59,7 @@ minetest.register_node("scifi_nodes:palm_scanner_off", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1, mesecon_needs_receiver = 1},
|
groups = {cracky=1, oddly_breakable_by_hand=1, mesecon_needs_receiver = 1},
|
||||||
|
is_ground_content = false,
|
||||||
mesecons = {
|
mesecons = {
|
||||||
receptor = {
|
receptor = {
|
||||||
state = (has_mesecons and mesecon.state.off)
|
state = (has_mesecons and mesecon.state.off)
|
||||||
@ -82,6 +83,7 @@ minetest.register_node("scifi_nodes:palm_scanner_checking", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1, mesecon_needs_receiver = 1},
|
groups = {cracky=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1, mesecon_needs_receiver = 1},
|
||||||
|
is_ground_content = false,
|
||||||
drop = "scifi_nodes:palm_scanner_off",
|
drop = "scifi_nodes:palm_scanner_off",
|
||||||
sounds = scifi_nodes.node_sound_metal_defaults()
|
sounds = scifi_nodes.node_sound_metal_defaults()
|
||||||
})
|
})
|
||||||
@ -100,6 +102,7 @@ minetest.register_node("scifi_nodes:palm_scanner_on", {
|
|||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
light_source = 5,
|
light_source = 5,
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1, mesecon_needs_receiver = 1},
|
groups = {cracky=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1, mesecon_needs_receiver = 1},
|
||||||
|
is_ground_content = false,
|
||||||
drop = "scifi_nodes:palm_scanner_off",
|
drop = "scifi_nodes:palm_scanner_off",
|
||||||
mesecons = {
|
mesecons = {
|
||||||
receptor = {
|
receptor = {
|
||||||
|
@ -46,6 +46,7 @@ minetest.register_node("scifi_nodes:protected_switch_on", {
|
|||||||
not_in_creative_inventory = 1,
|
not_in_creative_inventory = 1,
|
||||||
mesecon_needs_receiver = 1
|
mesecon_needs_receiver = 1
|
||||||
},
|
},
|
||||||
|
is_ground_content = false,
|
||||||
mesecons = {
|
mesecons = {
|
||||||
receptor = {
|
receptor = {
|
||||||
state = (has_mesecons and mesecon.state.on)
|
state = (has_mesecons and mesecon.state.on)
|
||||||
@ -73,6 +74,7 @@ minetest.register_node("scifi_nodes:protected_switch_off", {
|
|||||||
oddly_breakable_by_hand = 1,
|
oddly_breakable_by_hand = 1,
|
||||||
mesecon_needs_receiver = 1
|
mesecon_needs_receiver = 1
|
||||||
},
|
},
|
||||||
|
is_ground_content = false,
|
||||||
mesecons = {
|
mesecons = {
|
||||||
receptor = {
|
receptor = {
|
||||||
state = (has_mesecons and mesecon.state.off)
|
state = (has_mesecons and mesecon.state.off)
|
||||||
|
@ -39,6 +39,7 @@ minetest.register_node("scifi_nodes:switch_on", {
|
|||||||
not_in_creative_inventory = 1,
|
not_in_creative_inventory = 1,
|
||||||
mesecon_needs_receiver = 1
|
mesecon_needs_receiver = 1
|
||||||
},
|
},
|
||||||
|
is_ground_content = false,
|
||||||
mesecons = {
|
mesecons = {
|
||||||
receptor = {
|
receptor = {
|
||||||
state = (has_mesecons and mesecon.state.on)
|
state = (has_mesecons and mesecon.state.on)
|
||||||
@ -66,6 +67,7 @@ minetest.register_node("scifi_nodes:switch_off", {
|
|||||||
oddly_breakable_by_hand = 1,
|
oddly_breakable_by_hand = 1,
|
||||||
mesecon_needs_receiver = 1
|
mesecon_needs_receiver = 1
|
||||||
},
|
},
|
||||||
|
is_ground_content = false,
|
||||||
mesecons = {
|
mesecons = {
|
||||||
receptor = {
|
receptor = {
|
||||||
state = (has_mesecons and mesecon.state.off)
|
state = (has_mesecons and mesecon.state.off)
|
||||||
|
Loading…
Reference in New Issue
Block a user