Hell, people are always giving wrong answers on this forum...
Yes you can find the drawtype of a node; everything given to minetest.register_node is put into the minetest.registered_nodes table.
Thus: (not tested)
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
local function get_node_drawtype(nodename)
if not minetest.registered_nodes[nodename] then
return ""
end
return minetest.registered_nodes[nodename].drawtype
end