MohistMC / Mohist

Minecraft Forge Hybrid server implementing the Spigot/Bukkit API, formerly known as Thermos/Cauldron/MCPC+
https://mohistmc.com
GNU General Public License v3.0
1.28k stars 208 forks source link

[1.20.1] Loot table for Apothetic Additions #3336

Closed AlwaysReadyWBY closed 1 week ago

AlwaysReadyWBY commented 1 week ago

Minecraft Version : 1.20.1

Mohist Version : 855

Operating System : Windows Server 2016 Datacenter

Concerned mod / plugin : Apothetic Additions() Lootr()

Logs : Link(s) of logs and crash reports if you have

Steps to Reproduce :

  1. Find a loot chest with the loot table of "apotheotic_additions:chests/aa_spawner"
  2. Open the chest
  3. Unable to open the chest and error log appears: [15:29:19] [Server thread/ERROR] [noobanidus.mods.lootr.api.LootrAPI]: Unable to fill loot chest in minecraft:overworld at BlockPos{x=-578, y=-15, z=-1204} as the loot table 'apotheotic_additions:chests/aa_spawner' couldn't be resolved! Please search the loot table in latest.log to see if there are errors in loading. [15:29:19] [Server thread/ERROR] [net.minecraft.network.protocol.PacketUtils]: Failed to handle packet net.minecraft.network.protocol.game.ServerboundUseItemOnPacket@6fe82a17, suppressing error java.lang.NullPointerException: Cannot invoke "net.minecraft.resources.ResourceLocation.m135827()" because "minecraft" is null at org.bukkit.craftbukkit.v1_20_R1.util.CraftNamespacedKey.fromMinecraft(CraftNamespacedKey.java:24) ~[forge-1.20.1-47.3.7-universal.jar%23605!/:?] at org.bukkit.craftbukkit.v1_20_R1.event.CraftEventFactory.callLootGenerateEvent(CraftEventFactory.java:1743) ~[forge-1.20.1-47.3.7-universal.jar%23605!/:?] at net.minecraft.world.level.storage.loot.LootTable.m287188(LootTable.java:155) ~[server-1.20.1-20230612.114412-srg.jar%23600!/:?] at noobanidus.mods.lootr.block.entities.LootrChestBlockEntity.unpackLootTable(LootrChestBlockEntity.java:279) ~[lootr-forge-1.20-0.7.34.86.jar%23513!/:0.7.34.86] at noobanidus.mods.lootr.data.ChestData.createInventory(ChestData.java:358) ~[lootr-forge-1.20-0.7.34.86.jar%23513!/:0.7.34.86] at noobanidus.mods.lootr.data.DataStorage.getInventory(DataStorage.java:338) ~[lootr-forge-1.20-0.7.34.86.jar%23513!/:0.7.34.86] at noobanidus.mods.lootr.util.ChestUtil.handleLootChest(ChestUtil.java:142) ~[lootr-forge-1.20-0.7.34.86.jar%23513!/:0.7.34.86] at noobanidus.mods.lootr.block.LootrChestBlock.m6227(LootrChestBlock.java:50) ~[lootr-forge-1.20-0.7.34.86.jar%23513!/:0.7.34.86] at net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase.m60664(BlockBehaviour.java:779) ~[server-1.20.1-20230612.114412-srg.jar%23600!/:?] at net.minecraft.server.level.ServerPlayerGameMode.m7179(ServerPlayerGameMode.java:483) ~[server-1.20.1-20230612.114412-srg.jar%23600!/:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.m6371(ServerGamePacketListenerImpl.java:1576) ~[server-1.20.1-20230612.114412-srg.jar%23600!/:?] at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.m5797(ServerboundUseItemOnPacket.java:34) ~[server-1.20.1-20230612.114412-srg.jar%23600!/:?] at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.m5797(ServerboundUseItemOnPacket.java:8) ~[server-1.20.1-20230612.114412-srg.jar%23600!/:?] at net.minecraft.network.protocol.PacketUtils.m263899(PacketUtils.java:25) ~[server-1.20.1-20230612.114412-srg.jar%23600!/:?] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[server-1.20.1-20230612.114412-srg.jar%23600!/:?] at net.minecraft.util.thread.BlockableEventLoop.m6367(BlockableEventLoop.java:151) ~[server-1.20.1-20230612.114412-srg.jar%23600!/:?] at net.minecraft.util.thread.ReentrantBlockableEventLoop.m6367(ReentrantBlockableEventLoop.java:23) ~[server-1.20.1-20230612.114412-srg.jar%23600!/:?] at net.minecraft.server.MinecraftServer.m6367(MinecraftServer.java:1025) ~[server-1.20.1-20230612.114412-srg.jar%23600!/:?] at net.minecraft.server.MinecraftServer.m6367(MinecraftServer.java:175) ~[server-1.20.1-20230612.114412-srg.jar%23600!/:?] at net.minecraft.util.thread.BlockableEventLoop.m7245(BlockableEventLoop.java:124) ~[server-1.20.1-20230612.114412-srg.jar%23600!/:?] at net.minecraft.server.MinecraftServer.m129961(MinecraftServer.java:1008) ~[server-1.20.1-20230612.114412-srg.jar%23600!/:?] at net.minecraft.server.MinecraftServer.m7245(MinecraftServer.java:1002) ~[server-1.20.1-20230612.114412-srg.jar%23600!/:?] at net.minecraft.util.thread.BlockableEventLoop.m18699(BlockableEventLoop.java:112) ~[server-1.20.1-20230612.114412-srg.jar%23600!/:?] at net.minecraft.server.MinecraftServer.m130012(MinecraftServer.java:987) ~[server-1.20.1-20230612.114412-srg.jar%23600!/:?] at net.minecraft.server.MinecraftServer.m130011(MinecraftServer.java:913) ~[server-1.20.1-20230612.114412-srg.jar%23600!/:?] at net.minecraft.server.MinecraftServer.m206580(MinecraftServer.java:285) ~[server-1.20.1-20230612.114412-srg.jar%23600!/:?] at java.lang.Thread.run(Thread.java:1583) [?:?]

Description of issue : Look as if there are some bugs with loot table related to resource locations (or maybe namespacedkey?)

AlwaysReadyWBY commented 1 week ago

Probably related to some other mods though, or maybe the dependencies of this mod, I'm not sure.

AlwaysReadyWBY commented 1 week ago

It seems that this problem is on the mod side