When Coveted Jewel enters the battlefield, draw three cards.
{T}: Add three mana of any one color.
Whenever one or more creatures an opponent controls attack you and aren't blocked, that player draws three cards and gains control of Coveted Jewel. Untap it.
A creature attacking a planeswalker you control won't cause Coveted Jewel's last ability to trigger.
Coveted Jewel's last ability resolves after blockers are chosen but before combat damage is dealt.
Coveted Jewel's last ability triggers after you declare blockers (or declare no blockers at all) if any attacking creatures are unblocked. It doesn't matter if some attacking creatures were blocked.
If more than one opponent attacks you at the same time, Coveted Jewel's last ability triggers for each of them. You choose which player ends up with Coveted Jewel, but each of them draws three cards and has a chance to activate its mana ability.