Open alex4200 opened 2 years ago
TAG_Compound doesn't have a single value, it's a collection of other tags. The following code should work.
heightmaps = nbt.TAG_Compound(name="Heightmaps")
heightmaps.tags = self.nbt_data["Heightmaps"]
I'll probably add a values kwarg to TAG_Compound
to make it behave like the other tags. good idea.
When I just want to copy data, I usually can do something like this
except for the type "compound":
where I get an error
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?