Try to understand how mapgens work
I try to understand how mintest generates a map. A map consists of nodes. The next bigger unit is a block, containing 16x16x16 nodes. The largest units are mapchunks, containing 5x5x5 blocks or 80x80x80 nodes.
There are also sectors, but I never saw them used in code.
The mapgen generates the world mapchunk by mapchunk. If I register a generator with registered_on_generated the generator is called each time a mapchunk should be generated. He gets the world seed and two coordinates, often called minp and maxp.
The mg calls get_mapgen_object("voxelmanip"), which returns an vm object and two coordinates, often called emin and emax
My first questions:
Did I get that right so far?
The mapgen only stores the ID of a node as integer, params are optional. Is that correct?
What is the difference between minp/maxp and emin/emax? What do they mean?
If I understand this part I will continue with the next questions
There are also sectors, but I never saw them used in code.
The mapgen generates the world mapchunk by mapchunk. If I register a generator with registered_on_generated the generator is called each time a mapchunk should be generated. He gets the world seed and two coordinates, often called minp and maxp.
The mg calls get_mapgen_object("voxelmanip"), which returns an vm object and two coordinates, often called emin and emax
My first questions:
Did I get that right so far?
The mapgen only stores the ID of a node as integer, params are optional. Is that correct?
What is the difference between minp/maxp and emin/emax? What do they mean?
If I understand this part I will continue with the next questions