Skip to content

Throw EntityChangeBlockEvent during BrushableBlockEntity#brush #12132

@wizjany

Description

@wizjany

Is your feature request related to a problem?

Currently, only the initial interaction with a brush item throws an event. Dragging the brush between blocks while holding allows players to continue brushing suspicious blocks without plugin oversight.

Describe the solution you'd like.

BrushableBlockEntity should throw EntityChangeBlockEvents before making changes to the block. This may require some reshuffling of the logic to preserve loot table state. Events should be thrown both for the dusted property change as well as the final brushingCompleted change.

Describe alternatives you've considered.

#9898 (review)

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: apistatus: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions