Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Error with NBT crashes game [1.17]


Grookey
 Share

Recommended Posts

https://github.com/Manueh333/Marvel-MOD/blob/new-1.17.1/src/main/java/manueh/marvel_themod/client/ClientSetup.java#L58-L65

https://github.com/Manueh333/Marvel-MOD/blob/new-1.17.1/src/main/java/manueh/marvel_themod/common/items/InfinityGauntlet.java

When have the item on the inventory the game crashes

[08:44:28] [Server thread/FATAL]: Error executing task on Server
java.lang.IllegalArgumentException: Invalid null NBT value with key Parent
	at net.minecraft.nbt.CompoundTag.put(CompoundTag.java:98) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraftforge.common.capabilities.CapabilityDispatcher.serializeNBT(CapabilityDispatcher.java:127) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2374%2380!:?]
	at net.minecraftforge.common.capabilities.CapabilityDispatcher.areCompatible(CapabilityDispatcher.java:148) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2374%2380!:?]
	at net.minecraftforge.common.capabilities.CapabilityProvider.areCapsCompatible(CapabilityProvider.java:124) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2374%2380!:?]
	at net.minecraftforge.common.capabilities.CapabilityProvider.areCapsCompatible(CapabilityProvider.java:105) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2374%2380!:?]
	at net.minecraft.world.item.ItemStack.matches(ItemStack.java:435) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.world.item.ItemStack.matches(ItemStack.java:423) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.world.inventory.AbstractContainerMenu.triggerSlotListeners(AbstractContainerMenu.java:206) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.world.inventory.AbstractContainerMenu.broadcastChanges(AbstractContainerMenu.java:163) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.server.network.ServerGamePacketListenerImpl.handleSetCreativeModeSlot(ServerGamePacketListenerImpl.java:1341) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.network.protocol.game.ServerboundSetCreativeModeSlotPacket.handle(ServerboundSetCreativeModeSlotPacket.java:17) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.network.protocol.game.ServerboundSetCreativeModeSlotPacket.handle(ServerboundSetCreativeModeSlotPacket.java:7) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:21) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.server.TickTask.run(TickTask.java:18) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:23) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:776) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:162) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:125) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:759) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:753) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:134) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:739) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:688) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:258) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at java.lang.Thread.run(Thread.java:833) [?:?]
[08:44:29] [Server thread/ERROR]: Encountered an unexpected exception
net.minecraft.ReportedException: Ticking entity
	at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:887) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:819) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.client.server.IntegratedServer.tickServer(IntegratedServer.java:85) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:684) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:258) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.lang.IllegalArgumentException: Invalid null NBT value with key Parent
	at net.minecraft.nbt.CompoundTag.put(CompoundTag.java:98) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraftforge.common.capabilities.CapabilityDispatcher.serializeNBT(CapabilityDispatcher.java:127) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2374%2380!:?]
	at net.minecraftforge.common.capabilities.CapabilityDispatcher.areCompatible(CapabilityDispatcher.java:148) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2374%2380!:?]
	at net.minecraftforge.common.capabilities.CapabilityProvider.areCapsCompatible(CapabilityProvider.java:124) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2374%2380!:?]
	at net.minecraftforge.common.capabilities.CapabilityProvider.areCapsCompatible(CapabilityProvider.java:105) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2374%2380!:?]
	at net.minecraft.world.item.ItemStack.matches(ItemStack.java:435) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.world.item.ItemStack.matches(ItemStack.java:423) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.world.inventory.AbstractContainerMenu.triggerSlotListeners(AbstractContainerMenu.java:206) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.world.inventory.AbstractContainerMenu.broadcastChanges(AbstractContainerMenu.java:163) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.server.level.ServerPlayer.tick(ServerPlayer.java:399) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:623) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.world.level.Level.guardEntityTick(Level.java:486) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.server.level.ServerLevel.lambda$tick$5(ServerLevel.java:384) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.world.level.entity.EntityTickList.forEach(EntityTickList.java:54) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:365) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:883) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?]
	... 5 more
---- Minecraft Crash Report ----
// I bet Cylons wouldn't have this problem.

Time: 17/7/22 8:44
Description: Ticking entity

java.lang.IllegalArgumentException: Invalid null NBT value with key Parent
	at net.minecraft.nbt.CompoundTag.put(CompoundTag.java:98) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading}
	at net.minecraftforge.common.capabilities.CapabilityDispatcher.serializeNBT(CapabilityDispatcher.java:127) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2374%2380!:?] {re:classloading}
	at net.minecraftforge.common.capabilities.CapabilityDispatcher.areCompatible(CapabilityDispatcher.java:148) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2374%2380!:?] {re:classloading}
	at net.minecraftforge.common.capabilities.CapabilityProvider.areCapsCompatible(CapabilityProvider.java:124) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2374%2380!:?] {re:classloading}
	at net.minecraftforge.common.capabilities.CapabilityProvider.areCapsCompatible(CapabilityProvider.java:105) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2374%2380!:?] {re:classloading}
	at net.minecraft.world.item.ItemStack.matches(ItemStack.java:435) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading,xf:fml:forge:itemstack}
	at net.minecraft.world.item.ItemStack.matches(ItemStack.java:423) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading,xf:fml:forge:itemstack}
	at net.minecraft.world.inventory.AbstractContainerMenu.triggerSlotListeners(AbstractContainerMenu.java:206) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading}
	at net.minecraft.world.inventory.AbstractContainerMenu.broadcastChanges(AbstractContainerMenu.java:163) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading}
	at net.minecraft.server.level.ServerPlayer.tick(ServerPlayer.java:399) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:623) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.world.level.Level.guardEntityTick(Level.java:486) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.server.level.ServerLevel.lambda$tick$5(ServerLevel.java:384) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.world.level.entity.EntityTickList.forEach(EntityTickList.java:54) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading}
	at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:365) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:883) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:819) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.client.server.IntegratedServer.tickServer(IntegratedServer.java:85) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:684) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:258) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading,pl:accesstransformer:B}
	at java.lang.Thread.run(Thread.java:833) ~[?:?] {}


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
	at net.minecraft.nbt.CompoundTag.put(CompoundTag.java:98) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading}
	at net.minecraftforge.common.capabilities.CapabilityDispatcher.serializeNBT(CapabilityDispatcher.java:127) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2374%2380!:?] {re:classloading}
	at net.minecraftforge.common.capabilities.CapabilityDispatcher.areCompatible(CapabilityDispatcher.java:148) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2374%2380!:?] {re:classloading}
	at net.minecraftforge.common.capabilities.CapabilityProvider.areCapsCompatible(CapabilityProvider.java:124) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2374%2380!:?] {re:classloading}
	at net.minecraftforge.common.capabilities.CapabilityProvider.areCapsCompatible(CapabilityProvider.java:105) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2374%2380!:?] {re:classloading}
	at net.minecraft.world.item.ItemStack.matches(ItemStack.java:435) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading,xf:fml:forge:itemstack}
	at net.minecraft.world.item.ItemStack.matches(ItemStack.java:423) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading,xf:fml:forge:itemstack}
	at net.minecraft.world.inventory.AbstractContainerMenu.triggerSlotListeners(AbstractContainerMenu.java:206) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading}
	at net.minecraft.world.inventory.AbstractContainerMenu.broadcastChanges(AbstractContainerMenu.java:163) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading}
	at net.minecraft.server.level.ServerPlayer.tick(ServerPlayer.java:399) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:623) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading,pl:accesstransformer:B}
-- Entity being ticked --
Details:
	Entity Type: minecraft:player (net.minecraft.server.level.ServerPlayer)
	Entity ID: 180
	Entity Name: Dev
	Entity's Exact location: -180.79, 77.24, 265.77
	Entity's Block location: World: (-181,77,265), Section: (at 11,13,9 in -12,4,16; chunk contains blocks -192,0,256 to -177,255,271), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
	Entity's Momentum: 0.00, 0.00, 0.00
	Entity's Passengers: []
	Entity's Vehicle: null
Stacktrace:
	at net.minecraft.world.level.Level.guardEntityTick(Level.java:486) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.server.level.ServerLevel.lambda$tick$5(ServerLevel.java:384) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.world.level.entity.EntityTickList.forEach(EntityTickList.java:54) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading}
	at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:365) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading,pl:accesstransformer:B}


-- Affected level --
Details:
	All players: 1 total; [ServerPlayer['Dev'/180, l='ServerLevel[New World]', x=-180.79, y=77.24, z=265.77]]
	Chunk stats: 2301
	Level dimension: minecraft:overworld
	Level spawn location: World: (-176,68,256), Section: (at 0,4,0 in -11,4,16; chunk contains blocks -176,0,256 to -161,255,271), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
	Level time: 1421 game time, 1421 day time
	Level name: New World
	Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
	Level weather: Rain time: 27318 (now: false), thunder time: 164052 (now: false)
	Known server brands: forge
	Level was modded: true
	Level storage version: 0x04ABD - Anvil
Stacktrace:
	at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:883) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:819) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.client.server.IntegratedServer.tickServer(IntegratedServer.java:85) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:684) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:258) ~[forge-1.17.1-37.1.1_mapped_official_1.17.1.jar%2375!:?] {re:classloading,pl:accesstransformer:B}
	at java.lang.Thread.run(Thread.java:833) ~[?:?] {}

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

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