Repurposed Structures (Neoforge/Forge)

Repurposed Structures (Neoforge/Forge)

57M Downloads

inject other mod's items from vanilla loottables into my own

TelepathicGrunt opened this issue ยท 3 comments

commented

BIG issue right now. Other mods should have to be forced to add compat for me. I need to use GLM on my own loottables and add compot for everyone else. I shouldn't be self-fish. It's not right forcing work on other modders when I am the common denominator lol

commented

I'm having a dilemma now.

So my mod repurposed structures make a bunch of biome variants of vanilla structures. But I chose to have my own loottables for each.
However, many mods are using the LootTableLoad even and GLM to modify vanilla loottables only.
There's two ways that I could go about this.

  1. Contact the major mods to ask them to use GLM to add to my loottables directly.
    Pros: Less work for me
    They switch to the more modern approach
    They can tailor the loot to specific biome types of my structures
    Cons: Other mods will not update to include new structures I add.
    More work for everyone else when I am the odd one out.
    I hate this option lol

  2. Using GLM on my own Loottables, generate the output from the corresponding vanilla loottable, and only inject items that are not in the minecraft namespace to my pools.
    Pros: Works with all mods out of the box
    Cons: Nether/end versions of structures are trickier as I may pull an overworld only loot into it (crimson village pulling from vanilla village table)
    Mods adding vanilla loot to tables or adjusting vanilla item rates won't work

  3. Make my own loottable roll from vanilla loottable directly + my own loot. But uses GLM on my own loottable to remove vanilla items I dont want to spawn in that structure type/biome. (No Wood in nether outposts chests by using GLM to remove it if the vanilla loottable returned it in my loottable)
    Pros: Works with all mods out of the box
    Mods can change vnailla item rates or add vanilla loot to them
    Cons: More messier code as each structure needs a set of items they dont spawn (tags)
    Harder for users to configure as now they need to modify a item blacklist tag for each structure to spawn blacklisted loot.

commented

Leaning towards option 2 right now.

commented

added in v2.5.0!