AdvancedPeripherals
AdvancedPeripherals copied to clipboard
[Feature] Track player actions [PlayerDetector]
Describe your idea
When player detector attached to poket computer. Make it trak info about current player. For example detector.getName() will return the name of player that hold poket computer.
Other function that I realy want to be realised for poket pc is playerGetLookPos() for poket pc (returns the block coordinates of block player look at and posibly it's nbt and other info). And some new events like "playerRightClick" "playerLeftClick" that will return the information about item that player held, selected slot.
And if it posible some events like this: "playerKeyPress" that wold be activated only when special key pressed (this keys was selected by player).
All new events need to be active even if player don't look at the poket pc.
Describe alternatives you've considered if you've any
Add camera perepherial that do the same stuff I described up here (trak player actions).
Additional context
Please. I realy need something like this. At last make this two things "playerClick" event and "getPlayerLookPos". (1.16.5)
Linked Issues
No response