Skip to content

BlockExpEvent does not fire when using a grindstone #11338

@KabanFriends

Description

@KabanFriends

Expected behavior

When using a grindstone to remove enchantments from an item, it should fire BlockExpEvent as the grindstone drops experience orbs.

Observed/Actual behavior

When using a grindstone to remove enchantments from an item, the server does not fire BlockExpEvent.

Steps/models to reproduce

  1. Code a test plugin that listens for BlockExpEvent
@EventHandler
public void onBlockExp(BlockExpEvent event) {
    BlockPosition pos = event.getBlock().getLocation().toBlock();
    System.out.println("Event at " + pos);
}
  1. Join the server and use a grindstone
  2. See that the test code is not triggered

Plugin and Datapack List

  • (Test plugin to reproduce the bug)

Paper version

This server is running Paper version 1.21.1-52-master@e08e667 (2024-08-26T18:02:06Z) (Implementing API version 1.21.1-R0.1-SNAPSHOT)
You are running the latest version

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.version: 1.21.1Game version 1.21.1

    Type

    No fields configured for Bug.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions