//Some items can be damaged in combat or during use. This rises the degree of deterioration
entity.addAttribute("deterioration", Type.INT, (byte) (Definition.HIDDEN | Definition.VOLATILE));
// Some items(food) have amount of something
// (a bottle, a piece of meat).
entity.addAttribute("amount", Type.INT);
// Some items (range weapons, ammunition, missiles)
// have a range.
entity.addAttribute("range", Type.SHORT, Definition.HIDDEN);