Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-39456

Ticking entity / Mob Persistence

XMLWordPrintable

    • Unconfirmed

      I was working on a zombie survival map and i needed to spawn a lot of zombie and they should be able to track me down from afar and they shouldn't despawn so i changed their follow range to 250 and gave them persistence and then just spawned a whole bunch of them and then my minecraft crashed.
      I then much later came up with the idea to try to remove the persistence and see if it still crashed and it didn't so it must be something with the persistence.
      I also tried to remove the followrange part but it still crashed.

      The command i used to spawn the zombies:

      /summon Zombie 220 64 398 {Equipment:[{},{},{},{},{id:280}],Attributes:[{Name:generic.followRange,Base:250},{Name:generic.maxHealth,Base:1}],ActiveEffects:[{Id:11,Amplifier:50,Duration:100}],PersistenceRequired:1}
      

      The error message i get:

      ---- Minecraft Crash Report ----
      // I blame Dinnerbone.
      
      Time: 10-11-13 11:43
      Description: Ticking entity
      
      java.lang.IllegalArgumentException: n must be positive
      	at java.util.Random.nextInt(Unknown Source)
      	at agm.a(SourceFile:122)
      	at agm.a(SourceFile:27)
      	at agg.a(SourceFile:362)
      	at apl.a(SourceFile:432)
      	at mi.a(SourceFile:160)
      	at aoj.a(SourceFile:781)
      	at mi.c(SourceFile:95)
      	at mi.d(SourceFile:108)
      	at afn.e(SourceFile:311)
      	at agd.<init>(SourceFile:31)
      	at afn.a(SourceFile:2212)
      	at uh.a(SourceFile:79)
      	at uh.a(SourceFile:83)
      	at to.c(SourceFile:41)
      	at sv.a(SourceFile:94)
      	at ri.bn(SourceFile:420)
      	at rh.e(SourceFile:1318)
      	at ri.e(SourceFile:295)
      	at ws.e(SourceFile:25)
      	at xc.e(SourceFile:173)
      	at rh.h(SourceFile:1205)
      	at ri.h(SourceFile:171)
      	at ws.h(SourceFile:30)
      	at xc.h(SourceFile:229)
      	at afn.a(SourceFile:1368)
      	at mj.a(SourceFile:480)
      	at afn.g(SourceFile:1346)
      	at afn.h(SourceFile:1253)
      	at mj.h(SourceFile:365)
      	at net.minecraft.server.MinecraftServer.u(SourceFile:511)
      	at net.minecraft.server.MinecraftServer.t(SourceFile:441)
      	at bsk.t(SourceFile:117)
      	at net.minecraft.server.MinecraftServer.run(SourceFile:358)
      	at ky.run(SourceFile:617)
      
      
      A detailed walkthrough of the error, its code path and all known details is as follows:
      ---------------------------------------------------------------------------------------
      
      -- Head --
      Stacktrace:
      	at java.util.Random.nextInt(Unknown Source)
      	at agm.a(SourceFile:122)
      	at agm.a(SourceFile:27)
      	at agg.a(SourceFile:362)
      	at apl.a(SourceFile:432)
      	at mi.a(SourceFile:160)
      	at aoj.a(SourceFile:781)
      	at mi.c(SourceFile:95)
      	at mi.d(SourceFile:108)
      	at afn.e(SourceFile:311)
      	at agd.<init>(SourceFile:31)
      	at afn.a(SourceFile:2212)
      	at uh.a(SourceFile:79)
      	at uh.a(SourceFile:83)
      	at to.c(SourceFile:41)
      	at sv.a(SourceFile:94)
      	at ri.bn(SourceFile:420)
      	at rh.e(SourceFile:1318)
      	at ri.e(SourceFile:295)
      	at ws.e(SourceFile:25)
      	at xc.e(SourceFile:173)
      	at rh.h(SourceFile:1205)
      	at ri.h(SourceFile:171)
      	at ws.h(SourceFile:30)
      	at xc.h(SourceFile:229)
      	at afn.a(SourceFile:1368)
      	at mj.a(SourceFile:480)
      	at afn.g(SourceFile:1346)
      
      -- Entity being ticked --
      Details:
      	Entity Type: Zombie (xc)
      	Entity ID: 0
      	Entity Name: Zombie
      	Entity's Exact location: 77,50, 64,00, 310,50
      	Entity's Block location: World: (77,64,310), Chunk: (at 13,4,6 in 4,19; contains blocks 64,0,304 to 79,255,319), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
      	Entity's Momentum: 0,00, -0,08, 0,00
      Stacktrace:
      	at afn.h(SourceFile:1253)
      	at mj.h(SourceFile:365)
      
      -- Affected level --
      Details:
      	Level name: world
      	All players: 1 total; [mm['DERIKUF'/88, l='world', x=198,89, y=64,00, z=398,02]]
      	Chunk stats: ServerChunkCache: 1843 Drop: 0
      	Level seed: 6548884773994259817
      	Level generator: ID 00 - default, ver 1. Features enabled: true
      	Level generator options: 
      	Level spawn location: World: (98,64,358), Chunk: (at 2,4,6 in 6,22; contains blocks 96,0,352 to 111,255,367), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
      	Level time: 4547262 game time, 9499 day time
      	Level dimension: 0
      	Level storage version: 0x04ABD - Anvil
      	Level weather: Rain time: 18767750 (now: false), thunder time: 18767750 (now: false)
      	Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
      Stacktrace:
      	at net.minecraft.server.MinecraftServer.u(SourceFile:511)
      	at net.minecraft.server.MinecraftServer.t(SourceFile:441)
      	at bsk.t(SourceFile:117)
      	at net.minecraft.server.MinecraftServer.run(SourceFile:358)
      	at ky.run(SourceFile:617)
      
      -- System Details --
      Details:
      	Minecraft Version: 1.7.2
      	Operating System: Windows 7 (amd64) version 6.1
      	Java Version: 1.7.0_17, Oracle Corporation
      	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
      	Memory: 151847112 bytes (144 MB) / 340983808 bytes (325 MB) up to 954466304 bytes (910 MB)
      	JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G
      	AABB Pool Size: 1875 (105000 bytes; 0 MB) allocated, 6 (336 bytes; 0 MB) used
      	IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94
      	Profiler Position: N/A (disabled)
      	Vec3 Pool Size: 1381 (77336 bytes; 0 MB) allocated, 12 (672 bytes; 0 MB) used
      	Player Count: 1 / 8; [mm['DERIKUF'/88, l='world', x=198,89, y=64,00, z=398,02]]
      	Type: Integrated Server (map_client.txt)
      	Is Modded: Probably not. Jar signature remains and both client + server brands are untouched.
      

            Unassigned Unassigned
            DERIKUF Unknown
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: