Definition: With the existence of the "/execute on vehicle" command, the entity that an entity is riding is always considered its vehicle. For instance, if a skeleton is riding on a spider, the spider is considered the skeleton's vehicle, and the skeleton is considered the spider's passenger.
In version 1.6, when horses were introduced, players could no longer target their vehicle. Dismounting your vehicle was changed to require sneaking, as right-clicking on the vehicle was no longer possible due to the inability to target it. (Previously, you could dismount your vehicle by right-clicking on it.) However, this inability to target your vehicle extends to other entities, which can pose problems. The vehicle of your vehicle cannot be targeted either, which is likely intended. For instance, if you are riding a pig that is riding a boat, you cannot target that boat. The issue described in this bug report is that if, for example, you have a boat with two pigs and ride one of the pigs, you cannot target the other pig because that pig is riding the vehicle of your vehicle. As that pig is neither your vehicle nor the vehicle of your vehicle, you should still be able to target it to switch your mount from one pig to the other.
steps to reproduce
Place a boat
Place two saddled pigs into the boat so that they are riding it
Mount one of the pigs
Target the other pig with your crosshair
Observation: You cannot target the other pig, preventing you from mounting it by right-clicking. Instead, your aim passes through the pig, allowing you to target blocks or entities beyond it.
Expectation: You should be able to target the other pig, as it is only a passenger of the vehicle of your vehicle and not your vehicle itself.
Additional notes
You cannot target the vehicle of your vehicle
You cannot target the vehicle of your vehicle of your vehicle
This extends infinitely in a recursive manner
You cannot target passengers of your vehicle, which is likely intentional as it prevents players riding the same camel from attacking each other.
You cannot target passengers of the passengers of your vehicle
You cannot target passengers of a passenger of a passenger of your vehicle
This extends infinitely in a recursive manner.
Attachments
Comments


Requesting ownership if possible, since the reporter is inactive. This also affects 24w14a.

Thank you for your report!
After consideration, the issue is being closed as Working as Intended.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History – Snapshot Version History – The official Minecraft feedback site
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Relates to MC-19163