0

Added new items.py file with list of itemID and names

This commit is contained in:
asmodai
2011-08-19 11:22:45 -04:00
committed by Andrew Chin
parent 5ae1fc4b64
commit 88e889301a
2 changed files with 214 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ import sys
sys.path.append(".")
from overviewer_core.nbt import load
from overviewer_core import items
print "Inspecting %s" % sys.argv[1]
@@ -13,4 +14,5 @@ print "Position: %r" % data['Pos']
print "Health: %s" % data['Health']
print "Inventory: %d items" % len(data['Inventory'])
for item in data['Inventory']:
print " %r" % item
print " %-3d %s" % (item['Count'], items.id2item(item['id']))