How to display dynamic data in a sign board or simple board? is it possible? I have used this code, but it is not working. Can someone help me.
function display_data()
local pos = {x=-4, y=14, z=134}
local node = minetest.get_node(pos)
if node.name == "signs:label_medium" then
local meta = minetest.get_meta(pos)
meta:set_string("text", "Hello, World!")
minetest.set_node(pos, node)
end
end
Dynamic data display
- Blockhead
- Member
- Posts: 1698
- Joined: Wed Jul 17, 2019 10:14
- GitHub: Montandalar
- IRC: Blockhead256
- In-game: Blockhead Blockhead256
- Location: Land Down Under
- Contact:
Re: Dynamic data display
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂
-
- Member
- Posts: 1118
- Joined: Mon Dec 29, 2014 08:07
- Location: USA
Re: Dynamic data display
Most likely, you are not using the signs from default MTG, but using the signs from display modpack. If this is the case, you can try using the following function from the signs_api mod.
Shad
Code: Select all
signs_api.set_display_text(pos, text, font)
Shad
Who is online
Users browsing this forum: No registered users and 10 guests