Jump to content

[SOLVED][1.7.10]Minecraft world generator crashing on addOre function.


Recommended Posts

Posted

Ok, so the title says it. I get a world generator crash every time i try to create a world, or enter on unloaded chunk.

The log file:

 

[20:23:16] [main/INFO]: Extra: []

[20:23:16] [main/INFO]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Marko_2/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]

[20:23:17] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[20:23:17] [main/INFO]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[20:23:17] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker

[20:23:17] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker

[20:23:17] [main/INFO]: Forge Mod Loader version 7.99.25.1472 for Minecraft 1.7.10 loading

[20:23:17] [main/INFO]: Java is Java HotSpot 64-Bit Server VM, version 1.8.0_45, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre1.8.0_45

[20:23:17] [main/INFO]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[20:23:17] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker

[20:23:17] [main/INFO]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin

[20:23:17] [main/INFO]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin

[20:23:17] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[20:23:17] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker

[20:23:17] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker

[20:23:17] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[20:23:17] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[20:23:17] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[20:23:17] [main/ERROR]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[20:23:22] [main/ERROR]: FML appears to be missing any signature data. This is not a good thing

[20:23:22] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[20:23:22] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker

[20:23:24] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker

[20:23:24] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker

[20:23:24] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker

[20:23:24] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[20:23:27] [main/INFO]: Setting user: Player57

[20:23:31] [Client thread/INFO]: LWJGL Version: 2.9.1

[20:23:33] [Client thread/INFO]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ----

// I just don't know what went wrong :(

 

Time: 6/28/15 8:23 PM

Description: Loading screen debug info

 

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR

 

 

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

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

 

-- System Details --

Details:

Minecraft Version: 1.7.10

Operating System: Windows 8.1 (amd64) version 6.3

Java Version: 1.8.0_45, Oracle Corporation

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

Memory: 790579664 bytes (753 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: 0, tallocated: 0

FML:

GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13394 Compatibility Profile Context 15.200.1023.5' Renderer: 'AMD Radeon HD 8200 / R3 Series'

[20:23:34] [Client thread/INFO]: Attempting early MinecraftForge initialization

[20:23:34] [Client thread/INFO]: MinecraftForge v10.13.4.1472 Initialized

[20:23:34] [Client thread/INFO]: Replaced 183 ore recipies

[20:23:34] [Client thread/INFO]: Completed early MinecraftForge initialization

[20:23:35] [Client thread/INFO]: Found 0 mods from the command line. Injecting into mod discoverer

[20:23:35] [Client thread/INFO]: Searching C:\Users\Marko_2\Desktop\mod\eclipse\mods for mods

[20:23:44] [Client thread/INFO]: Forge Mod Loader has identified 4 mods to load

[20:23:45] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, versusmod] at CLIENT

[20:23:45] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, versusmod] at SERVER

[20:23:46] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Versus Mod

[20:23:47] [Client thread/INFO]: Processing ObjectHolder annotations

[20:23:47] [Client thread/INFO]: Found 341 ObjectHolder annotations

[20:23:47] [Client thread/INFO]: Identifying ItemStackHolder annotations

[20:23:47] [Client thread/INFO]: Found 0 ItemStackHolder annotations

[20:23:47] [Client thread/INFO]: Configured a dormant chunk cache size of 0

[20:23:47] [Client thread/INFO]: Applying holder lookups

[20:23:47] [Client thread/INFO]: Holder lookups applied

[20:23:47] [Client thread/INFO]: Injecting itemstacks

[20:23:47] [Client thread/INFO]: Itemstack injection complete

[20:23:47] [sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:

[20:23:47] [sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...

[20:23:48] [Thread-8/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL

[20:23:48] [Thread-8/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[20:23:48] [Thread-8/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.

[20:23:48] [sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:

[20:23:48] [sound Library Loader/INFO]: Sound engine started

[20:23:53] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas

[20:23:53] [Client thread/INFO]: Created: 16x16 textures/items-atlas

[20:23:53] [Client thread/INFO]: Injecting itemstacks

[20:23:53] [Client thread/INFO]: Itemstack injection complete

[20:23:54] [Client thread/INFO]: Forge Mod Loader has successfully loaded 4 mods

[20:23:54] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Versus Mod

[20:23:55] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

[20:23:56] [Client thread/INFO]: Created: 256x256 textures/items-atlas

[20:23:56] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:

[20:23:56] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...

[20:23:56] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:    Author: Paul Lamb, www.paulscode.com

[20:23:56] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:

[20:23:56] [sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:

[20:23:56] [sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...

[20:23:56] [Thread-10/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL

[20:23:56] [Thread-10/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[20:23:56] [Thread-10/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.

[20:23:57] [sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:

[20:23:57] [sound Library Loader/INFO]: Sound engine started

[20:24:00] [Client thread/ERROR]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=

[20:24:00] [Client thread/ERROR]: The following texture errors were found.

[20:24:00] [Client thread/ERROR]: ==================================================

[20:24:00] [Client thread/ERROR]:  DOMAIN versusmod

[20:24:00] [Client thread/ERROR]: --------------------------------------------------

[20:24:00] [Client thread/ERROR]:  domain versusmod is missing 5 textures

[20:24:00] [Client thread/ERROR]:    domain versusmod has 1 location:

[20:24:00] [Client thread/ERROR]:      mod versusmod resources at C:\Users\Marko_2\Desktop\mod\bin

[20:24:00] [Client thread/ERROR]: -------------------------

[20:24:00] [Client thread/ERROR]:    The missing resources for domain versusmod are:

[20:24:00] [Client thread/ERROR]:      textures/items/hnPick.png

[20:24:00] [Client thread/ERROR]:      textures/items/hnHoe.png

[20:24:00] [Client thread/ERROR]:      textures/items/hnAxe.png

[20:24:00] [Client thread/ERROR]:      textures/items/hnSword.png

[20:24:00] [Client thread/ERROR]:      textures/items/hnSpade.png

[20:24:00] [Client thread/ERROR]: -------------------------

[20:24:00] [Client thread/ERROR]:    No other errors exist for domain versusmod

[20:24:00] [Client thread/ERROR]: ==================================================

[20:24:00] [Client thread/ERROR]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=

[20:24:07] [server thread/INFO]: Starting integrated minecraft server version 1.7.10

[20:24:07] [server thread/INFO]: Generating keypair

[20:24:08] [server thread/INFO]: Injecting existing block and item data into this server instance

[20:24:08] [server thread/INFO]: Applying holder lookups

[20:24:08] [server thread/INFO]: Holder lookups applied

[20:24:08] [server thread/INFO]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@20d0d52b)

[20:24:08] [server thread/INFO]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@20d0d52b)

[20:24:08] [server thread/INFO]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@20d0d52b)

[20:24:08] [server thread/INFO]: Preparing start region for level 0

[20:24:10] [server thread/INFO]: Preparing spawn area: 1%

[20:24:11] [server thread/INFO]: Preparing spawn area: 36%

[20:24:12] [server thread/INFO]: Preparing spawn area: 74%

[20:24:13] [server thread/INFO]: Changing view distance to 4, from 10

[20:24:14] [Netty Client IO #0/INFO]: Server protocol version 2

[20:24:14] [Netty IO #1/INFO]: Client protocol version 2

[20:24:14] [Netty IO #1/INFO]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]

[20:24:14] [Netty IO #1/INFO]: Attempting connection with missing mods [] at CLIENT

[20:24:14] [Netty Client IO #0/INFO]: Attempting connection with missing mods [] at SERVER

[20:24:14] [Client thread/INFO]: [Client thread] Client side modded connection established

[20:24:14] [server thread/INFO]: [server thread] Server side modded connection established

[20:24:14] [server thread/INFO]: Player57[local:E:fc12004e] logged in with entity id 365 at (179.82690385485523, 80.0, 284.29977573504357)

[20:24:14] [server thread/INFO]: Player57 joined the game

[20:24:16] [server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2906ms behind, skipping 58 tick(s)

[20:24:29] [server thread/ERROR]: Encountered an unexpected exception

net.minecraft.util.ReportedException: Exception getting block type in world

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:631) ~[MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:547) ~[MinecraftServer.class:?]

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:111) ~[integratedServer.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685) [MinecraftServer$2.class:?]

Caused by: java.lang.IllegalArgumentException: bound must be positive

at java.util.Random.nextInt(Unknown Source) ~[?:1.8.0_45]

at com.aosp.world.CoreOre.addOre(CoreOre.java:41) ~[CoreOre.class:?]

at com.aosp.world.CoreOre.generateOverworld(CoreOre.java:50) ~[CoreOre.class:?]

at com.aosp.world.CoreOre.generate(CoreOre.java:24) ~[CoreOre.class:?]

at cpw.mods.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:112) ~[GameRegistry.class:?]

at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:280) ~[ChunkProviderServer.class:?]

at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1040) ~[Chunk.class:?]

at net.minecraft.world.gen.ChunkProviderServer.originalLoadChunk(ChunkProviderServer.java:190) ~[ChunkProviderServer.class:?]

at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:131) ~[ChunkProviderServer.class:?]

at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:101) ~[ChunkProviderServer.class:?]

at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:199) ~[ChunkProviderServer.class:?]

at net.minecraft.world.World.getChunkFromChunkCoords(World.java:419) ~[World.class:?]

at net.minecraft.world.World.getBlock(World.java:345) ~[World.class:?]

at net.minecraft.world.World.doesBlockHaveSolidTopSurface(World.java:2626) ~[World.class:?]

at net.minecraft.world.SpawnerAnimals.canCreatureTypeSpawnAtLocation(SpawnerAnimals.java:215) ~[spawnerAnimals.class:?]

at net.minecraft.world.SpawnerAnimals.findChunksForSpawning(SpawnerAnimals.java:130) ~[spawnerAnimals.class:?]

at net.minecraft.world.WorldServer.tick(WorldServer.java:161) ~[WorldServer.class:?]

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:625) ~[MinecraftServer.class:?]

... 4 more

[20:24:29] [server thread/ERROR]: This crash report has been saved to: C:\Users\Marko_2\Desktop\mod\eclipse\.\crash-reports\crash-2015-06-28_20.24.29-server.txt

[20:24:29] [server thread/INFO]: Stopping server

[20:24:29] [server thread/INFO]: Saving players

[20:24:29] [Client thread/INFO]: [net.minecraft.client.Minecraft:displayCrashReport:349]: ---- Minecraft Crash Report ----

// You're mean.

 

Time: 6/28/15 8:24 PM

Description: Exception getting block type in world

 

java.lang.IllegalArgumentException: bound must be positive

at java.util.Random.nextInt(Unknown Source)

at com.aosp.world.CoreOre.addOre(CoreOre.java:41)

at com.aosp.world.CoreOre.generateOverworld(CoreOre.java:50)

at com.aosp.world.CoreOre.generate(CoreOre.java:24)

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

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

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

at net.minecraft.world.gen.ChunkProviderServer.originalLoadChunk(ChunkProviderServer.java:190)

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

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

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

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

at net.minecraft.world.World.getBlock(World.java:345)

at net.minecraft.world.World.doesBlockHaveSolidTopSurface(World.java:2626)

at net.minecraft.world.SpawnerAnimals.canCreatureTypeSpawnAtLocation(SpawnerAnimals.java:215)

at net.minecraft.world.SpawnerAnimals.findChunksForSpawning(SpawnerAnimals.java:130)

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

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

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

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

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

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

 

 

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 com.aosp.world.CoreOre.addOre(CoreOre.java:41)

at com.aosp.world.CoreOre.generateOverworld(CoreOre.java:50)

at com.aosp.world.CoreOre.generate(CoreOre.java:24)

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

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

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

at net.minecraft.world.gen.ChunkProviderServer.originalLoadChunk(ChunkProviderServer.java:190)

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

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

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

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

 

-- Requested block coordinates --

Details:

Found chunk: true

Location: World: (14,120,328), Chunk: (at 14,7,8 in 0,20; contains blocks 0,0,320 to 15,255,335), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Stacktrace:

at net.minecraft.world.World.getBlock(World.java:345)

at net.minecraft.world.World.doesBlockHaveSolidTopSurface(World.java:2626)

at net.minecraft.world.SpawnerAnimals.canCreatureTypeSpawnAtLocation(SpawnerAnimals.java:215)

at net.minecraft.world.SpawnerAnimals.findChunksForSpawning(SpawnerAnimals.java:130)

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

 

-- Affected level --

Details:

Level name: New World

All players: 1 total; [EntityPlayerMP['Player57'/365, l='New World', x=138.03, y=120.40, z=339.68]]

Chunk stats: ServerChunkCache: 631 Drop: 1

Level seed: 5642088368908021336

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

Level generator options:

Level spawn location: World: (216,64,256), Chunk: (at 8,4,0 in 13,16; contains blocks 208,0,256 to 223,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Level time: 2789 game time, 2789 day time

Level dimension: 0

Level storage version: 0x04ABD - Anvil

Level weather: Rain time: 43801 (now: false), thunder time: 18884 (now: false)

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

Stacktrace:

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

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

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

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

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

 

-- System Details --

Details:

Minecraft Version: 1.7.10

Operating System: Windows 8.1 (amd64) version 6.3

Java Version: 1.8.0_45, Oracle Corporation

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

Memory: 711529408 bytes (678 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.1472 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] (forgeBin-1.7.10-10.13.4.1472-1.7.10.jar)

UCHIJAAAA Forge{10.13.4.1472} [Minecraft Forge] (forgeBin-1.7.10-10.13.4.1472-1.7.10.jar)

UCHIJAAAA versusmod{0.0.5} [Versus 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['Player57'/365, l='New World', x=138.03, y=120.40, z=339.68]]

Type: Integrated Server (map_client.txt)

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

[20:24:29] [Client thread/INFO]: [net.minecraft.client.Minecraft:displayCrashReport:354]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2015-06-28_20.24.29-server.txt

[20:24:29] [Client thread/INFO]: Waiting for the server to terminate/save.

[20:24:29] [server thread/INFO]: Saving worlds

[20:24:29] [server thread/INFO]: Saving chunks for level 'New World'/Overworld

[20:24:29] [server thread/INFO]: Saving chunks for level 'New World'/Nether

[20:24:29] [server thread/INFO]: Saving chunks for level 'New World'/The End

[20:24:31] [server thread/INFO]: Unloading dimension 0

[20:24:31] [server thread/INFO]: Unloading dimension -1

[20:24:31] [server thread/INFO]: Unloading dimension 1

[20:24:31] [server thread/INFO]: Applying holder lookups

[20:24:31] [server thread/INFO]: Holder lookups applied

[20:24:31] [server thread/INFO]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded.

[20:24:31] [Client thread/INFO]: Server terminated.

AL lib: (EE) alc_cleanup: 1 device not closed

Java HotSpot 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

 

and heres the code that im using for mod

 

package com.aosp.world;

import java.util.Random;

import com.aosp.Blocks.Ores;

import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.feature.WorldGenMinable;
import cpw.mods.fml.common.IWorldGenerator;

public class CoreOre implements IWorldGenerator {

@Override
public void generate(Random random, int chunkX, int chunkZ, World world,
		IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
	switch (world.provider.dimensionId){
	case -1:
		generateNether(random, chunkX * 16, chunkZ *16, world);
		break;
	case 0:
		generateOverworld(random, chunkX * 16, chunkZ *16, world);
		break;
	case 1:
		generateEnd(random, chunkX * 16, chunkZ *16, world);
		break;

	}

}
private void addOre(Block block, Block blockspawn, Random random, World world, int posX, int posZ, int minY, int maxY,int minVien, int maxVien, int spawnChance){
	for (int i = 0; i < spawnChance; i++){
		int defaultChunkSize = 16;

		int xPos = posX + random.nextInt(defaultChunkSize);
		int yPos = minY + random.nextInt(maxY - minY);
		int zPos = posZ + random.nextInt(defaultChunkSize);

		new WorldGenMinable(block, (minVien + random.nextInt(maxVien - minVien)), blockspawn).generate(world, random, xPos, yPos, zPos);
	}	
}

private void generateEnd(Random random, int chunkX, int chunkZ, World world) {

}

private void generateOverworld(Random random, int chunkX, int chunkZ, World world) {
	addOre(Ores.nOre, Blocks.stone, random, world, chunkX, chunkZ, 10, 30, 10, 9, ;
	addOre(Ores.aOre, Blocks.stone, random, world, chunkX, chunkZ, 20, 40, 10, 10, 9);

}

private void generateNether(Random random, int chunkX, int chunkZ, World world) {

}

}

 

 

WorldGenerator class:

package com.aosp.world;

import cpw.mods.fml.common.IWorldGenerator;
import cpw.mods.fml.common.registry.GameRegistry;

public class WorldGeneration {
public static void mainRegistry(){
	initializeWorldGen();
}

public static void initializeWorldGen(){
	registerWorldGen(new CoreOre(), 1);
}

public static void registerWorldGen(IWorldGenerator worldGenClass, int weightedProbability ){
	GameRegistry.registerWorldGenerator(worldGenClass, weightedProbability);
	GameRegistry.registerWorldGenerator(new SoulTreeGen(true, 4, 0, 0, false), 1);
}
}

 

 

Also every time I delete the 

addOre(Ores.nOre, Blocks.stone, random, world, chunkX, chunkZ, 10, 30, 10, 9, 8);

addOre(Ores.aOre, Blocks.stone, random, world, chunkX, chunkZ, 20, 40, 10, 10, 9);

line, the world generator works as normal

Sarcasm doesn't always means what you think it means!

Posted

For aOre you pass a minVein that is bigger than maxVein. Therefor maxVein - minVein returns a negative number. Which you then pass to random.nextInt, which is not allowed.

 

Please learn to read stack traces, this should be obvious to you.

OK thanks ill try to fix it now

 

Sarcasm doesn't always means what you think it means!

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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