Page 1 of 1

I Need Help with set_node (Solved)

PostPosted: Sun Apr 21, 2013 09:48
by MarkSill
For whatever reason, when I use the code minetest.env:place_node(pos, "randommodnamehere:soil") it says that argument #2 is nil but needs to be a string. I can't seem to figure out why though. This also happens with add_node and place_node.

EDIT: Nevermind, I solved the problem.

PostPosted: Sun Apr 21, 2013 09:53
by Mito551
try
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.env:place_node(pos,{name = "randommodnamehere:soil"})

PostPosted: Sun Apr 21, 2013 09:56
by MarkSill
Mito551 wrote:try
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.env:place_node(pos,{name = "randommodnamehere:soil"})


Thanks!