From 45919b871a38109ac9d754788d6a361a354bfd81 Mon Sep 17 00:00:00 2001 From: Zefram Date: Sun, 24 Aug 2014 00:20:25 +0100 Subject: [PATCH] Make forcefield properly undiggable --- manual.md | 10 ++++++---- technic/machines/HV/forcefield.lua | 3 ++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/manual.md b/manual.md index 57ff8f0..4cd4f70 100644 --- a/manual.md +++ b/manual.md @@ -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. The forcefield itself behaves largely as if solid, despite being -immaterial: it cannot be traversed, and prevents access to blocks -behind it. It is transparent, but not totally invisible. It cannot -be dug by ordinary tools, but (a bug) can be removed by special digging -tools such as the mining drills. +immaterial: it cannot be traversed, and prevents access to blocks behind +it. It is transparent, but not totally invisible. It cannot be dug. +Some effects can pass through it, however, such as the beam of a mining +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 not replace or otherwise interfere with materials that are solid, liquid, diff --git a/technic/machines/HV/forcefield.lua b/technic/machines/HV/forcefield.lua index fadc9cb..2bf74bb 100644 --- a/technic/machines/HV/forcefield.lua +++ b/technic/machines/HV/forcefield.lua @@ -218,9 +218,10 @@ minetest.register_node("technic:forcefield", { description = S("%s Forcefield"):format("HV"), sunlight_propagates = true, drawtype = "glasslike", - groups = {not_in_creative_inventory=1, unbreakable=1}, + groups = {not_in_creative_inventory=1}, paramtype = "light", light_source = 15, + diggable = false, drop = '', tiles = {{ name = "technic_forcefield_animated.png",