PilzAdam wrote:Can you give me the code where you declare drop1?
Here it is:
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 drop1 = minetest.get_node_drops(nodepos)
I already tried to insert the tool name.
--------------------------------------------------------
EDIT:I tried 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 drop1 = minetest.get_node_drops(nodepos.name)
And i tried:
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 drop1 = minetest.get_node_drops("default:dirt")
It works if i insert a node name,like "default:dirt".
Here the nodepos declaration:
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
nodepos = { x = pos.x, y = pos.y - digs, z = pos.z }