Skip to content

Instantly share code, notes, and snippets.

@TkTech
Created March 20, 2012 06:19
Show Gist options
  • Save TkTech/2131945 to your computer and use it in GitHub Desktop.
Save TkTech/2131945 to your computer and use it in GitHub Desktop.
nbt = NBTFile('out.nbt')
for name, tag in nbt.value.iteritems():
print name, tag
-> % python dummy.py
long_test TAG_Long('long_test', 104005)
list_test TAG_List('list_test', [TAG_String(None, 'Timmy'), TAG_String(None, 'Billy'), TAG_String(None, 'Sally')])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment