How do you get the drawtype of a node?
I'm trying to figure out some code that finds the drawtype of a node. How would I go about doing this?
FOSS gamedev and creative worlds
https://forums.minetest.org/
local function get_node_drawtype(nodename)
if not minetest.registered_nodes[nodename] then
return ""
end
return minetest.registered_nodes[nodename].drawtype
end