Page 1 of 1

Add a sign and a lever nodes

PostPosted: Sun Oct 23, 2016 09:45
by Nekrofage
Hi !!

I search 2 Lua example codes to:
- Add a sign node with a text and
- Add a lever node

There is libraries about that but I want something very easy to use and not complicated.

Thank you ! ;-)

Re: Add a sign and a lever nodes

PostPosted: Sun Oct 23, 2016 14:18
by Nekrofage
Finally, I use this lib for adding signs:
https://github.com/minetest-mods/signs_lib

And I use this Lua code:
minetest.set_node({x=pos.x + 2, y=pos.y, z=pos.z }, {name="signs:sign_yard"})

So, I would to know how to modify the sign text?