Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[SOLVED][1.15.2] IllegalStateException: Entity is already tracked!

Featured Replies

Posted

Testing a function to expand the entities pool from eggs. Spamming eggs, in creative mode, and it seems to work, the extra entities appear. Than game crash.
 

Crash Report

Spoiler

---- Minecraft Crash Report ---- // I let you down. Sorry :( Time: 11/06/20 16.17 Description: Exception ticking world java.lang.IllegalStateException: Entity is already tracked! at net.minecraft.world.server.ChunkManager.track(ChunkManager.java:959) ~[?:?] {re:classloading} at net.minecraft.world.server.ServerChunkProvider.track(ServerChunkProvider.java:457) ~[?:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.world.server.ServerWorld.onEntityAdded(ServerWorld.java:1020) ~[?:?] {re:classloading} at net.minecraft.world.server.ServerWorld.tick(ServerWorld.java:367) ~[?:?] {re:classloading} at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:886) ~[?:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:821) ~[?:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:120) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:662) [?:?] {re:classloading,pl:accesstransformer:B} at java.lang.Thread.run(Thread.java:748) [?:1.8.0_231] {} A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Server thread Stacktrace: at net.minecraft.world.server.ChunkManager.track(ChunkManager.java:959) at net.minecraft.world.server.ServerChunkProvider.track(ServerChunkProvider.java:457) at net.minecraft.world.server.ServerWorld.onEntityAdded(ServerWorld.java:1020) at net.minecraft.world.server.ServerWorld.tick(ServerWorld.java:367) -- Affected level -- Details: All players: 1 total; [ServerPlayerEntity['Dev'/309, l='Nuovo mondo', x=-182.08, y=64.28, z=-72.93]] Chunk stats: ServerChunkCache: 2025 Level dimension: DimensionType{minecraft:overworld} Level name: Nuovo mondo Level seed: -2516639339047440122 Level generator: ID 00 - default, ver 1. Features enabled: true Level generator options: {} Level spawn location: World: (-169,63,-48), Chunk: (at 7,3,0 in -11,-3; contains blocks -176,0,-48 to -161,255,-33), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1) Level time: 537680 game time, 609 day time Known server brands: forge Level was modded: true Level storage version: 0x04ABD - Anvil Level weather: Rain time: 1 (now: false), thunder time: 1 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true Stacktrace: at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:886) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:821) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:120) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:662) at java.lang.Thread.run(Thread.java:748) -- System Details -- Details: Minecraft Version: 1.15.2 Minecraft Version ID: 1.15.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_231, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 324280200 bytes (309 MB) / 1091043328 bytes (1040 MB) up to 1763704832 bytes (1682 MB) CPUs: 4 JVM Flags: 1 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump ModLauncher: 5.1.0+69+master.79f13f7 ModLauncher launch target: fmluserdevclient ModLauncher naming: mcp ModLauncher services: /eventbus-2.2.0-service.jar eventbus PLUGINSERVICE /forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar object_holder_definalize PLUGINSERVICE /forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar runtime_enum_extender PLUGINSERVICE /accesstransformers-2.1.1-shadowed.jar accesstransformer PLUGINSERVICE /forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar capability_inject_definalize PLUGINSERVICE /forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar runtimedistcleaner PLUGINSERVICE /forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar fml TRANSFORMATIONSERVICE FML: 31.2 Forge: net.minecraftforge:31.2.0 FML Language Providers: [email protected] minecraft@1 Mod List: client-extra.jar Minecraft {[email protected] DONE} forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-recomp.jar Forge {[email protected] DONE} main Earth2Java Mobs {[email protected] DONE} Player Count: 1 / 8; [ServerPlayerEntity['Dev'/309, l='Nuovo mondo', x=-182.08, y=64.28, z=-72.93]] Data Packs: vanilla, mod:forge (incompatible), mod:earthtojavamobs Type: Integrated Server (map_client.txt) Is Modded: Definitely; Client brand changed to 'forge'

 


Code

Spoiler

 


 

 

 

 

 

 

Could it be beacuse it fire more than once?
This a check I've added, a simple println

[16:38:01] [Server thread/INFO] [earthtojavamobs Mod Event Subscriber/]: true
[16:38:01] [Render thread/INFO] [earthtojavamobs Mod Event Subscriber/]: true

 

Edited by Slexom
Solved

My mod:

Earth2Java - Mobs [1.15.2]

 

  • Author

Solved. It trigger on the 1/32 case, when the game generate 4 chicken at once. Moving the chicken selection inside the inner for solved the issue.

My mod:

Earth2Java - Mobs [1.15.2]

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.