https://github.com/minetest/minetest/bl ... ng.lua#L92
Code: Select all
local nd = core.registered_nodes[n2.name]
-- If it's not air or liquid, remove node and replace it with
-- it's drops
if n2.name ~= "air" and (not nd or nd.liquidtype == "none") then
core.remove_node(np)
if nd and nd.buildable_to == false then
-- Add dropped items
local drops = core.get_node_drops(n2, "")
for _, dropped_item in pairs(drops) do
core.add_item(np, dropped_item)
end
end
- Falling node on rail = The rail is dropped as item even if protected.
- Falling node on sapling = The sapling is dropped as item even if protected.
- Falling node on flower = The flower is dropped as item even if protected.
- Falling node on steel ladder = The ladder is dropped as item even if protected.
- Falling node on wood sign = The sign is dropped as item even if protected.