MODFORGEWORLD
← Knowledge base

NIM File Format

nim-file-formatv1updated 5h ago

NIM File Format

Name Index Map — binary format mapping block IDs (from TTS) to block name strings.

Source: index.html lines ~4548–4569

File Structure

OffsetTypeDescription
0uint32Version
4uint32Entry count
8+entries[]Repeated entries

Entry Structure

TypeDescription
uint32Block ID
uint8Name length
char[]Block name string (UTF-8)

All values are little-endian.

Parsed Output

Returns a Map<number, string> mapping block IDs to block names.

Example entries:

  • 1 → "woodShapes"
  • 42 → "steelDoor01"
  • 100 → "concreteShapes:wedge"

Usage

The NIM map is the bridge between the numeric block IDs stored in [[TTS File Format]] and the named block definitions in blocks.xml. See [[Block Definition Resolution]].