Page 1 of 1

[Help]MapGen

PostPosted: Fri Dec 28, 2012 14:28
by Ragnar
i need help with the mapgen.lua
i cant seem to find the apple generating code anywhere but the aliasing...
eg.
minetest.register_alias("mapgen_apple", "default:apple")
this is the only thing that has "apple" in it...
so if i would register "acorn" there, would it also generate that?
eg.
minetest.register_alias("mapgen_apple", "911:acorn")
would it then generate acorns?
i know it sounds absurd, but thats the thing i dont find in the API page...
atleast when i look for mapgen, generate etc...
help?

PostPosted: Fri Dec 28, 2012 14:52
by PilzAdam
Look at src/mapgen.cpp for generation of trees and other things.

PostPosted: Fri Dec 28, 2012 14:55
by Ragnar
ok?

PostPosted: Fri Dec 28, 2012 14:56
by Ragnar
well thanks anyway...
gonna try it tomorrow...