Fires when the block you were digging has broken.
Whether the block is diggable. This returns false for air, water, lava, etc.
Activate the held item. This action is pressing down right-click for the item.
Deactivate the held item. This action is releasing right-click for the held item.
Place the currently equipped block.
Activate a block. Use the default right-click option for the given block (e.g. open chests, furnaces, change delay of a repeater, etc).
Begin digging into a block with the currently equipped item. When you finally break through the block, you get a "diggingCompleted" event. Until the 2nd pass is implemented, there is no way to stop digging.
If you are currently digging, this is the Block
that you are digging. If you are not currently digging, this is null
.
2nd pass. Add ability to predict how long things will take to dig so we can add these api functions:
Fires when digging has been cancelled.
Stops digging.
The intent is that if you want to place a block, you use
placeBlock
, but if you want to fire a bow or eat a sandwich you useactivateItem
. Do you have a suggested change to make this API simpler and/or easier to understand?