Module serialize
serialization functions
Functions
modgen.serialize_mapblock (mapblock_pos) | Serializes the mapblock at the given position |
Tables
metadata | Metadata |
mapblock_data | Mapblock data |
Functions
- modgen.serialize_mapblock (mapblock_pos)
-
Serializes the mapblock at the given position
Parameters:
- mapblock_pos the mapblock-position
Returns:
Tables
- metadata
-
Metadata
Fields:
- meta
- fields
- timers
- meta
- mapblock_data
-
Mapblock data
Fields:
- node_ids table of 4096 node-ids
- param1 table of 4096 param1/light values
- param2 table of 4096 param2 values
- metadata metadata
- has_metadata
- empty true if the mapblock only contains air or other ignored nodes
- pos functions.mapblock_pos