Add a sign and a lever nodes

Nekrofage
Member
 
Posts: 35
Joined: Mon Oct 17, 2016 21:12
GitHub: Nekrofage

Add a sign and a lever nodes

by Nekrofage » Sun Oct 23, 2016 09:45

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 ! ;-)
 

Nekrofage
Member
 
Posts: 35
Joined: Mon Oct 17, 2016 21:12
GitHub: Nekrofage

Re: Add a sign and a lever nodes

by Nekrofage » Sun Oct 23, 2016 14:18

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?
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron