Quote from Superpick mod:
I made a tool which can dig everything except objects very fast and show information about the punched node.
“everything except objects” includes bedrock
. This is clearly a tool made for testing, not for regular gameplay, so I don't see any need to make the bedrock
mod compatible. In fact, it would break
the superpick mod if I give special treatment for the superpick mod, because it would not be able to break everything except objects
Oh, and yes, indeed on_destruct seems to be useless, because removing it from the node definition did not change anything, lol.
l thought that bedrock should only appear at the bottom.
Right, but I meant only for the map generation algorithm. If some mod wants to manually place bedrock
somewhere else, I will not prevent it to do so. The mod maker probably knows what he/she/it is doing, although I think it might be a bit weird. If some player obtained bedrock
by cheating/testing/debugging, there is no point to prevent placing it, either.
For normal gameplay, the bedrock
should be completely unobtainable, however.
l don't think overriding minetest.get_node could cause big problems.
This function is far too important to be overwritten by some random mod. I may be able to do it right for Minetest 0.4.12, but since the Lua API is not stable, there is no guarantee that it will work for future versions, and I don't know for how long I will continue with mod development in Minetest.
Also, I think overwriting this function is completely unneccessary to reach my goal.
Oh, and could you try to reproduce the desert dungeon problem for 0.4.12, please?
(with mapgen, seed and coordinates, of course)