Make forcefield properly undiggable

This commit is contained in:
Zefram 2014-08-24 00:20:25 +01:00 committed by RealBadAngel
parent 706e880f05
commit 45919b871a
2 changed files with 8 additions and 5 deletions

View File

@ -1037,10 +1037,12 @@ the emitter must be receiving a mesecon signal in addition to being
manually enabled, in order for it to generate the forcefield. manually enabled, in order for it to generate the forcefield.
The forcefield itself behaves largely as if solid, despite being The forcefield itself behaves largely as if solid, despite being
immaterial: it cannot be traversed, and prevents access to blocks immaterial: it cannot be traversed, and prevents access to blocks behind
behind it. It is transparent, but not totally invisible. It cannot it. It is transparent, but not totally invisible. It cannot be dug.
be dug by ordinary tools, but (a bug) can be removed by special digging Some effects can pass through it, however, such as the beam of a mining
tools such as the mining drills. laser, and explosions. In fact, explosions as currently implemented by
the tnt mod actually temporarily destroy the forcefield itself; the tnt
mod assumes too much about the regularity of node types.
The forcefield occupies space that would otherwise have been air, but does The forcefield occupies space that would otherwise have been air, but does
not replace or otherwise interfere with materials that are solid, liquid, not replace or otherwise interfere with materials that are solid, liquid,

View File

@ -218,9 +218,10 @@ minetest.register_node("technic:forcefield", {
description = S("%s Forcefield"):format("HV"), description = S("%s Forcefield"):format("HV"),
sunlight_propagates = true, sunlight_propagates = true,
drawtype = "glasslike", drawtype = "glasslike",
groups = {not_in_creative_inventory=1, unbreakable=1}, groups = {not_in_creative_inventory=1},
paramtype = "light", paramtype = "light",
light_source = 15, light_source = 15,
diggable = false,
drop = '', drop = '',
tiles = {{ tiles = {{
name = "technic_forcefield_animated.png", name = "technic_forcefield_animated.png",