I Need Help with set_node (Solved)

MarkSill
Member
 
Posts: 12
Joined: Wed Sep 12, 2012 00:18

I Need Help with set_node (Solved)

by MarkSill » Sun Apr 21, 2013 09:48

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.
Last edited by MarkSill on Sun Apr 21, 2013 09:55, edited 1 time in total.
Are you a potato?
 

User avatar
Mito551
Member
 
Posts: 1271
Joined: Sat Jun 16, 2012 15:03

by Mito551 » Sun Apr 21, 2013 09:53

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"})
 

MarkSill
Member
 
Posts: 12
Joined: Wed Sep 12, 2012 00:18

by MarkSill » Sun Apr 21, 2013 09:56

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!
Are you a potato?
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 7 guests

cron