Trying to interact with entity 3 or more blocks away without seeing its eyes only interacts client-side
The bug
Trying to interact with an entity which is 3 or more blocks away without seeing its eyes only causes the interaction to happen only client-side.
How to reproduce
- Summon a horse
- Make sure you are three or more blocks away from it and that you cannot see its eyes
- Right click the horse
→ The rotation of the horse is applied to you but you did not mount the horse
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The method net.minecraft.network.NetHandlerPlayServer.processUseEntity(CPacketUseEntity) requires the player to see the eyes of the entity (method EntityLivingBase.canEntityBeSeen(Entity)). This check might make no sense because you are not always trying to interact with the head of an entity.
Created Issue:
Trying to mount horse from afar without line-of-sight to its head rotates player
1. Tame a horse
2. Attach a saddle
3. Mount
3. Face somewhere
4. Make note of horizontal facing
4. Dismount
3. Place fence in the air so that there is a 5 block gap between the fence and the ground
6. Attach the horse to the fence with a lead
4. Surround the horse with a 7x7 hollow square of slabs at eye level
5. Click the horse when standing on the ground outside the slab square
6. Make note of horizontal facing againUnexpectedly the player will have the same horizontal facing when dismounting as after clicking the horse. The player's vertical facing will also change but does not match vertical facing after dismounting the horse.
1. Tame a horse
2. Attach a saddle
3. Mount
3. Face somewhere
4. Make note of horizontal facing
4. Dismount
3. Place fence in the air so that there is a 5 block gap between the fence and the ground
6. Attach the horse to the fence with a lead
4. Surround the horse with a 7x7 hollow square of slabs at eye level
5. Click the horse when standing on the ground outside the slab square
6. Make note of horizontal facing againUnexpectedly the player will have the same horizontal facing when dismounting as after clicking the horse. The player's vertical facing will also change but does not match vertical facing after dismounting the horse.
1. Tame a horse
2. Attach a saddle
3. Mount
4. Face somewhere
5. Make note of horizontal facing
6. Dismount
7. Place fence in the air so that there is a 5 block gap between the fence and the ground
8. Attach the horse to the fence with a lead
9. Surround the horse with a 7x7 hollow square of slabs at eye level
10. Click the horse when standing on the ground outside the slab square
11. Make note of horizontal facing againUnexpectedly the player will have the same horizontal facing when dismounting as after clicking the horse. The player's vertical facing will also change but does not match vertical facing after dismounting the horse.
1. Tame a horse
2. Attach a saddle
3. Mount
4. Face somewhere
5. Make note of horizontal facing
6. Dismount
7. Place fence in the air so that there is a 5 block gap between the fence and the ground
8. Attach the horse to the fence with a lead
9. Surround the horse with a 7x7 hollow square of slabs at eye level
10. Click the horse when standing on the ground outside the slab square
11. Make note of horizontal facing againUnexpectedly the player will have the same horizontal facing when dismounting as after clicking the horse. The player's vertical facing will also change but does not match vertical facing after dismounting the horse.
- Tame a horse
- Attach a saddle
- Mount
- Face somewhere
- Make note of horizontal facing
- Dismount
- Place fence in the air so that there is a 5 block gap between the fence and the ground
- Attach the horse to the fence with a lead
- Surround the horse with a 7x7 hollow square of slabs at eye level
- Click the horse when standing on the ground outside the slab square
- Make note of horizontal facing again
Unexpectedly the player will be forced to have the same horizontal facing when dismounting as after clicking the horse. The player's vertical facing will also change but does not match vertical facing after dismounting the horse.
- Tame a horse
- Attach a saddle
- Mount
- Face somewhere
- Make note of horizontal facing
- Dismount
Place fence in the air so that there isa5blockgap between the fence and the ground- Attach the horse to the fence with a lead
- S
urround the horse with a 7x7 hollow square of slabs at eyelevel- Click the horse when standing on the ground outside the slab square
- Make note of horizontal facing again
Unexpectedly the player will be forced to have the same horizontal facing when dismounting as after clicking the horse. The player's vertical facing will also change but does not match vertical facing after dismounting the horse.
- Tame a horse
- Attach a saddle
- Mount
- Face somewhere
- Make note of horizontal facing
- Dismount without touching the horse (by dismounting to a block at the eye level of the horse for instance)
- Stand more than three blocks away from the horse with without line-of-sight to its head (by digging straight down one block and placing a block at horse head level)
- Click the horse
- Make note of horizontal facing again
Unexpectedly the player will be forced to have the same horizontal facing when dismounting as after clicking the horse. The player's vertical facing will also change but does not match vertical facing after dismounting the horse.
- Tame a horse
- Attach a saddle
- Mount
- Face somewhere
- Make note of horizontal facing
- Dismount without touching the horse (by dismounting to a block at the eye level of the horse for instance)
- Stand more than three blocks away from the horse
withwithout line-of-sight to its head (by digging straight down one block and placing a block at horse head level)- Click the horse
- Make note of horizontal facing again
Unexpectedly the player will be forced to have the same horizontal facing when dismounting as after clicking the horse. The player's vertical facing will also change but does not match vertical facing after dismounting the horse.
- Tame a horse
- Attach a saddle
- Mount
- Face somewhere
- Make note of horizontal facing
- Dismount without touching the horse (by dismounting to a block at the eye level of the horse for instance)
- Stand more than three blocks away from the horse without line-of-sight to its head (by digging straight down one block and placing a block at horse head level like in attachment, for instance)
- Click the horse
- Make note of horizontal facing again
Unexpectedly the player will be forced to have the same horizontal facing when dismounting as after clicking the horse. The player's vertical facing will also change but does not match vertical facing after dismounting the horse.
- Tame a horse
Attach a saddle- Mount
- Face somewhere
- Make note of horizontal facing
- Dismount without touching the horse (by dismounting to a block at the eye level of the horse for instance)
- Stand more than three blocks away from the horse without line-of-sight to its head (by digging straight down one block and placing a block at horse head level like in attachment, for instance)
- Click the horse
- Make note of horizontal facing again
Unexpectedly the player will be forced to have the same horizontal facing when dismounting as after clicking the horse. The player's vertical facing will also change but does not match vertical facing after dismounting the horse.
The issue also applies to llamas.
- Tame a horse
- Attach a saddle
- Mount
- Face somewhere
- Make note of horizontal facing
- Dismount without touching the horse (by dismounting to a block at the eye level of the horse for instance)
- Stand more than three blocks away from the horse without line-of-sight to its head (by digging straight down one block and placing a block at horse head level like in attachment, for instance)
- Click the horse
- Make note of horizontal facing again
Unexpectedly the player will be forced to have the same horizontal facing when dismounting as after clicking the horse. The player's vertical facing will also change but does not match vertical facing after dismounting the horse.
The issue also applies to llamas.
- Tame a horse
- Attach a saddle
- Mount
- Face somewhere
- Make note of horizontal facing
- Dismount without touching the horse (by dismounting to a block at the eye level of the horse for instance)
- Stand more than three blocks away from the horse without line-of-sight to its head (by digging straight down one block and placing a block at horse head level like in attachment, for instance)
- Click the horse
- Make note of horizontal facing again
Unexpectedly the player will be forced to have the same horizontal facing when dismounting as after clicking the horse. The player's vertical facing will also change but does not match vertical facing after dismounting the horse.
If the player touches the horse the player will still be forced to face in a direction but it will not be the same as before dismounting.
Trying to mounthorsefrom afar without line-of-sight to its headrotates playerTrying to mount entity 3 or more blocks away without seeing its eyes only rotates player
Trying tomountentity 3 or more blocks away without seeing its eyes onlyrotates playerTrying to interact with entity 3 or more blocks away without seeing its eyes only interacts client-side
Thank you very much for the report, I was able to replicate it now.
The issue also applies to llamas.
- Tame a horse
- Attach a saddle
- Mount
Face somewhere- Make note of horizontal facing
- Dismount without touching the horse (by dismounting to a block at the eye level of the horse for instance)
- Stand more than three blocks away from the horse without line-of-sight to its head (by digging straight down one block and placing a block at horse head level like in attachment, for instance)
- Click the horse
- Make
note of horizontal facing againUnexpectedly the player will be forced to have the same horizontal facing when dismounting as after clicking the horse. The player's vertical facing will also change but does not match vertical facing after dismounting the horse.
If the player touches the horse the player will still be forced to face in a direction but it will not be the same as before dismounting.
The bug
Trying to interact with an entity which is 3 or more blocks away without seeing its eyes only causes the interaction to happen only client-side.
How to reproduce
- Summon a horse
- Make sure you are three or more blocks away from it and that you cannot see its eyes
- Right click the horse
→ The rotation of the horse is applied to you but you did not mount the horseCode analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The method net.minecraft.network.NetHandlerPlayServer.processUseEntity(CPacketUseEntity) requires the player to see the eyes of the entity (method EntityLivingBase.canEntityBeSeen(Entity)). This check might make no sense because you are not always trying to interact with the head of an entity.
duplicates

Does
MC-88230describe the issue?@Marcono1234 No. Reproducing this issue does not require feeding the horse.