Skip to content

I need a little bit of help to understand the lib #6

@Nick403

Description

@Nick403

How to edit a value for specific thing like SpawnX and save that?

I added sets in the nbt.py:

def sets(self):
            self.children['SpawnX'] = IntTag(100000)
            return self.children['SpawnX']

I added the following code in main

test = level_data.get("Data").sets()
new = level_data.get("Data").get("SpawnX")

and it returns : IntTag 'None' = 100000

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