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:

    mapblock_data

Tables

metadata
Metadata

Fields:

  • meta
    • fields
  • timers
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
generated by LDoc 1.5.0 Last updated 2024-01-26 07:40:44