spoorn / SpoornBountyMobs

https://www.curseforge.com/minecraft/mc-mods/spoorn-bounty-mobs
GNU General Public License v3.0
0 stars 1 forks source link

Adding NBT tags to items in loot table #5

Closed ThinkWithPbody closed 2 years ago

ThinkWithPbody commented 2 years ago

I want to use spoornbountymobs along with predefined loot bags from modular loot crates, however this requires the use of NBT tags, for example tag: {LootTable: "minecraft:chests/stronghold_corridor"}. Is it possible that I can add the NBT tag to my config file?

"drops": [ { "entityId": ".*", "dropChance": 1, "rolls": 1, "items": [ { "item": "lootcrates:common_loot_bag", "weight": 1 }, ] } ]

spoorn commented 2 years ago

No this isn't supported at the moment. I'm not sure if it's worth adding either as customizing the NBT data for particular items like this feels pretty hacky to me and error prone.

I could look into adding support for particular loot tables though, which might be better anyways for your use case

ThinkWithPbody commented 2 years ago

I understand. For now I can just hand out loot chests with NBT data to players manually, and add crate keys as a loot drop from mobs, so no worries about adding features. Thanks!

spoorn commented 2 years ago

This is now supported in 1.18+ and 1.19+