When attempting to mount a rideable mob while holding that mob’s food item, the player cannot mount the mob.
Tamed horses, donkeys, and mules cannot be mounted while holding their food item (sugar, wheat, apple, golden apple, enchanted golden apple, carrot, golden carrot, or hay bale) .
Tamed llamas and trader llamas cannot be mounted while holding their food item (wheat or hay bale).
Camels with saddles cannot be mounted while holding their food item (cactus).
Striders with saddles cannot be mounted while holding their food item (warped fungus).
Pigs with saddles cannot be mounted while holding their food item (carrot, potato, or beetroot).
Note: This is in the scenario that there is no other action the player can do with the mob’s food item in that moment (healing, breeding)
Expected Result:
The player can mount the mob while holding its food item, since the mounting action takes priority.
Actual Result:
The player cannot mount the mob while holding its food item, even when there is no other action the player can perform using the food item on the mob.
This can make it awkward when the player is trying to mount the mob in a hurry (such as when being chased by mobs) but they can’t because they are holding it’s food item and may not realize it.
Also, this issue is not present in Bedrock.
Well, you can’t mount mobs holding any item as far as I know, so i think this works as intended.