
[BUG] Not converting some wooden chests in dimensions
Closed this issue · 13 comments
I roamed my overworld and the chest just simply will not convert.
Minecraft 1.20.1 forge 47.3.32
Please confirm that these chests have loot tables associated with them using the command /data get block
, pressing space and then using tab to auto-complete the coordinates you're looking at.
If they do have a loot table, please tweak the maximum_age
value to be higher and restart your server.
set the max age to 18000 and still nothing changed like the vanilla chest is still vanilla
set the max age to 18000 and still nothing changed like the vanilla chest is still vanilla
Please target the block and use /data get block
, press space, and use the <tab>
key to auto-complete the position of the block you're looking at.
Ensure that there's a LootTable
mentioned in the data: if there isn't a loot table, then this isn't a chest that can be converted by Lootr.
New bug is popping up with it not allowing me to open lootr chest but it allows me to open converted ones but no loot inside even if refreshed Will be uploading a video shortly
Lootr bug #2 - https://youtu.be/9pCzC1rMBcE
- update It does work but only if I use commands and conjure a specific chest with a loot table but only if t he chest comes specifically from lootr commands it will work as inteded. Idk if this is all intentional or not though it's your masterpiece. get a chest from using rei cheats though and it be a lootr chest It won't work
Hey, thanks for the video!
I do need a little more information: can you do /data get block
and fill in the coordinates by tabbing while looking at that block that doesn't function?
Failing that, are you able to upload a copy of your region file somewhere and let me know what coordinates they are? I'd like to look into it further.
Finally, I'd also like a copy of the latest.log
or debug.log
from when you try to open the chest -- there should be some sort of error message printed out if there is a block entity but no information about it.
I'd also like to know exactly what version of Lootr you are using, as well as get a list of any other mods that you've got installed. Likewise, did you do any sort of chunk pregeneration?
It appears as though there is something wrong with either the block entity or the data associated with the block entity itself, although looking through the code it is possible that if the block entity associated with the Lootr container isn't actually the Lootr block entity, it will just fail to do anything.
The circumstances under which there would be a Lootr container without a Lootr block entity are strange however.
EDIT: Can you also test the /lootr chest
command to make sure it generates a chest that automatically converts?
The /lootr convert
command is for converting non-Lootr chests that do not have a loot table.
sure do you have a discord? I can send you a share code to my modpack i'm working on (Don't need my files getting snatched and someone stealing my hard work) and yes /lootr chest was my "work around" becuase even when I convert chest with lootable like lets say i got up to a structure with a generated loot box and convert and refresh it for some reason no new loot goes into it but when i use /lootr chest things work fine so i've started making a underground workstation labeling all of the chest tables
https://youtu.be/PqeT2hk6OoI and yes i have chunk mods also, doesn't matter where you are if I sit this chest down it's not openable , you'd think it'd grab a random loot table and allow you to open it and there be a random loot tables loot. also i think this is happening from me trying to copy a chest type by using my middle scroll wheel. if i do that then the chest will never spawn any loot in it or refresh
my discord user is Tayengo
latest.log
refresh it for some reason no new loot goes into it but when i use /lootr chest things work fine so i've started making a underground workstation labeling all of the chest tables
The refresh
system doesn't work with custom inventories.
chest type by using my middle scroll wheel. if i do that then the chest will never spawn any loot in it or refresh
This can cause issues as it will potentially copy the unique identifier of the chest, meaning that what you in effect have are the exact same chest represented by two blocks.
I sit this chest down it's not openable , you'd think it'd grab a random loot table and allow you to open it
If Lootr can't find the loot table, it doesn't try to guess what the loot table should be -- there's no programmatic way to "guess" what a loot table should be, and there's every chance of accidentally using a loot table that isn't designed to be accessed that way.
For example, if you replaced a village house loot table with an end city loot table, there would be a significant difference in the quality of loot.
When a loot table doesn't exist, Lootr does generate an error message. In a lot of these instances, a separate mod I've made, Save Loot Tables will help recover from errors -- but only when the error is something like a typo in an item name, or a reference to an item that doesn't exist.
sure do you have a discord? I can send you a share code to my modpack i'm working on
This invite should get you to my Discord.
/lootr chest was my "work around" becuase even when I convert chest with lootable
I'm concerned by this -- the /lootr convert
and /lootr custom
commands are specifically designed for when you want a chest to become a Lootr container, but it doesn't have an associated loot table with it -- for example, a bonus "starter" chest where you want everyone to gain access to the same items.
More specifically, it would be better to debug why chests aren't converting than forcefully using /lootr custom
or /lootr convert
to convert them, as there are side effects.
I sit this chest down it's not openable , you'd think it'd grab a random loot table and allow you to open it
Specifically with this chest -- I presume this is the one that you're opening shortly after launching the game -- there's an error in that it is a custom inventory but for some reason the inventory reference no longer exists. If you check the logs, you'll see this error message:
[15Apr2025 23:03:30.095] [Server thread/ERROR] [net.minecraft.network.protocol.PacketUtils/]: Failed to handle packet net.minecraft.network.protocol.game.ServerboundUseItemOnPacket@1806e993, suppressing error
java.lang.IllegalArgumentException: Inventory reference cannot be null.
at noobanidus.mods.lootr.data.ChestData.lambda$ref_id$0(ChestData.java:72) ~[lootr-forge-1.20-0.7.35.91.jar%23757!/:0.7.35.91]
at net.minecraft.world.level.storage.DimensionDataStorage.m_164861_(DimensionDataStorage.java:43) ~[client-1.20.1-20230612.114412-srg.jar%23938!/:?]
at noobanidus.mods.lootr.data.DataStorage.getReferenceContainerData(DataStorage.java:282) ~[lootr-forge-1.20-0.7.35.91.jar%23757!/:0.7.35.91]
at noobanidus.mods.lootr.data.DataStorage.getInventory(DataStorage.java:349) ~[lootr-forge-1.20-0.7.35.91.jar%23757!/:0.7.35.91]
at noobanidus.mods.lootr.util.ChestUtil.handleLootInventory(ChestUtil.java:235) ~[lootr-forge-1.20-0.7.35.91.jar%23757!/:0.7.35.91]
This is the main reason why this chest will not open.
The container has been converted into a "custom" loot chests, which should always come with a reference inventory. For some reason, that reference inventory has been lost, and, as there is no loot table associated with it, it is unable to generate any loot.
For custom inventories like this, it will cause an exception and fail to open, instead of opening and presenting with an empty container. However, this is the first time anyone has ever actually reported this error message to me, so I'm not sure precisely what has happened.
To sum up: stop using /lootr convert
and /lootr custom
as they do not do what you think they are doing.
Let's try to work out why chests aren't converting the normal way and resolve things from that end rather than resorting to bypasses.
I guess it’s done that with all the chest I’ve set around my map because what I did was went around converting as much as I could for the time being because It wouldn’t convert those chests to looter chests and now none of those lootr chests will open on my server I gotta go around and remove them. I’ve never manually used lootr custom that’s the another thing I’ve only ever used convert I don’t even know what custom was supposed to do until you told me and I never had intentions on making any custom tables etc. so I left it alone. I think the mod changed it to a custom chest after me trying to copy and paste it using scroll wheel but yeah the base problem is just they’re not changing or placing in my world I don’t see a single lootr chest unless I place it
If you can get me a copy of your pack and your configuration for Lootr, I can look into why Lootr isn't working.