Wizards of Lua

The Art of Spell Crafting


BlockEvent

The BlockEvent is the base class of BlockBreakEvent and BlockPlaceEvent.

The BlockEvent class is a subtype of the Event class and inherits all its properties and functions.

Here is an overview of the BlockEvent properties:

Property Type read / write
block Block r
pos Vec3 r

Properties

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


block : Block

This is the block this event is about.


pos : Vec3

The block’s position.