2 dragonblocks.register_node = function(obj)
3 if obj and obj.name and obj.texture then
4 core.nodes[#core.nodes+1] = {}
5 core.nodes[#core.nodes].name = obj.name
6 core.nodes[#core.nodes].texture = obj.texture
7 core.nodes[#core.nodes].stable = false
8 if obj.stable == nil or obj.stable == true then
9 core.nodes[#core.nodes].stable = true
11 core.nodes[#core.nodes].hidden = false
13 core.nodes[#core.nodes].hidden = true
15 core.nodes[#core.nodes].translucent = false
16 if obj.translucent then
17 core.nodes[#core.nodes].translucent = true