Skip to content

BlockDispenseLootEvent does not contain the LootTable being run #12293

@Esophose

Description

@Esophose

Is your feature request related to a problem?

The BlockDispenseLootEvent does not currently provide a way to get the LootTable being run. This makes it impossible to determine what loot table a Trial Spawner is dropping loot for. Vaults are excluded from this, because they can only contain a single loot table which can be acquired through the block state, unlike trial spawners which can contain many weighted entries.

Describe the solution you'd like.

I've taken a look at the patches for where the BlockDispenseLootEvent are being called, it looks like the LootTable being run is already available in scope and just needs to be mapped to a Bukkit version and given to the event.

Describe alternatives you've considered.

None, I don't think there are any reasonable alternatives

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    resolution: duplicateIssue or Request is a copy of an existing ticket.
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions