Hey, first this is not just a random null-pointer Exception its repeatable and consistence.
Step 1: Join your Singleplayer World
Step 2: Place any NPC down with Trainer Editor
Step 3: Exit the World/Save -> Rejoin the World
Step 4: First you will notice the Trainer Editor is no longer working on that NPC Trainer Entity.
Step 5: If you now battle the NPC trainer the battle works normal, you endbattle/win/lose or just flee now.
Step 6: If you now throw your pokemon again on that NPC, your whole game crashes.
Tested this in 3 different worlds, with 3 different NPC's. its consistence.Code: Select all---- Minecraft Crash Report ----
// This doesn't make any sense!
Time: 5/18/23 11:30 PM
Description: Ticking entity
java.lang.NullPointerException: Ticking entity
at com.pixelmonmod.pixelmon.entities.npcs.registry.ServerNPCRegistry.getTranslatedGymMemberData(ServerNPCRegistry.java:254) ~[?:1.16.5-9.1.3] {re:classloading}
at com.pixelmonmod.pixelmon.entities.npcs.registry.ServerNPCRegistry.getTranslatedData(ServerNPCRegistry.java:341) ~[?:1.16.5-9.1.3] {re:classloading}
at com.pixelmonmod.pixelmon.entities.npcs.NPCTrainer.getTranslatedData(NPCTrainer.java:281) ~[?:1.16.5-9.1.3] {re:classloading}
at com.pixelmonmod.pixelmon.entities.npcs.NPCTrainer.getChat(NPCTrainer.java:289) ~[?:1.16.5-9.1.3] {re:classloading}
at com.pixelmonmod.pixelmon.entities.npcs.NPCTrainer.getWinMessage(NPCTrainer.java:258) ~[?:1.16.5-9.1.3] {re:classloading}
at com.pixelmonmod.pixelmon.entities.npcs.NPCTrainer.winBattle(NPCTrainer.java:682) ~[?:1.16.5-9.1.3] {re:classloading}
at com.pixelmonmod.pixelmon.battles.controller.participants.TrainerParticipant.endBattle(TrainerParticipant.java:181) ~[?:1.16.5-9.1.3] {re:classloading}
at com.pixelmonmod.pixelmon.battles.controller.BattleController.endBattle(BattleController.java:1088) ~[?:1.16.5-9.1.3] {re:classloading}
at com.pixelmonmod.pixelmon.battles.controller.BattleController.endBattle(BattleController.java:968) ~[?:1.16.5-9.1.3] {re:classloading}
at com.pixelmonmod.pixelmon.entities.pokeballs.OccupiedPokeBallEntity.func_70227_a(OccupiedPokeBallEntity.java:289) ~[?:1.16.5-9.1.3] {re:classloading}
at net.minecraft.entity.projectile.ThrowableEntity.func_70071_h_(ThrowableEntity.java:67) ~[?:?] {re:classloading}
at com.pixelmonmod.pixelmon.entities.pokeballs.PokeBallEntity.func_70071_h_(PokeBallEntity.java:223) ~[?:1.16.5-9.1.3] {re:classloading}
at com.pixelmonmod.pixelmon.entities.pokeballs.OccupiedPokeBallEntity.func_70071_h_(OccupiedPokeBallEntity.java:132) ~[?:1.16.5-9.1.3] {re:classloading}
at net.minecraft.world.server.ServerWorld.func_217479_a(ServerWorld.java:612) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
at net.minecraft.world.server.ServerWorld$$Lambda$9436/1817822078.accept(Unknown Source) ~[?:?] {}
at net.minecraft.world.World.func_217390_a(World.java:554) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
at net.minecraft.world.server.ServerWorld.func_72835_b(ServerWorld.java:405) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:851) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:byg.mixins.json:server.MixinMinecraftServer,pl:mixin:A}
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:787) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:byg.mixins.json:server.MixinMinecraftServer,pl:mixin:A}
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:78) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:642) [?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:byg.mixins.json:server.MixinMinecraftServer,pl:mixin:A}
at net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServer.java:232) [?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:byg.mixins.json:server.MixinMinecraftServer,pl:mixin:A}
at net.minecraft.server.MinecraftServer$$Lambda$9121/233680546.run(Unknown Source) [?:?] {}
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51] {}
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Server thread
Stacktrace:
at com.pixelmonmod.pixelmon.entities.npcs.registry.ServerNPCRegistry.getTranslatedGymMemberData(ServerNPCRegistry.java:254) ~[?:1.16.5-9.1.3] {re:classloading}
at com.pixelmonmod.pixelmon.entities.npcs.registry.ServerNPCRegistry.getTranslatedData(ServerNPCRegistry.java:341) ~[?:1.16.5-9.1.3] {re:classloading}
at com.pixelmonmod.pixelmon.entities.npcs.NPCTrainer.getTranslatedData(NPCTrainer.java:281) ~[?:1.16.5-9.1.3] {re:classloading}
at com.pixelmonmod.pixelmon.entities.npcs.NPCTrainer.getChat(NPCTrainer.java:289) ~[?:1.16.5-9.1.3] {re:classloading}
at com.pixelmonmod.pixelmon.entities.npcs.NPCTrainer.getWinMessage(NPCTrainer.java:258) ~[?:1.16.5-9.1.3] {re:classloading}
at com.pixelmonmod.pixelmon.entities.npcs.NPCTrainer.winBattle(NPCTrainer.java:682) ~[?:1.16.5-9.1.3] {re:classloading}
at com.pixelmonmod.pixelmon.battles.controller.participants.TrainerParticipant.endBattle(TrainerParticipant.java:181) ~[?:1.16.5-9.1.3] {re:classloading}
at com.pixelmonmod.pixelmon.battles.controller.BattleController.endBattle(BattleController.java:1088) ~[?:1.16.5-9.1.3] {re:classloading}
at com.pixelmonmod.pixelmon.battles.controller.BattleController.endBattle(BattleController.java:968) ~[?:1.16.5-9.1.3] {re:classloading}
at com.pixelmonmod.pixelmon.entities.pokeballs.OccupiedPokeBallEntity.func_70227_a(OccupiedPokeBallEntity.java:289) ~[?:1.16.5-9.1.3] {re:classloading}
at net.minecraft.entity.projectile.ThrowableEntity.func_70071_h_(ThrowableEntity.java:67) ~[?:?] {re:classloading}
at com.pixelmonmod.pixelmon.entities.pokeballs.PokeBallEntity.func_70071_h_(PokeBallEntity.java:223) ~[?:1.16.5-9.1.3] {re:classloading}
at com.pixelmonmod.pixelmon.entities.pokeballs.OccupiedPokeBallEntity.func_70071_h_(OccupiedPokeBallEntity.java:132) ~[?:1.16.5-9.1.3] {re:classloading}
at net.minecraft.world.server.ServerWorld.func_217479_a(ServerWorld.java:612) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
at net.minecraft.world.server.ServerWorld$$Lambda$9436/1817822078.accept(Unknown Source) ~[?:?] {}
-- Entity being ticked --
Details:
Entity Type: pixelmon:occupied_pokeball (com.pixelmonmod.pixelmon.entities.pokeballs.OccupiedPokeBallEntity)
Entity ID: 598
Entity Name: Floragato Poké Ball
Entity's Exact location: 1.28, 82.46, 1.61
Entity's Block location: World: (1,82,1), Chunk: (at 1,5,1 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Entity's Momentum: -0.49, -0.19, -0.73
Entity's Passengers: []
Entity's Vehicle: ~~ERROR~~ NullPointerException: null
Stacktrace:
at net.minecraft.world.World.func_217390_a(World.java:554) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
at net.minecraft.world.server.ServerWorld.func_72835_b(ServerWorld.java:405) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
-- Affected level --
Details:
All players: 1 total; [ServerPlayerEntity['WaifuJanna'/413, l='ServerLevel[world]', x=1.77, y=81.00, z=2.35]]
Chunk stats: ServerChunkCache: 2025
Level dimension: minecraft:overworld
Level spawn location: World: (0,85,0), Chunk: (at 0,5,0 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 882740 game time, 2460547 day time
Level name: world
Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
Level weather: Rain time: 72000 (now: false), thunder time: 0 (now: false)
Known server brands: forge arclight, forge
Level was modded: true
Level storage version: 0x04ABD - Anvil
Stacktrace:
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:851) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:byg.mixins.json:server.MixinMinecraftServer,pl:mixin:A}
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:787) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:byg.mixins.json:server.MixinMinecraftServer,pl:mixin:A}
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:78) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:642) [?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:byg.mixins.json:server.MixinMinecraftServer,pl:mixin:A}
at net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServer.java:232) [?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:byg.mixins.json:server.MixinMinecraftServer,pl:mixin:A}
at net.minecraft.server.MinecraftServer$$Lambda$9121/233680546.run(Unknown Source) [?:?] {}
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51] {}
-- System Details --
Details:
Minecraft Version: 1.16.5
Minecraft Version ID: 1.16.5
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_51, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 555624472 bytes (529 MB) / 2106589184 bytes (2009 MB) up to 3817865216 bytes (3641 MB)
CPUs: 12
JVM Flags: 4 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx4096m -Xms256m
ModLauncher: 8.1.3+8.1.3+main-8.1.x.c94d18ec
ModLauncher launch target: fmlclient
ModLauncher naming: srg
ModLauncher services:
/mixin-0.8.4.jar mixin PLUGINSERVICE
/eventbus-4.0.0.jar eventbus PLUGINSERVICE
/forge-1.16.5-36.2.39.jar object_holder_definalize PLUGINSERVICE
/forge-1.16.5-36.2.39.jar runtime_enum_extender PLUGINSERVICE
/accesstransformers-3.0.1.jar accesstransformer PLUGINSERVICE
/forge-1.16.5-36.2.39.jar capability_inject_definalize PLUGINSERVICE
/forge-1.16.5-36.2.39.jar runtimedistcleaner PLUGINSERVICE
/mixin-0.8.4.jar mixin TRANSFORMATIONSERVICE
/forge-1.16.5-36.2.39.jar fml TRANSFORMATIONSERVICE
FML: 36.2
Forge: net.minecraftforge:36.2.39
FML Language Providers:
[email protected]
minecraft@1
Mod List:
forge-1.16.5-36.2.39-client.jar |Minecraft |minecraft |1.16.5 |DONE |Manifest: NOSIGNATURE
biomeidfixer-1.16.5-1.0.1.s5.jar |Biome Id Fixer by Desagas |biomeidfixer |1.16.5-1.0.1.s5 |DONE |Manifest: NOSIGNATURE
forge-1.16.5-36.2.39-universal.jar |Forge |forge |36.2.39 |DONE |Manifest: 22:af:21:d8:19:82:7f:93:94:fe:2b:ac:b7:e4:41:57:68:39:87:b1:a7:5c:c6:44:f9:25:74:21:14:f5:0d:90
Pixelmon-1.16.5-9.1.3-universal.jar |Pixelmon Mod |pixelmon |9.1.3 |DONE |Manifest: NOSIGNATURE
byg-1.3.5.jar |Oh The Biomes You'll Go |byg |1.3.4 |DONE |Manifest: NOSIGNATURE
Crash Report UUID: 52883633-9159-4305-9cc3-336d169f56a4
Player Count: 1 / 8; [ServerPlayerEntity['WaifuJanna'/413, l='ServerLevel[world]', x=1.77, y=81.00, z=2.35]]
Data Packs: vanilla, mod:biomeidfixer, mod:forge, mod:pixelmon, mod:byg, file/customballs-jannalogic.zip, file/pixeleditshopjannamini.zip, file/vanilamobs_.zip
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'forge'