forked from VoxeLibre/VoxeLibre
Declare observers not opaque
This commit is contained in:
parent
32f60c4fee
commit
093e9b0b08
|
@ -95,6 +95,7 @@ These groups are used mostly for informational purposes
|
||||||
* `solid=1`: Solid full-cube block (automatically assigned)
|
* `solid=1`: Solid full-cube block (automatically assigned)
|
||||||
* `opaque=1`: Opaque block (automatically assigned)
|
* `opaque=1`: Opaque block (automatically assigned)
|
||||||
* `not_solid=1`: Block is not solid (only assign this group for nodes which are automatically detected as “solid” in error
|
* `not_solid=1`: Block is not solid (only assign this group for nodes which are automatically detected as “solid” in error
|
||||||
|
* `not_opaque=1`: Block is not opaque (only assign this group for nodes which are automatically detected as “opaque” in error
|
||||||
* `fire=1`: Fire
|
* `fire=1`: Fire
|
||||||
* `water=1`: Water
|
* `water=1`: Water
|
||||||
* `lava=1`: Lava
|
* `lava=1`: Lava
|
||||||
|
|
|
@ -82,7 +82,8 @@ local overwrite = function()
|
||||||
groups_changed = true
|
groups_changed = true
|
||||||
end
|
end
|
||||||
-- Automatically assign the “opaque” group for opaque nodes
|
-- Automatically assign the “opaque” group for opaque nodes
|
||||||
if not (ndef.paramtype == "light" or ndef.sunlight_propagates) then
|
if (not (ndef.paramtype == "light" or ndef.sunlight_propagates)) and
|
||||||
|
(ndef.groups.not_opaque == 0 or ndef.groups.not_opaque == nil) then
|
||||||
newgroups.opaque = 1
|
newgroups.opaque = 1
|
||||||
groups_changed = true
|
groups_changed = true
|
||||||
end
|
end
|
||||||
|
|
|
@ -80,7 +80,7 @@ mesecon.register_node("mcl_observers:observer",
|
||||||
sounds = mcl_sounds.node_sound_stone_defaults(),
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
-- TODO: Add to craft guide and creative inventory when it's useful
|
-- TODO: Add to craft guide and creative inventory when it's useful
|
||||||
groups = {pickaxey=1, material_stone=1, not_in_craft_guide=1, not_in_creative_inventory=1 },
|
groups = {pickaxey=1, material_stone=1, not_opaque=1, not_in_craft_guide=1, not_in_creative_inventory=1 },
|
||||||
on_rotate = false,
|
on_rotate = false,
|
||||||
_mcl_blast_resistance = 17.5,
|
_mcl_blast_resistance = 17.5,
|
||||||
_mcl_hardness = 3.5,
|
_mcl_hardness = 3.5,
|
||||||
|
@ -133,7 +133,7 @@ mesecon.register_node("mcl_observers:observer_down",
|
||||||
{
|
{
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
sounds = mcl_sounds.node_sound_stone_defaults(),
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
||||||
groups = {pickaxey=1, material_stone=1, not_in_creative_inventory=1 },
|
groups = {pickaxey=1, material_stone=1, not_opaque=1, not_in_creative_inventory=1 },
|
||||||
on_rotate = false,
|
on_rotate = false,
|
||||||
_mcl_blast_resistance = 17.5,
|
_mcl_blast_resistance = 17.5,
|
||||||
_mcl_hardness = 3.5,
|
_mcl_hardness = 3.5,
|
||||||
|
@ -181,7 +181,7 @@ mesecon.register_node("mcl_observers:observer_up",
|
||||||
{
|
{
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
sounds = mcl_sounds.node_sound_stone_defaults(),
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
||||||
groups = {pickaxey=1, material_stone=1, not_in_creative_inventory=1 },
|
groups = {pickaxey=1, material_stone=1, not_opaque=1, not_in_creative_inventory=1 },
|
||||||
on_rotate = false,
|
on_rotate = false,
|
||||||
_mcl_blast_resistance = 17.5,
|
_mcl_blast_resistance = 17.5,
|
||||||
_mcl_hardness = 3.5,
|
_mcl_hardness = 3.5,
|
||||||
|
|
Loading…
Reference in New Issue