Added looting function to entity