Skip to content

Feature Request: Enhanced World Management and Map ID Handling #2

@terbin

Description

@terbin

Feature 1: --world flag (no --input or --output needed, no copying of .mca files)

Implement a mode that uses only a --world flag for the world to be operated on, eliminating the need for --input and --output flags. This will be my primary mode of operation.

  • No copying of region files; only modify the ones that need changes.
  • When using the --world flag, --input and --output flags should be invalid and vice-versa.

data/map_<ID>.dat file handling:

  1. Rename the data folder to data-original (fail and stop if the operation does not succeed due to a locked or already existing data-original directory).
  2. Create a new data folder (fail and stop the operation if data already exists).
  3. Move and rename data-original/map_<original-ID>.dat files to data/map_<hashmap-ID>.dat in one step.
  4. Leave data-original/map_<ID>.dat files that are not in the region/entities .mca files.
  5. Rename the folder data-original to data-notin.

Feature 2: read-only map ID extraction from region/entities .mca files into two lists

Create a mode that extracts map IDs from region/entities .mca files in a read-only manner and generates two lists as txt files.

  • map_ids.txt A list of map IDs sorted numerically (lowest first).
  • map_id_locations.txt A list containing each map ID, its coordinates, and the entity it is residing in (use "on ground" if it's just an item on the ground).

Example for map with ID 1234:
1234 at 825946 70 438855 in chunk 5, 4 in region r.1613.857.mca in the overworld inside minecraft:chest

Feature 3: mode to generate .png files of original data/map_<id>.dat files

Add a mode to generate .png files of the original data/map_<id>.dat files, not the renamed ones. This is a low priority feature but would be a nice addition.

  • Similar functionality to mapdat2png, which currently fails on some new maps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions