http://dev.minetest.net/minetest.register_node says:
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
on_dig = function(pos, node, digger)
function on_dig takes 3 parameters, none of them seems to be optional.
http://dev.minetest.net/minetest.node_dig says:
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
minetest.node_dig(pos, node, digger)
and now http://dev.minetest.net/minetest.dig_node :
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
minetest.dig_node(pos)
only takes pos as argument. It seems to call minetest.node_dig but without the 2nd and 3rd argument.
shouldn't be the correct documentation of on_dig and node_dig be:
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
function(pos [,node [,digger]])
or should minetest.dig_node(pos) be minetest.dig_node(pos, node, digger) ?
Or do I understand something wrong?
How is the correct call of on_dig()?
Witch arguments do I always get to work with?
Thanks in advance.