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.
Suggested changes just to wording of a few things (see my fork: https://gist.github.com/4528503).
How do we intend to handle the bot using his fists to punch obsidian, when a player comes in to mine that obsidian with a Diamond Pickaxe (finishing off the block quicker than the bot)? Would this be a diggingCompleted? Does one method of digging (first or second pass) work better or have any issues with this?