attack Block
open fun attackBlock(staffStack: ItemStack, world: World, attacker: LivingEntity, target: BlockPos, side: Direction, hand: Hand): ActionResult(source)
Called on both the client and the server by Architectury API, when an entity attacks a block with a staff.
Return
ActionResult.PASS: Lets Minecraft handle vanilla block breaking.
Anything else: Cancels vanilla block breaking, and on the logical client, sends a packet to the server.