Update item.cpp

0.4 attribute support.