Add map generator output aliases as required by an in-development minetest branch

This commit is contained in:
Perttu Ahola 2012-03-28 01:33:02 +03:00
parent ad58e41580
commit b4d659d8ae
1 changed files with 24 additions and 0 deletions

View 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:lava_source')
minetest.add_to_creative_inventory('default:ladder') 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 -- Some common functions
-- --