I would like to suggest adding a client-to-server packet that informs the server whenever a player changes their camera perspective.
Currently, the server has no reliable way to know whether a player is using:
- First person
- Third person back
- Third person front
The client could send a small packet whenever the perspective changes, containing the player's current camera mode.
This would be especially useful for server-side plugins, datapacks, and custom gameplay systems. For example, servers could:
- Trigger mechanics depending on the player's current perspective.
- Create custom camera-based interactions.
- Adjust animations, HUD elements, or gameplay behavior.
- Implement features that currently require a client-side mod just to detect the player's camera perspective.
The packet would only need to be sent when the player changes perspective, so the network impact should be negligible.
Ideally, the server would receive something equivalent to:
FIRST_PERSONTHIRD_PERSON_BACKTHIRD_PERSON_FRONT
This would give server developers more flexibility while keeping the feature fully compatible with vanilla clients.
3 Comments
Please sign in to leave a comment.
Post a new comment: