diff options
author | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-09-23 04:38:15 +0300 |
---|---|---|
committer | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-09-23 04:38:15 +0300 |
commit | 5a8922a0155b003ac0bb8d911e99808ffde1a7da (patch) | |
tree | c5beab878c2dbd5dbbe237775d94aefb97fa42f5 /missing_groups.lua | |
parent | c5cc8ec993bee4473af8c2e03c0f92ec0dc9453d (diff) |
first actual content
Diffstat (limited to 'missing_groups.lua')
-rw-r--r-- | missing_groups.lua | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/missing_groups.lua b/missing_groups.lua new file mode 100644 index 0000000..d6f985d --- /dev/null +++ b/missing_groups.lua @@ -0,0 +1,32 @@ +local nodes_with_missing_groups = { + -- Sandstone varieties + {name = "default:sandstone", groups = {sandstone = 1}}, + {name = "default:sandstonebrick", groups = {sandstone = 1}}, + {name = "default:sandstone_block", groups = {sandstone = 1}}, + {name = "default:desert_sandstone", groups = {sandstone = 1}}, + {name = "default:desert_sandstone_brick", groups = {sandstone = 1}}, + {name = "default:desert_sandstone_block", groups = {sandstone = 1}}, + {name = "default:silver_sandstone", groups = {sandstone = 1}}, + {name = "default:silver_sandstone_brick", groups = {sandstone = 1}}, + {name = "default:silver_sandstone_block", groups = {sandstone = 1}}, + -- Red bricks + {name = "default:brick", groups = {bricks = 1}}, + -- Obsidian + {name = "default:obsidian", groups = {stone = 1}}, + {name = "default:obsidianbrick", groups = {stone = 1}}, + {name = "default:obsidian_block", groups = {stone = 1}}, +} + +for _,node in ipairs(nodes_with_missing_groups) do + + local entity = {} + for name,value in pairs(minetest.registered_nodes[node.name]) do + entity[name] = value + end + for g,v in pairs(node.groups) do + entity.groups[minetest_errata.prefix .. g] = v + end + minetest.register_node(":" .. node.name, entity) + +end + |