diff options
author | FaceDeer <derksenmobile@gmail.com> | 2016-12-31 21:19:52 -0700 |
---|---|---|
committer | FaceDeer <derksenmobile@gmail.com> | 2016-12-31 21:19:52 -0700 |
commit | 68e0ca21c6ff335d1b27c3bebc796de56cb2a49b (patch) | |
tree | 773926f57c8ec78f628d1620800f081a48404324 /node_diggers.lua | |
parent | 70803f1f44febe19da436194d36afe85e983d473 (diff) |
Changed sand digger to a more generic soft material digger, added more sophisticated traction, made structure climbable, added infotexts
Diffstat (limited to 'node_diggers.lua')
-rw-r--r-- | node_diggers.lua | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/node_diggers.lua b/node_diggers.lua index f2ffdff..936c95a 100644 --- a/node_diggers.lua +++ b/node_diggers.lua @@ -92,10 +92,10 @@ minetest.register_node("digtron:digger", { }) -- A special-purpose digger to deal with stuff like sand and gravel in the ceiling. It always digs (no periodicity or offset), but it only digs falling_block nodes -minetest.register_node("digtron:sand_digger", { - description = "Sand Digger Head", +minetest.register_node("digtron:soft_digger", { + description = "Soft Material Digger Head", groups = {cracky = 3, stone = 1, digtron = 3}, - drop = 'digtron:sand_digger', + drop = 'digtron:soft_digger', paramtype = "light", paramtype2= 'facedir', @@ -138,7 +138,11 @@ minetest.register_node("digtron:sand_digger", { end local target_node = minetest.get_node(digpos) - if minetest.get_item_group(target_node.name, "falling_node") ~= 0 then + if minetest.get_item_group(target_node.name, "crumbly") ~= 0 or + minetest.get_item_group(target_node.name, "choppy") ~= 0 or + minetest.get_item_group(target_node.name, "snappy") ~= 0 or + minetest.get_item_group(target_node.name, "oddly_breakable_by_hand") ~= 0 or + minetest.get_item_group(target_node.name, "fleshy") ~= 0 then return digtron.mark_diggable(digpos, nodes_dug) end |