Skip to content

Unable to set value for Compound #162

Description

@alex4200

When I just want to copy data, I usually can do something like this

block_entities = nbt.TAG_List(name="block_entitites", value=self.nbt_data["block_entities"])

except for the type "compound":

heightmaps = nbt.TAG_Compound(name="Heightmaps", value=self.nbt_data["Heightmaps"])

where I get an error

    heightmaps = nbt.TAG_Compound(name="Heightmaps", value=self.nbt_data["Heightmaps"])
TypeError: __init__() got an unexpected keyword argument 'value'

Why is that? Why can't I copy the data as for all the other data types?

And how to best copy data like that?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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