Wizards of Lua

The Art of Spell Crafting


RightClickBlockEvent - When a Player Right-Clicks on a Block

The RightClickBlockEvent class is fired when a player right-clicks at some block.

The RightClickBlockEvent class is a subtype of the PlayerInteractEvent class and inherits all its properties and functions.

Here is an overview of the RightClickBlockEvent properties:

Property Type read / write
hitVec Vec3 r

Properties

Below you find short descriptions about each of the properties and some examples about how to use them in your spells.


hitVec : Vec3

The exact position the player clicked at.