Black outline – Appears when targeting entities with your dominant hand. This indicates that the creature can be attacked or the vehicle can be destroyed.
Green outline – Appears when targeting interactable entities with your secondary hand. This includes mob interactions like feeding, shearing wool, milking a cow, etc. and vehicle interactions like riding a minecart, boat, or pig.