Posted May 7, 20223 yr Hi, My mod adds a new biome which can spawn a new type of village. I'm encountering an issue where I cant seem to associate any loot tables with the chests in my new village structures. Not even vanilla loot tables. Ideally I'd like to have some custom loot fillnig these chests but I can probably figure that out pretty easily if I can source out why vanilla loot tables don't seem to be applying to my village structures. For other structure types I did this in code via: ChestBlockEntity.setLootTable() But for villages I am using StructureTemplatePools like vanilla does and not actually adding any custom structure features so I dont have anywhere to manually pop a loot table onto a chest block in code. All my village structures are being generated by NBT files. Is there something I can do to alter the NBT data to add a loot table to a chests? I tried adding a lootTable entry to my structure's NBT but that doesnt seem to work either: Properties: waterlogged: "false" facing: "north" type: "single" lootTable: "minecraft:chests/abandoned_mineshaft" Name: "minecraft:chest" Any ideas?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.