forked from mtcontrib/scifi_nodes
fix https://github.com/D00Med/scifi_nodes/issues/68 and adding additional game digging support (#69)
This commit is contained in:
84
nodes.lua
84
nodes.lua
@ -1,14 +1,16 @@
|
||||
|
||||
--nodes
|
||||
|
||||
minetest.register_node("scifi_nodes:grassblk", {
|
||||
description = "Dirt With Alien Grass",
|
||||
tiles = {"default_grass.png^[colorize:cyan:80", "default_dirt.png",
|
||||
{name = "default_dirt.png^(default_grass_side.png^[colorize:cyan:80)",
|
||||
tileable_vertical = false}},
|
||||
light_source = 2,
|
||||
groups = {crumbly=1, oddly_breakable_by_hand=1, soil=1}
|
||||
})
|
||||
if minetest.get_modpath("default") then
|
||||
minetest.register_node("scifi_nodes:grassblk", {
|
||||
description = "Dirt With Alien Grass",
|
||||
tiles = {"default_grass.png^[colorize:cyan:80", "default_dirt.png",
|
||||
{name = "default_dirt.png^(default_grass_side.png^[colorize:cyan:80)",
|
||||
tileable_vertical = false}},
|
||||
light_source = 2,
|
||||
groups = {crumbly=1, oddly_breakable_by_hand=1, soil=1}
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_node("scifi_nodes:light", {
|
||||
description = "blue lightbox",
|
||||
@ -23,7 +25,7 @@ minetest.register_node("scifi_nodes:light", {
|
||||
},
|
||||
light_source = 10,
|
||||
paramtype = "light",
|
||||
groups = {cracky=1}
|
||||
groups = {cracky=1, dig_generic = 3}
|
||||
})
|
||||
|
||||
minetest.register_node("scifi_nodes:rfloor", {
|
||||
@ -34,7 +36,7 @@ minetest.register_node("scifi_nodes:rfloor", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
light_source = 10,
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
sounds = scifi_nodes.node_sound_metal_defaults()
|
||||
})
|
||||
|
||||
@ -46,7 +48,7 @@ minetest.register_node("scifi_nodes:bfloor", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
light_source = 10,
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
sounds = scifi_nodes.node_sound_metal_defaults()
|
||||
})
|
||||
|
||||
@ -63,7 +65,7 @@ minetest.register_node("scifi_nodes:stripes2", {
|
||||
"scifi_nodes_stripes2.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
sounds = scifi_nodes.node_sound_metal_defaults()
|
||||
})
|
||||
|
||||
@ -79,7 +81,7 @@ minetest.register_node("scifi_nodes:gblock", {
|
||||
"scifi_nodes_gblock.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
groups = {cracky=1};
|
||||
groups = {cracky=1, dig_generic = 3};
|
||||
sounds = scifi_nodes.node_sound_metal_defaults()
|
||||
})
|
||||
|
||||
@ -96,7 +98,7 @@ minetest.register_node("scifi_nodes:gblock2", {
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
sounds = scifi_nodes.node_sound_metal_defaults()
|
||||
})
|
||||
|
||||
@ -113,7 +115,7 @@ minetest.register_node("scifi_nodes:gblock3", {
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
sounds = scifi_nodes.node_sound_metal_defaults()
|
||||
})
|
||||
|
||||
@ -132,7 +134,7 @@ minetest.register_node("scifi_nodes:green_light", {
|
||||
},
|
||||
light_source = 10,
|
||||
paramtype = "light",
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
@ -149,7 +151,7 @@ minetest.register_node("scifi_nodes:red_light", {
|
||||
},
|
||||
light_source = 10,
|
||||
paramtype = "light",
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
@ -165,7 +167,7 @@ minetest.register_node("scifi_nodes:discs", {
|
||||
"scifi_nodes_discs.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
@ -179,7 +181,7 @@ minetest.register_node("scifi_nodes:disc", {
|
||||
inventory_image = "scifi_nodes_disc.png",
|
||||
wield_image = "scifi_nodes_disc.png",
|
||||
paramtype = "light",
|
||||
groups = {cracky=1}
|
||||
groups = {cracky=1, dig_generic = 3}
|
||||
})
|
||||
|
||||
minetest.register_node("scifi_nodes:greenbar_animated", {
|
||||
@ -194,7 +196,7 @@ minetest.register_node("scifi_nodes:greenbar_animated", {
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
light_source = 10,
|
||||
sounds = scifi_nodes.node_sound_glass_defaults(),
|
||||
on_place = minetest.rotate_node
|
||||
@ -208,7 +210,7 @@ minetest.register_node("scifi_nodes:blink", {
|
||||
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.00},
|
||||
}},
|
||||
paramtype = "light",
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
light_source = 5,
|
||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||
})
|
||||
@ -221,7 +223,7 @@ minetest.register_node("scifi_nodes:black_lights", {
|
||||
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=0.50},
|
||||
}},
|
||||
paramtype = "light",
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
@ -233,7 +235,7 @@ minetest.register_node("scifi_nodes:black_screen", {
|
||||
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.00},
|
||||
}},
|
||||
paramtype = "light",
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
light_source = 1,
|
||||
sounds = scifi_nodes.node_sound_stone_defaults()
|
||||
})
|
||||
@ -246,7 +248,7 @@ minetest.register_node("scifi_nodes:screen", {
|
||||
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=0.50},
|
||||
}},
|
||||
paramtype = "light",
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
light_source = 5,
|
||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||
})
|
||||
@ -259,7 +261,7 @@ minetest.register_node("scifi_nodes:screen2", {
|
||||
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=0.50},
|
||||
}},
|
||||
paramtype = "light",
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
light_source = 5,
|
||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||
})
|
||||
@ -279,7 +281,7 @@ minetest.register_node("scifi_nodes:white_pad", {
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
@ -296,7 +298,7 @@ minetest.register_node("scifi_nodes:white_base", {
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
@ -313,7 +315,7 @@ minetest.register_node("scifi_nodes:grnpipe", {
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
sounds = scifi_nodes.node_sound_metal_defaults(),
|
||||
on_place = minetest.rotate_node
|
||||
})
|
||||
@ -332,7 +334,7 @@ minetest.register_node("scifi_nodes:grnpipe2", {
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
sounds = scifi_nodes.node_sound_metal_defaults(),
|
||||
on_place = minetest.rotate_node
|
||||
})
|
||||
@ -348,7 +350,7 @@ minetest.register_node("scifi_nodes:octrng", {
|
||||
paramtype2 = "facedir",
|
||||
use_texture_alpha = "blend",
|
||||
light_source = 10,
|
||||
groups = {cracky=2},
|
||||
groups = {cracky=2, dig_generic = 3},
|
||||
sounds = scifi_nodes.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
@ -363,7 +365,7 @@ minetest.register_node("scifi_nodes:octgrn", {
|
||||
paramtype2 = "facedir",
|
||||
use_texture_alpha = "blend",
|
||||
light_source = 10,
|
||||
groups = {cracky=2},
|
||||
groups = {cracky=2, dig_generic = 3},
|
||||
sounds = scifi_nodes.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
@ -378,7 +380,7 @@ minetest.register_node("scifi_nodes:octbl", {
|
||||
paramtype2 = "facedir",
|
||||
use_texture_alpha = "blend",
|
||||
light_source = 10,
|
||||
groups = {cracky=2},
|
||||
groups = {cracky=2, dig_generic = 3},
|
||||
sounds = scifi_nodes.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
@ -393,7 +395,7 @@ minetest.register_node("scifi_nodes:octppl", {
|
||||
paramtype2 = "facedir",
|
||||
use_texture_alpha = "blend",
|
||||
light_source = 10,
|
||||
groups = {cracky=2},
|
||||
groups = {cracky=2, dig_generic = 3},
|
||||
sounds = scifi_nodes.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
@ -408,7 +410,7 @@ minetest.register_node("scifi_nodes:tower", {
|
||||
visual_scale = 2,
|
||||
inventory_image = "scifi_nodes_tower.png",
|
||||
paramtype = "light",
|
||||
groups = {cracky=2},
|
||||
groups = {cracky=2, dig_generic = 3},
|
||||
sounds = scifi_nodes.node_sound_metal_defaults()
|
||||
})
|
||||
|
||||
@ -443,7 +445,7 @@ minetest.register_node("scifi_nodes:blumetlight", {
|
||||
},
|
||||
light_source = 10,
|
||||
paramtype = "light",
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
@ -456,7 +458,7 @@ minetest.register_node("scifi_nodes:lightstp", {
|
||||
},
|
||||
light_source = minetest.LIGHT_MAX,
|
||||
paramtype = "light",
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
@ -468,7 +470,7 @@ minetest.register_node("scifi_nodes:blklt2", {
|
||||
},
|
||||
light_source = 10,
|
||||
paramtype = "light",
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
@ -480,7 +482,7 @@ minetest.register_node("scifi_nodes:blumetstr", {
|
||||
},
|
||||
light_source = 10,
|
||||
paramtype = "light",
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
@ -493,7 +495,7 @@ minetest.register_node("scifi_nodes:glass", {
|
||||
},
|
||||
use_texture_alpha = "blend",
|
||||
paramtype = "light",
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
@ -505,7 +507,7 @@ minetest.register_node("scifi_nodes:whtlightbnd", {
|
||||
},
|
||||
light_source = 10,
|
||||
paramtype = "light",
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
sounds = scifi_nodes.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
@ -615,7 +617,7 @@ for _, row in ipairs(nodetypes) do
|
||||
local node_def = {
|
||||
description = desc,
|
||||
tiles = {"scifi_nodes_"..name..".png"},
|
||||
groups = {cracky=1},
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
light_source = light,
|
||||
|
Reference in New Issue
Block a user