Add map generator output aliases as required by an in-development minetest branch
authorPerttu Ahola <celeron55@gmail.com>
Tue, 27 Mar 2012 22:33:02 +0000 (01:33 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 27 Mar 2012 22:33:02 +0000 (01:33 +0300)
mods/default/init.lua

index 8788b38102963d09ba8e70fbb95a354dd4cc1d55..60ef102396fb51a375e7feacf0602da4d2d71e4d 100644 (file)
@@ -1298,6 +1298,30 @@ minetest.add_to_creative_inventory('default:water_source')
 minetest.add_to_creative_inventory('default:lava_source')
 minetest.add_to_creative_inventory('default:ladder')
 
+--
+-- Aliases for map generator outputs
+-- (required at least by an in-development branch)
+--
+
+minetest.register_alias("mapgen_air", "air")
+minetest.register_alias("mapgen_stone", "default:stone")
+minetest.register_alias("mapgen_tree", "default:tree")
+minetest.register_alias("mapgen_leaves", "default:leaves")
+minetest.register_alias("mapgen_apple", "default:apple")
+minetest.register_alias("mapgen_water_source", "default:water_source")
+minetest.register_alias("mapgen_dirt", "default:dirt")
+minetest.register_alias("mapgen_sand", "default:sand")
+minetest.register_alias("mapgen_gravel", "default:gravel")
+minetest.register_alias("mapgen_clay", "default:clay")
+minetest.register_alias("mapgen_lava_source", "default:lava_source")
+minetest.register_alias("mapgen_cobble", "default:cobble")
+minetest.register_alias("mapgen_mossycobble", "default:mossycobble")
+minetest.register_alias("mapgen_dirt_with_grass", "default:dirt_with_grass")
+minetest.register_alias("mapgen_junglegrass", "default:junglegrass")
+minetest.register_alias("mapgen_stone_with_coal", "default:stone_with_coal")
+minetest.register_alias("mapgen_stone_with_iron", "default:stone_with_iron")
+minetest.register_alias("mapgen_mese", "default:mese")
+
 --
 -- Some common functions
 --