Wizards of Lua

The Art of Spell Crafting


RightClickItemEvent - When a Player Right-Clicks with an Item

The RightClickItemEvent class is fired when a player right-clicks somewhere with an Item.

Note that this is NOT fired if the player is targeting a block (see RightClickBlockEvent) or an entity (see PlayerEntityInteractEvent).

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