Paper
Paper copied to clipboard
Add block use events
this PR adds two events: BlockPreUseEvent and BlockUsedEvent.
BlockPreUseEvent- called before vanilla block use logic, allows to override the result and skip it. (useful when making custom blocks with e.g. noteblocks, allows to proceed to place the block on it)BlockUsedEvent- called after vanilla block use logic, allows to get the final interaction result. (useful when manually placing custom blocks with non-block items, allows to check if the used block already consumed the action, e.g. opened the door)