make all nodes diggable in mcl* survival mode

This commit is contained in:
unknown
2022-12-02 15:54:21 -05:00
parent fc0d4990b0
commit 855937aec3
11 changed files with 61 additions and 32 deletions

View File

@ -37,11 +37,11 @@ for index, connects in ipairs(cconnects) do
end
--]]
local pgroups = {snappy = 3, pipe = 1, not_in_creative_inventory = 1, dig_generic = 4}
local pgroups = {snappy = 3, pipe = 1, not_in_creative_inventory = 1, dig_generic = 4, axey=5}
local pipedesc = S("Pipe Segment").." "..dump(connects)
if #connects == 0 then
pgroups = {snappy = 3, tube = 1, dig_generic = 4}
pgroups = {snappy = 3, tube = 1, dig_generic = 4, axey=5}
pipedesc = S("Pipe Segment")
end
@ -76,6 +76,7 @@ for index, connects in ipairs(cconnects) do
fixed = outsel
},
groups = pgroups,
_mcl_hardness=1.6,
_sound_def = {
key = "node_sound_metal_defaults",
},
@ -93,7 +94,7 @@ for index, connects in ipairs(cconnects) do
pipenumber = index
})
local pgroups = {snappy = 3, pipe = 1, not_in_creative_inventory = 1, dig_generic = 4}
local pgroups = {snappy = 3, pipe = 1, not_in_creative_inventory = 1, dig_generic = 4, axey=5}
minetest.register_node("pipeworks:pipe_"..index.."_loaded", {
description = pipedesc,
@ -112,6 +113,7 @@ for index, connects in ipairs(cconnects) do
fixed = outsel
},
groups = pgroups,
_mcl_hardness = 1.6,
_sound_def = {
key = "node_sound_metal_defaults",
},