Skip to content

Add BlockDropItemEvent::addDrop(ItemStack) #12278

@ens-gijs

Description

@ens-gijs

Is your feature request related to a problem?

There is no way for a plugin to directly create an instance of an Item

Describe the solution you'd like.

Add BlockDropItemEvent::addDrop(ItemStack)

Describe alternatives you've considered.

I could use World drop item, but this is rather annoying and breaks the event handling chain of BlockDropItemEvent as any downstream handlers will encounter an empty drops list (or not find the Item I wish to add) and will have to also hook an item spawn event and have no idea that spawn was caused by a block having "dropped" it.

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions