Skip to content

[1.13.x] LootTableLoadEvent not fired for vanilla loot tables (worked in 1.12.x) #5671

@Niko-sk2x

Description

@Niko-sk2x

In 1.12.x LootTableLoadEvent appears to be fired for all loot tables except those added into world/data. ForgeHooks.loadLootTable receives flag custom to determine that, where in 1.12.x it changed depending on which method used it - one was for world loot tables, and one was loading loot tables from vanilla and mods.

But in 1.13.x that custom flag is determined by resource pack name, and that comes from resource pack named Default is considered "custom", even if it's vanilla default loot table. On discord I got an answer that it should match 1.12.x.

To match the 1.12 behavior, I think it would need to get access to ResourcePackType, but I don't see any reasonable path to that data from IResource or IResourceManager.

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.13Needs UpdateThis request requires an update from the author to confirm whether the request is relevant.RegressionThis request demonstrates something missing in a newer version that was present in a prior version.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions