Lava destroying blocks/items get pushed up when inside of blocks
All that is required to push items that are inside blocks up, and to destroy items that are thrown into lava is that this line is added to line 85 of item_entity.lua
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
local nn = minetest.env:get_node(p).name
if nn == "default:lava_source" or nn == "default:lava_flowing" then
self.object:remove()
end
if minetest.registered_nodes[nn].walkable then
self.object:setvelocity({x=0,y=4,z=0})
end