Skip to content

Instantly share code, notes, and snippets.

@agrif
Created November 12, 2011 07:05
Show Gist options
  • Save agrif/1360178 to your computer and use it in GitHub Desktop.
Save agrif/1360178 to your computer and use it in GitHub Desktop.
Python 2.6.6 (r266:84292, May 28 2011, 19:49:25)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import redstone as rs
>>> n = rs.NBT.parse_from_file("level.dat")
>>> for x in n.find("Pos"):
... print x.float
...
14.6386233054
83.6200000048
60.5681699564
>>> print n.find("LevelName").string
SeedGlacier
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment