aboutsummaryrefslogtreecommitdiff
path: root/redefinitions.lua
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-03-15 13:17:19 +0100
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-03-15 13:17:19 +0100
commit1947ed03c2e146607dfa3306eb805f532ac3a413 (patch)
treede802ba7569bd180a9bf31c3ce0dcc5dac72a455 /redefinitions.lua
parent16ae14f458321ccb0e93eed34bc7ade941b31026 (diff)
downloadmoreblocks-1947ed03c2e146607dfa3306eb805f532ac3a413.tar.gz
moreblocks-1947ed03c2e146607dfa3306eb805f532ac3a413.tar.bz2
moreblocks-1947ed03c2e146607dfa3306eb805f532ac3a413.zip
fix unknown nodes!
Diffstat (limited to 'redefinitions.lua')
-rw-r--r--redefinitions.lua94
1 files changed, 94 insertions, 0 deletions
diff --git a/redefinitions.lua b/redefinitions.lua
index 13b8f0b..08ec220 100644
--- a/redefinitions.lua
+++ b/redefinitions.lua
@@ -45,3 +45,97 @@ minetest.register_craft({
type = "toolrepair",
additional_wear = -0.10, -- Tool repair buff (10% bonus instead of 2%).
})
+
+
+-- minetest.register_alias("old","new")
+
+-- bookshelf
+minetest.register_alias("moreblocks:empty_shelf","moreblocks:empty_bookshelf")
+
+
+-- checkered stones and the cut versions
+minetest.register_alias("moreblocks:checker_stone_tile","moreblocks:split_stone_tile_alt")
+-- loop though the circular saw subtypes
+
+cs_names = {
+ {"micro", "_1"},
+ {"panel", "_1"},
+ {"micro", "_2"},
+ {"panel", "_2"},
+ {"micro", "_4"},
+ {"panel", "_4"},
+ {"micro", ""},
+ {"panel", ""},
+
+ {"micro", "_12"},
+ {"panel", "_12"},
+ {"micro", "_14"},
+ {"panel", "_14"},
+ {"micro", "_15"},
+ {"panel", "_15"},
+ {"stair", "_outer"},
+ {"stair", ""},
+
+ {"stair", "_inner"},
+ {"slab", "_1"},
+ {"slab", "_2"},
+ {"slab", "_quarter"},
+ {"slab", ""},
+ {"slab", "_three_quarter"},
+ {"slab", "_14"},
+ {"slab", "_15"},
+
+ {"slab", "_two_sides"},
+ {"slab", "_three_sides"},
+ {"slab", "_three_sides_u"},
+ {"stair", "_half"},
+ {"stair", "_alt_1"},
+ {"stair", "_alt_2"},
+ {"stair", "_alt_4"},
+ {"stair", "_alt"},
+
+ {"slope", ""},
+ {"slope", "_half"},
+ {"slope", "_half_raised"},
+ {"slope", "_inner"},
+ {"slope", "_inner_half"},
+ {"slope", "_inner_half_raised"},
+ {"slope", "_inner_cut"},
+ {"slope", "_inner_cut_half"},
+
+ {"slope", "_inner_cut_half_raised"},
+ {"slope", "_outer"},
+ {"slope", "_outer_half"},
+ {"slope", "_outer_half_raised"},
+ {"slope", "_outer_cut"},
+ {"slope", "_outer_cut_half"},
+ {"slope", "_outer_cut_half_raised"},
+ {"slope", "_cut"},
+}
+
+local nodename_dev = "checker_stone_tile"
+local nodename_11 = "split_stone_tile_alt"
+
+
+for i = 1, #cs_names do
+ local t = cs_names[i]
+ local cs_nodename_dev = "moreblocks" .. ":" .. t[1] .. "_" .. nodename_dev .. t[2]
+ local cs_nodename_11 = "moreblocks" .. ":" .. t[1] .. "_" .. nodename_11 .. t[2]
+ minetest.register_alias(cs_nodename_dev,cs_nodename_11)
+end
+
+
+
+-- wood tiles
+minetest.register_alias("moreblocks:wood_tile_offset", "moreblocks:wood_tile_up")
+
+
+-- new trapstones and other blocks
+-- all_faces_acaia_tree
+-- all_faces_pine_tree
+-- compressed_dirt
+-- trap_desert_stone
+-- trap_obsidian
+-- trap_obsidian_glass
+-- trap_sandstone
+-- TODO: in nodes.lua and crafting.lua