Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Nick403 opened this issue Aug 10, 2022 · 0 comments
Open

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

Nick403 opened this issue Aug 10, 2022 · 0 comments

Comments

@Nick403
Copy link

Nick403 commented Aug 10, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant