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.

Featured Replies

Posted

---- Minecraft Crash Report ----

// Why did you do that?

 

Time: 10/23/15 8:29 AM

Description: Exception ticking world

 

java.lang.IllegalArgumentException: n must be positive

at java.util.Random.nextInt(Random.java:300)

at mimohad.helpfulmod.OresGeneration.generateOre(OresGeneration.java:56)

at mimohad.helpfulmod.OresGeneration.generateOverworld(OresGeneration.java:38)

at mimohad.helpfulmod.OresGeneration.generate(OresGeneration.java:22)

at cpw.mods.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:112)

at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:314)

at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1147)

at net.minecraftforge.common.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:52)

at net.minecraftforge.common.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:12)

at net.minecraftforge.common.util.AsynchronousExecutor$Task.finish(AsynchronousExecutor.java:189)

at net.minecraftforge.common.util.AsynchronousExecutor$Task.get(AsynchronousExecutor.java:165)

at net.minecraftforge.common.util.AsynchronousExecutor.skipQueue(AsynchronousExecutor.java:341)

at net.minecraftforge.common.util.AsynchronousExecutor.getSkipQueue(AsynchronousExecutor.java:302)

at net.minecraftforge.common.chunkio.ChunkIOExecutor.syncChunkLoad(ChunkIOExecutor.java:12)

at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:144)

at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:119)

at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:221)

at net.minecraft.world.World.getChunkFromChunkCoords(World.java:482)

at net.minecraft.world.WorldServer.func_147456_g(WorldServer.java:330)

at net.minecraft.world.WorldServer.tick(WorldServer.java:191)

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:692)

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)

 

 

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

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at java.util.Random.nextInt(Random.java:300)

at mimohad.helpfulmod.OresGeneration.generateOre(OresGeneration.java:56)

at mimohad.helpfulmod.OresGeneration.generateOverworld(OresGeneration.java:38)

at mimohad.helpfulmod.OresGeneration.generate(OresGeneration.java:22)

at cpw.mods.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:112)

at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:314)

at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1147)

at net.minecraftforge.common.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:52)

at net.minecraftforge.common.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:12)

at net.minecraftforge.common.util.AsynchronousExecutor$Task.finish(AsynchronousExecutor.java:189)

at net.minecraftforge.common.util.AsynchronousExecutor$Task.get(AsynchronousExecutor.java:165)

at net.minecraftforge.common.util.AsynchronousExecutor.skipQueue(AsynchronousExecutor.java:341)

at net.minecraftforge.common.util.AsynchronousExecutor.getSkipQueue(AsynchronousExecutor.java:302)

at net.minecraftforge.common.chunkio.ChunkIOExecutor.syncChunkLoad(ChunkIOExecutor.java:12)

at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:144)

at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:119)

at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:221)

at net.minecraft.world.World.getChunkFromChunkCoords(World.java:482)

at net.minecraft.world.WorldServer.func_147456_g(WorldServer.java:330)

at net.minecraft.world.WorldServer.tick(WorldServer.java:191)

 

-- Affected level --

Details:

Level name: MimoMOd

All players: 1 total; [EntityPlayerMP['Player93'/362, l='MimoMOd', x=-19.56, y=69.00, z=432.04]]

Chunk stats: ServerChunkCache: 921 Drop: 0

Level seed: 1804282447970088278

Level generator: ID 00 - default, ver 1. Features enabled: true

Level generator options:

Level spawn location: World: (12,64,256), Chunk: (at 12,4,0 in 0,16; contains blocks 0,0,256 to 15,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Level time: 38937 game time, 3190 day time

Level dimension: 0

Level storage version: 0x04ABD - Anvil

Level weather: Rain time: 8130 (now: false), thunder time: 115883 (now: false)

Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true

Stacktrace:

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:692)

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)

 

-- System Details --

Details:

Minecraft Version: 1.7.10

Operating System: Windows 8.1 (amd64) version 6.3

Java Version: 1.7.0_79, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 822219264 bytes (784 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95

FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1517 4 mods loaded, 4 mods active

States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored

UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)

UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1517-1.7.10.jar)

UCHIJAAAA Forge{10.13.4.1517} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1517-1.7.10.jar)

UCHIJAAAA hm{3.0} [HelpFul Mod] (bin)

GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.

Profiler Position: N/A (disabled)

Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

Player Count: 1 / 8; [EntityPlayerMP['Player93'/362, l='MimoMOd', x=-19.56, y=69.00, z=432.04]]

Type: Integrated Server (map_client.txt)

Is Modded: Definitely; Client brand changed to 'fml,forge'

The error is pretty straightforward, is it not? I mean, it tells you exactly what the issue is and where in your code it happens...

 

Check out your OresGeneration class at lines 56, 38 and 22.....

  • Author

Sorry for the spelling mistake i meant "thank you" instead of thank and i am almost figuring out the problem

 

  • Author

Finallly, it worked thanks without you Cerandior i would have not finished my mod :D!!

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.