Skip to content
This repository was archived by the owner on Aug 10, 2025. It is now read-only.
This repository was archived by the owner on Aug 10, 2025. It is now read-only.

Cant get a nested tag #30

@Awire9966

Description

@Awire9966

Hi. I am trying to read from the Minecraft level.dat file for a project i am working on. This is my code:

CompoundTag WorldData = NbtFile.Read(WorldFolder + @".\level.dat", FormatOptions.Java, CompressionType.AutoDetect);
var seed = WorldData["Data"]["WorldGenSettings"]["Seed"];

It is giving me the error stating that I cant use [] on the Array.

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