Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Add block use events

Open GliczDev opened this issue 7 months ago • 0 comments

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)

GliczDev avatar Jun 03 '25 16:06 GliczDev