diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-28 01:26:15 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-28 01:26:15 +0300 |
commit | 49c2ca02160bd387e04027a0d14c4c3b4a2da469 (patch) | |
tree | 0887373d653be79a5e39cd70a4767ffdd6e84d4d /games | |
parent | 04172e3dd0bf1b2645c4bbc0c819e4e3a5ab87e3 (diff) | |
download | minetest-49c2ca02160bd387e04027a0d14c4c3b4a2da469.tar.gz minetest-49c2ca02160bd387e04027a0d14c4c3b4a2da469.tar.bz2 minetest-49c2ca02160bd387e04027a0d14c4c3b4a2da469.zip |
Make mapgen use mapgen_* node aliases rather than the LEGN macro
Diffstat (limited to 'games')
-rw-r--r-- | games/minimal/mods/default/init.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/games/minimal/mods/default/init.lua b/games/minimal/mods/default/init.lua index 8788b3810..932e90dee 100644 --- a/games/minimal/mods/default/init.lua +++ b/games/minimal/mods/default/init.lua @@ -1299,6 +1299,29 @@ minetest.add_to_creative_inventory('default:lava_source') minetest.add_to_creative_inventory('default:ladder') -- +-- Aliases for the current map generator outputs +-- + +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 -- |