Jump to content

[1.18.2] Add loot tables to chests in custom village


Recommended Posts



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:


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:

    waterlogged: "false"
   facing: "north"
   type: "single"
   lootTable: "minecraft:chests/abandoned_mineshaft"
Name: "minecraft:chest"


Any ideas?

Link to comment
Share on other sites

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.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.