Created
November 19, 2011 22:07
-
-
Save agrif/1379434 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import redstone as rs | |
for name in sys.argv[1:]: | |
print "Inspecting %s" % name | |
region = rs.Region.open(name) | |
for x in range(32): | |
for z in range(32): | |
if region.contains_chunk(x, z): | |
chunk = rs.NBT.parse_from_region(region, x, z) | |
for entity in chunk['Level']['TileEntities']: | |
if entity['id'].string == "Sign": | |
print "Found sign" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment