Skip to content

Feature request: add a way to get the picked block/entity on creative #13797

@WizardlyBump17

Description

@WizardlyBump17

Is your feature request related to a problem?

Currently there is no way to get the ItemStack that is created when a player picks a block in creative with CTRL + MIDDLE CLICK. It would be very nice to have it, since the NMS ItemStack exists, the NMS block can return it, but it is not passed on the PlayerPickBlockEvent.

Image Image

Describe the solution you'd like.

A PlayerPickItemEvent#getPickedItem() and PlayerPickItemEvent#setPickedItem(ItemStack) methods for us to manipulate the result. A BlockState#getPickItemStack() would be cool too.

Describe alternatives you've considered.

The only thing that comes to mind if using the NMS or trying to emulate the pick system

Other

No response

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions