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
if not minetest.registered_nodes[nn] or minetest.registered_nodes[nn].walkable then
With this:
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 v = self.object:getvelocity()
if not minetest.registered_nodes[nn] or minetest.registered_nodes[nn].walkable and v.y == 0 then
It makes it so you can throw items onto nodes with nodeboxes without awkward floating items
This is helpful, say in adventure maps, you could have a section where you throw an item onto a mesecons pressure plate, it would work with this small modification.
Or you could have items drop down pipes or into nodebox baskets or something.