Skip to content

Commit

Permalink
Add entity to blockBreakProgress (#2648)
Browse files Browse the repository at this point in the history
see this pr #2647
  • Loading branch information
JackCrispy authored Aug 7, 2022
1 parent b23d040 commit 1bfaf52
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1321,19 +1321,21 @@ Fires when a note block goes off somewhere.
* `isOpen`: number of players that have the chest open. 0 if it's closed
* `block2`: a Block instance, the other half of the block whose lid opened. null if it's not a double chest

#### "blockBreakProgressObserved" (block, destroyStage)
#### "blockBreakProgressObserved" (block, destroyStage, entity)

Fires when the client observes a block in the process of being broken.

* `block`: a Block instance, the block being broken
* `destroyStage`: integer corresponding to the destroy progress (0-9)
* `entity`: the entity which is breaking the block.

#### "blockBreakProgressEnd" (block)
#### "blockBreakProgressEnd" (block, entity)

Fires when the client observes a block stops being broken.
This occurs whether the process was completed or aborted.

* `block`: a Block instance, the block no longer being broken
* `entity`: the entity which has stopped breaking the block

#### "diggingCompleted" (block)

Expand Down

0 comments on commit 1bfaf52

Please sign in to comment.