Hi there,
I thought it would be nice to have access to some basic user data via commands. Things such as
- Objective: times left clicked (we have 'broken', but not clicked. Useful for checking if a player hits a block or entity)
- Objective: times right clicked (we have 'used', but doesn't work for most items such as tools, sticks, etc. Useful for checking if a player right clicks a block or entity)
- Player data: Get the block type being targeted. Useful for similar reasons to the above
- Player data: Alternatively, get the coordinates of the block being targeted. Then be able to check block data at those coordinates.
- Player data: Is the player currently crouching, sprinting, swimming
A simple example of when things like this would be useful is if you ever want to trigger a function or event when a player right clicks a specific block. If the specific block is a container, then instead the function could make it so that it only runs if the player is shift and right clicking the block.
Please sign in to leave a comment.
0 Comments