PyAnvilEditor
PyAnvilEditor copied to clipboard
I need a little bit of help to understand the lib
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