Started by
ilovehamburgerz
on
Topic category: Help with Minecraft modding (Java Edition)
Hi there. Im currently making a minecraft mod and in it it has a structure and i want loot tables in some of the chests of the structure. I did the loot tables, but when i executed the command (/give @s chest{BlockEntityTag:{LootTable:"mod:chest/lootable"}}) it dosent work. and neither does the other methods i found on youtube, such as this: https://www.youtube.com/watch?v=ZiKhQegDicM
Can anyone help?
Edited by ilovehamburgerz on Sat, 01/03/2026 - 15:50
instead of mod:, use the actual modid
example?
The mod id you selected while creating your workspace. Like minecraft itself uses minecraft:xxx, you selected a registry name, like ilovehamburgerz:xxx (example). Use that instead of "mod"
Example: ilovehamburgerz:chest/lootable