improved entity_damage and added inventory_click