Event
carrotOnAStick
This is a function decorator.
The decorated function will be called when a player right-clicks with a carrot on a stick.
Parameters
This decorator doesn't take any parameters.
- The
@sis the player who right-clicked with the carrot on a stick. - The
execution positionis the position of the player.
Example
Use with raycast(see raycast) to perform actions at the location the player is looking at:
Summon a TNT at the location the player is looking at when they right-click with a carrot on a stick.