Skip to content

Instantly share code, notes, and snippets.

@agrif
Created November 19, 2011 22:07
Show Gist options
  • Save agrif/1379434 to your computer and use it in GitHub Desktop.
Save agrif/1379434 to your computer and use it in GitHub Desktop.
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