Page 1 of 1
Needs help with minetest.item_place_node

Posted:
Tue Jan 08, 2013 19:09
by Nore
Do you know if I can use a node as placer for minetest.item_place_node ?
If not, is there a workaround ?
Thanks in advance !

Posted:
Tue Jan 08, 2013 19:43
by PilzAdam
I dont understand the question.

Posted:
Tue Jan 08, 2013 19:53
by Nore
Well, the documentations says that:
minetest.item_place_node(itemstack, placer, pointed_thing)
Place item as a node
itemstack — ItemStack
placer — ObjectRef
pointed_thing — pointed_thing
However, I want a node to execute that command without a player (placer).
Is there a way to do it?

Posted:
Tue Jan 08, 2013 20:06
by PilzAdam
Oh, the reason I didnt understand you was that you wanted a node to call this. Nodes cant call functions.
So you want to call this function in your mod without having a player reference?
If so just use nil instead of a player reference.

Posted:
Wed Jan 09, 2013 05:26
by Nore
Thank you!
About node calling functions, it is with mesecons...