Jump to content

[1.7.2] Dimension world generation problems


The_SlayerMC
 Share

Recommended Posts

Hey!

 

Uhhh iv'e never had this problem before, but it started happening lately.

 

But my game keeps crashing when i try to load a new world and this is the crash report:

 

 

[14:27:41] [sound Library Loader/INFO]: Sound engine started
[14:27:44] [server thread/INFO]: Starting integrated minecraft server version 1.7.2
[14:27:44] [server thread/INFO]: Generating keypair
[14:27:44] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[14:27:44] [server thread/INFO] [FML]: Applying holder lookups
[14:27:44] [server thread/INFO] [FML]: Holder lookups applied
[14:27:46] [server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@592958fe)
[14:27:46] [server thread/INFO] [FML]: Loading dimension 10 (New World) (net.minecraft.server.integrated.IntegratedServer@592958fe)
[14:27:46] [server thread/WARN]: Unable to find spawn biome
[14:27:47] [server thread/ERROR]: Encountered an unexpected exception
net.minecraft.util.ReportedException: Exception getting block type in world
at net.minecraft.world.World.<init>(World.java:316) ~[World.class:?]
at net.minecraft.world.WorldServer.<init>(WorldServer.java:103) ~[WorldServer.class:?]
at net.minecraft.world.WorldServerMulti.<init>(WorldServerMulti.java:14) ~[WorldServerMulti.class:?]
at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:66) ~[integratedServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96) ~[integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:442) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:746) [MinecraftServer$2.class:?]
Caused by: java.lang.IllegalArgumentException: n must be positive
at java.util.Random.nextInt(Unknown Source) ~[?:1.7.0_51]
at net.divinerpg.api.worldgen.WorldGenAPI.placeModdedChestWithContents(WorldGenAPI.java:81) ~[WorldGenAPI.class:?]
at net.divinerpg.dimension.gen.iceika.village.WorldGenWorkShop.doMisc(WorldGenWorkShop.java:117) ~[WorldGenWorkShop.class:?]
at net.divinerpg.dimension.gen.iceika.village.WorldGenWorkShop.generate(WorldGenWorkShop.java:38) ~[WorldGenWorkShop.class:?]
at net.divinerpg.dimension.gen.iceika.ChunkProviderIceika.populate(ChunkProviderIceika.java:412) ~[ChunkProviderIceika.class:?]
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:255) ~[ChunkProviderServer.class:?]
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1158) ~[Chunk.class:?]
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150) ~[ChunkProviderServer.class:?]
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163) ~[ChunkProviderServer.class:?]
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:487) ~[World.class:?]
at net.minecraft.world.World.getBlock(World.java:392) ~[World.class:?]
at net.minecraft.world.World.notifyBlockOfNeighborChange(World.java:767) ~[World.class:?]
at net.minecraft.world.World.notifyBlocksOfNeighborChange(World.java:724) ~[World.class:?]
at net.minecraft.world.World.notifyBlockChange(World.java:681) ~[World.class:?]
at net.minecraft.world.World.setBlock(World.java:531) ~[World.class:?]
at net.minecraft.world.World.setBlock(World.java:665) ~[World.class:?]
at net.divinerpg.dimension.gen.iceika.WorldGenIceikaDungeon.generate(WorldGenIceikaDungeon.java:66) ~[WorldGenIceikaDungeon.class:?]
at net.divinerpg.dimension.gen.iceika.ChunkProviderIceika.populate(ChunkProviderIceika.java:398) ~[ChunkProviderIceika.class:?]
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:255) ~[ChunkProviderServer.class:?]
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1163) ~[Chunk.class:?]
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150) ~[ChunkProviderServer.class:?]
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163) ~[ChunkProviderServer.class:?]
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:487) ~[World.class:?]
at net.minecraft.world.World.getBlock(World.java:392) ~[World.class:?]
at net.minecraft.world.World.notifyBlockOfNeighborChange(World.java:767) ~[World.class:?]
at net.minecraft.world.World.notifyBlocksOfNeighborChange(World.java:720) ~[World.class:?]
at net.minecraft.world.World.notifyBlockChange(World.java:681) ~[World.class:?]
at net.minecraft.world.World.setBlock(World.java:531) ~[World.class:?]
at net.minecraft.world.World.setBlock(World.java:665) ~[World.class:?]
at net.divinerpg.dimension.gen.iceika.WorldGenIceikaDungeon1.generate(WorldGenIceikaDungeon1.java:762) ~[WorldGenIceikaDungeon1.class:?]
at net.divinerpg.dimension.gen.iceika.ChunkProviderIceika.populate(ChunkProviderIceika.java:398) ~[ChunkProviderIceika.class:?]
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:255) ~[ChunkProviderServer.class:?]
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1158) ~[Chunk.class:?]
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150) ~[ChunkProviderServer.class:?]
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163) ~[ChunkProviderServer.class:?]
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:487) ~[World.class:?]
at net.minecraft.world.World.getBlock(World.java:392) ~[World.class:?]
at net.minecraft.world.World.notifyBlockOfNeighborChange(World.java:767) ~[World.class:?]
at net.minecraft.world.World.notifyBlocksOfNeighborChange(World.java:724) ~[World.class:?]
at net.minecraft.world.World.notifyBlockChange(World.java:681) ~[World.class:?]
at net.minecraft.world.World.setBlock(World.java:531) ~[World.class:?]
at net.minecraft.world.World.setBlock(World.java:665) ~[World.class:?]
at net.divinerpg.dimension.gen.iceika.WorldGenIceikaDungeon1.generate(WorldGenIceikaDungeon1.java:98) ~[WorldGenIceikaDungeon1.class:?]
at net.divinerpg.dimension.gen.iceika.ChunkProviderIceika.populate(ChunkProviderIceika.java:398) ~[ChunkProviderIceika.class:?]
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:255) ~[ChunkProviderServer.class:?]
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1153) ~[Chunk.class:?]
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150) ~[ChunkProviderServer.class:?]
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163) ~[ChunkProviderServer.class:?]
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:487) ~[World.class:?]
at net.minecraft.world.World.getBlock(World.java:392) ~[World.class:?]
at net.minecraft.world.World.isAirBlock(World.java:415) ~[World.class:?]
at net.minecraft.world.World.getTopBlock(World.java:376) ~[World.class:?]
at net.minecraft.world.WorldProvider.canCoordinateBeSpawn(WorldProvider.java:97) ~[WorldProvider.class:?]
at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:806) ~[WorldServer.class:?]
at net.minecraft.world.WorldServer.initialize(WorldServer.java:770) ~[WorldServer.class:?]
at net.minecraft.world.World.<init>(World.java:301) ~[World.class:?]
... 6 more
[14:27:47] [server thread/ERROR]: This crash report has been saved to: C:\Development\Forge 1.7.2\eclipse\.\crash-reports\crash-2014-06-08_14.27.47-server.txt
[14:27:47] [server thread/INFO] [FML]: Applying holder lookups
[14:27:47] [server thread/INFO] [FML]: Holder lookups applied
[14:27:47] [server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STARTING and forced into state SERVER_STOPPED. Errors may have been discarded.
---- Minecraft Crash Report ----
// I just don't know what went wrong 

Time: 8/06/14 2:27 PM
Description: Exception getting block type in world

java.lang.IllegalArgumentException: n must be positive
at java.util.Random.nextInt(Unknown Source)
at net.divinerpg.api.worldgen.WorldGenAPI.placeModdedChestWithContents(WorldGenAPI.java:81)
at net.divinerpg.dimension.gen.iceika.village.WorldGenWorkShop.doMisc(WorldGenWorkShop.java:117)
at net.divinerpg.dimension.gen.iceika.village.WorldGenWorkShop.generate(WorldGenWorkShop.java:38)
at net.divinerpg.dimension.gen.iceika.ChunkProviderIceika.populate(ChunkProviderIceika.java:412)
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:255)
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1158)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150)
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163)
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:487)
at net.minecraft.world.World.getBlock(World.java:392)
at net.minecraft.world.World.notifyBlockOfNeighborChange(World.java:767)
at net.minecraft.world.World.notifyBlocksOfNeighborChange(World.java:724)
at net.minecraft.world.World.notifyBlockChange(World.java:681)
at net.minecraft.world.World.setBlock(World.java:531)
at net.minecraft.world.World.setBlock(World.java:665)
at net.divinerpg.dimension.gen.iceika.WorldGenIceikaDungeon.generate(WorldGenIceikaDungeon.java:66)
at net.divinerpg.dimension.gen.iceika.ChunkProviderIceika.populate(ChunkProviderIceika.java:398)
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:255)
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1163)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150)
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163)
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:487)
at net.minecraft.world.World.getBlock(World.java:392)
at net.minecraft.world.World.notifyBlockOfNeighborChange(World.java:767)
at net.minecraft.world.World.notifyBlocksOfNeighborChange(World.java:720)
at net.minecraft.world.World.notifyBlockChange(World.java:681)
at net.minecraft.world.World.setBlock(World.java:531)
at net.minecraft.world.World.setBlock(World.java:665)
at net.divinerpg.dimension.gen.iceika.WorldGenIceikaDungeon1.generate(WorldGenIceikaDungeon1.java:762)
at net.divinerpg.dimension.gen.iceika.ChunkProviderIceika.populate(ChunkProviderIceika.java:398)
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:255)
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1158)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150)
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163)
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:487)
at net.minecraft.world.World.getBlock(World.java:392)
at net.minecraft.world.World.notifyBlockOfNeighborChange(World.java:767)
at net.minecraft.world.World.notifyBlocksOfNeighborChange(World.java:724)
at net.minecraft.world.World.notifyBlockChange(World.java:681)
at net.minecraft.world.World.setBlock(World.java:531)
at net.minecraft.world.World.setBlock(World.java:665)
at net.divinerpg.dimension.gen.iceika.WorldGenIceikaDungeon1.generate(WorldGenIceikaDungeon1.java:98)
at net.divinerpg.dimension.gen.iceika.ChunkProviderIceika.populate(ChunkProviderIceika.java:398)
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:255)
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1153)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150)
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163)
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:487)
at net.minecraft.world.World.getBlock(World.java:392)
at net.minecraft.world.World.isAirBlock(World.java:415)
at net.minecraft.world.World.getTopBlock(World.java:376)
at net.minecraft.world.WorldProvider.canCoordinateBeSpawn(WorldProvider.java:97)
at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:806)
at net.minecraft.world.WorldServer.initialize(WorldServer.java:770)
at net.minecraft.world.World.<init>(World.java:301)
at net.minecraft.world.WorldServer.<init>(WorldServer.java:103)
at net.minecraft.world.WorldServerMulti.<init>(WorldServerMulti.java:14)
at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:66)
at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:442)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:746)


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 net.divinerpg.api.worldgen.WorldGenAPI.placeModdedChestWithContents(WorldGenAPI.java:81)
at net.divinerpg.dimension.gen.iceika.village.WorldGenWorkShop.doMisc(WorldGenWorkShop.java:117)
at net.divinerpg.dimension.gen.iceika.village.WorldGenWorkShop.generate(WorldGenWorkShop.java:38)
at net.divinerpg.dimension.gen.iceika.ChunkProviderIceika.populate(ChunkProviderIceika.java:412)
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:255)
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1158)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150)
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163)
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:487)

-- Requested block coordinates --
Details:
Found chunk: true
Location: World: (-16,45,32), Chunk: (at 0,2,0 in -1,2; contains blocks -16,0,32 to -1,255,47), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Stacktrace:
at net.minecraft.world.World.getBlock(World.java:392)
at net.minecraft.world.World.notifyBlockOfNeighborChange(World.java:767)
at net.minecraft.world.World.notifyBlocksOfNeighborChange(World.java:724)
at net.minecraft.world.World.notifyBlockChange(World.java:681)
at net.minecraft.world.World.setBlock(World.java:531)
at net.minecraft.world.World.setBlock(World.java:665)
at net.divinerpg.dimension.gen.iceika.WorldGenIceikaDungeon.generate(WorldGenIceikaDungeon.java:66)
at net.divinerpg.dimension.gen.iceika.ChunkProviderIceika.populate(ChunkProviderIceika.java:398)
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:255)
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1163)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150)
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163)
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:487)

-- Requested block coordinates --
Details:
Found chunk: true
Location: World: (0,14,16), Chunk: (at 0,0,0 in 0,1; contains blocks 0,0,16 to 15,255,31), 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:392)
at net.minecraft.world.World.notifyBlockOfNeighborChange(World.java:767)
at net.minecraft.world.World.notifyBlocksOfNeighborChange(World.java:720)
at net.minecraft.world.World.notifyBlockChange(World.java:681)
at net.minecraft.world.World.setBlock(World.java:531)
at net.minecraft.world.World.setBlock(World.java:665)
at net.divinerpg.dimension.gen.iceika.WorldGenIceikaDungeon1.generate(WorldGenIceikaDungeon1.java:762)
at net.divinerpg.dimension.gen.iceika.ChunkProviderIceika.populate(ChunkProviderIceika.java:398)
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:255)
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1158)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150)
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163)
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:487)

-- Requested block coordinates --
Details:
Found chunk: true
Location: World: (-4,12,0), Chunk: (at 12,0,0 in -1,0; contains blocks -16,0,0 to -1,255,15), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Stacktrace:
at net.minecraft.world.World.getBlock(World.java:392)
at net.minecraft.world.World.notifyBlockOfNeighborChange(World.java:767)
at net.minecraft.world.World.notifyBlocksOfNeighborChange(World.java:724)
at net.minecraft.world.World.notifyBlockChange(World.java:681)
at net.minecraft.world.World.setBlock(World.java:531)
at net.minecraft.world.World.setBlock(World.java:665)
at net.divinerpg.dimension.gen.iceika.WorldGenIceikaDungeon1.generate(WorldGenIceikaDungeon1.java:98)
at net.divinerpg.dimension.gen.iceika.ChunkProviderIceika.populate(ChunkProviderIceika.java:398)
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:255)
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1153)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150)
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163)
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:487)

-- Requested block coordinates --
Details:
Found chunk: true
Location: World: (3,64,-26), Chunk: (at 3,4,6 in 0,-2; contains blocks 0,0,-32 to 15,255,-17), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
Stacktrace:
at net.minecraft.world.World.getBlock(World.java:392)
at net.minecraft.world.World.isAirBlock(World.java:415)
at net.minecraft.world.World.getTopBlock(World.java:376)
at net.minecraft.world.WorldProvider.canCoordinateBeSpawn(WorldProvider.java:97)
at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:806)
at net.minecraft.world.WorldServer.initialize(WorldServer.java:770)

-- Affected level --
Details:
Level name: New World
All players: 0 total; []
Chunk stats: ServerChunkCache: 19 Drop: 0
Level seed: 8496982105151354415
Level generator: ID 01 - flat, ver 0. Features enabled: true
Level generator options: 
Level spawn location: World: (0,0,0), Chunk: (at 0,0,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: 0 game time, 0 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.world.World.<init>(World.java:301)
at net.minecraft.world.WorldServer.<init>(WorldServer.java:103)
at net.minecraft.world.WorldServerMulti.<init>(WorldServerMulti.java:14)
at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:66)
at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:442)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:746)

-- System Details --
Details:
Minecraft Version: 1.7.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_51, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 3947769296 bytes (3764 MB) / 4149739520 bytes (3957 MB) up to 4149739520 bytes (3957 MB)
JVM Flags: 3 total; -Xincgc -Xmx4024M -Xms4024M
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: MCP v9.03 FML v7.2.207.1110 Minecraft Forge 10.12.1.1110 4 mods loaded, 4 mods active
mcp{9.03} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
FML{7.2.207.1110} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.1.1110.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
Forge{10.12.1.1110} [Minecraft Forge] (forgeSrc-1.7.2-10.12.1.1110.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
divinerpg{InDev 1.4.0} [DivineRPG] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Player Count: 0 / 8; []
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
#@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2014-06-08_14.27.47-server.txt
AL lib: (EE) alc_cleanup: 1 device not closed

 

 

 

and this is the code thats causing it:

 

 


private ArrayList<WorldGenerator> lights, village, dungeons;

   

 

In the constructor:

lights = new ArrayList(2);
	lights.add(new WorldGenLights.Light1());
	lights.add(new WorldGenLights.Light2());
	lights.add(new WorldGenLights.Light3());

	village = new ArrayList(2);
	village.add(new WorldGenLibrary());
	village.add(new WorldGenWorkShop());
	village.add(new WorldGenHouse1());

	dungeons = new ArrayList(1);
	dungeons.add(new WorldGenIceikaDungeon());
	dungeons.add(new WorldGenIceikaDungeon1());

 

In the populate method:

                for(i = 0; i < 5; i++) { 
		x = var4 + this.rand.nextInt(16);
		z = var5 + this.rand.nextInt(16);
		y = rand.nextInt(50);
		(dungeons.get(rand.nextInt(dungeons.size()))).generate(this.worldObj, this.rand, x, y, z);
	}

	for(i = 0; i < 6; i++) {
		x = var4 + this.rand.nextInt(16);
		z = var5 + this.rand.nextInt(16);
		y = rand.nextInt(200);
		(lights.get(rand.nextInt(lights.size()))).generate(this.worldObj, this.rand, x, y, z);
	}

	for(i = 0; i < 5; i++) {
		x = var4 + this.rand.nextInt(16);
		z = var5 + this.rand.nextInt(16);
		y = rand.nextInt(200);
		(village.get(rand.nextInt(village.size()))).generate(this.worldObj, this.rand, x, y, z);
	}

 

 

 

I know the problem would be inside the generation files itself.

 

But here is the dungeon file(I know its messy, but this is basically the only componant left to clean and rewrite) HERE it is with the rest of the code for anything else you would need

 

Oh and something else to be noted, if I comment out the parts that say i crash with that line, it doest crash, it just doesn't let me into any world... *Sighhh*

 

Any help would be great :D

I can also put the generation code of any file into the onItemUse method in an item, and it generates fine without any problems

Former developer for DivineRPG, Pixelmon and now the maker of Essence of the Gods

Link to comment
Share on other sites

Not sure if this has anything to do with it, but are you defining a spawn biome? Because just before the crash the console says "[14:27:46] [server thread/WARN]: Unable to find spawn biome" Again, this may be totally unrealated, but just checking :)

Link to comment
Share on other sites

in WorldGenAPI

ItemStack it = is[r.nextInt(amountOfItems - 1) + 1];

 

But your giving it only 1 for amountOfItems in WorldGenWorkShop

WorldGenAPI.placeModdedChestWithContents(w, x + x1 + 7, y + 1, z + z1 + 5, 2, 1, IceikaBlocks.frostedChest, i);

 

End result, r.nextInt(0) which is returning -1 sometimes and crashing things.

 

I'd fix placeChestWithContents and placeModdedChestWithContents, you've got multiple problems, for instance nowhere does it set the size of the itemStack placed in the chest inventory.

 

Link to comment
Share on other sites

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

 Share



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Im trying to tun a modded forge serve on a google cloud VM, (not the fist time I do this) so when I run the server locally, evererything works ok, but qhen I start the server online on the VM mods are loaded, shown, but they wont work, like i can get nods items from creative but cant place them beacuse they dissapear. The erro that is Shown on logs is like this Missing Datapack Mod:"Mod name"                                      so like that with a few of them
    • okey thanks for leting me know of the dc!
    • Some weeks ago I played Minecraft 1.19.3 with forge 44.1.0,today I changed the version of forge to 44.1.8,and add optifine,then the game crashed. I have tried any older versions of forge,but none of them worked.And I also tried reinstalling Minecraft 1.19.3 or optifine,but they also didn't work.Removing forge is working but I can't use mods so that I can't remove forge.Who knows the solution?Thanks! 😖 Here's the crash report: ---- Minecraft Crash Report ---- // Daisy, daisy... Time: 2023-02-05 16:59:24 Description: Rendering overlay java.lang.NoClassDefFoundError: net/minecraftforge/common/extensions/IForgeModelBaker     at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?] {}     at java.lang.ClassLoader.defineClass(ClassLoader.java:1012) ~[?:?] {}     at cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:119) ~[securejarhandler-2.1.6.jar:?] {}     at cpw.mods.cl.ModuleClassLoader.lambda$findClass$15(ModuleClassLoader.java:219) ~[securejarhandler-2.1.6.jar:?] {}     at cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:229) ~[securejarhandler-2.1.6.jar:?] {}     at cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:219) ~[securejarhandler-2.1.6.jar:?] {}     at cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:135) ~[securejarhandler-2.1.6.jar:?] {}     at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?] {}     at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?] {}     at java.lang.ClassLoader.defineClass(ClassLoader.java:1012) ~[?:?] {}     at cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:119) ~[securejarhandler-2.1.6.jar:?] {}     at cpw.mods.cl.ModuleClassLoader.lambda$findClass$15(ModuleClassLoader.java:219) ~[securejarhandler-2.1.6.jar:?] {}     at cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:229) ~[securejarhandler-2.1.6.jar:?] {}     at cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:219) ~[securejarhandler-2.1.6.jar:?] {}     at cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:135) ~[securejarhandler-2.1.6.jar:?] {}     at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?] {}     at net.minecraft.client.resources.model.ModelBakery.lambda$bakeModels$9(ModelBakery.java:209) ~[client-1.19.3-20221207.122022-srg.jar%23162!/:?] {re:classloading,pl:accesstransformer:B,xf:OptiFine:default}     at java.util.HashMap$KeySet.forEach(HashMap.java:1008) ~[?:?] {}     at net.minecraft.client.resources.model.ModelBakery.m_245909_(ModelBakery.java:204) ~[client-1.19.3-20221207.122022-srg.jar%23162!/:?] {re:classloading,pl:accesstransformer:B,xf:OptiFine:default}     at net.minecraft.client.resources.model.ModelManager.m_245476_(ModelManager.java:166) ~[client-1.19.3-20221207.122022-srg.jar%23162!/:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.resources.model.ModelManager.m_246937_(ModelManager.java:89) ~[client-1.19.3-20221207.122022-srg.jar%23162!/:?] {re:classloading,pl:runtimedistcleaner:A}     at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:483) ~[?:?] {}     at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?] {}     at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?] {}     at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?] {re:computing_frames}     at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?] {re:computing_frames}     at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?] {} Caused by: java.lang.ClassNotFoundException: net.minecraftforge.common.extensions.IForgeModelBaker     at cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:141) ~[securejarhandler-2.1.6.jar:?] {}     at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?] {}     ... 28 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Render thread Stacktrace:     at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?] {}     at java.lang.ClassLoader.defineClass(ClassLoader.java:1012) ~[?:?] {}     at cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:119) ~[securejarhandler-2.1.6.jar:?] {}     at cpw.mods.cl.ModuleClassLoader.lambda$findClass$15(ModuleClassLoader.java:219) ~[securejarhandler-2.1.6.jar:?] {}     at cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:229) ~[securejarhandler-2.1.6.jar:?] {}     at cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:219) ~[securejarhandler-2.1.6.jar:?] {}     at cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:135) ~[securejarhandler-2.1.6.jar:?] {}     at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?] {}     at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?] {}     at java.lang.ClassLoader.defineClass(ClassLoader.java:1012) ~[?:?] {} -- Overlay render details -- Details:     Overlay name: net.minecraft.client.gui.screens.LoadingOverlay Stacktrace:     at net.minecraft.client.renderer.GameRenderer.m_109093_(GameRenderer.java:1337) ~[client-1.19.3-20221207.122022-srg.jar%23162!/:?] {re:classloading,pl:accesstransformer:B,xf:OptiFine:default}     at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1135) ~[client-1.19.3-20221207.122022-srg.jar%23162!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:713) ~[client-1.19.3-20221207.122022-srg.jar%23162!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.main.Main.m_239872_(Main.java:212) ~[1.19.3.jar:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.main.Main.main(Main.java:51) ~[1.19.3.jar:?] {re:classloading,pl:runtimedistcleaner:A}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}     at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}     at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:27) ~[fmlloader-1.19.3-44.1.8.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.8.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.8.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.8.jar:?] {}     at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) ~[modlauncher-10.0.8.jar:?] {}     at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) ~[modlauncher-10.0.8.jar:?] {}     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.8.jar:?] {}     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.8.jar:?] {}     at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?] {} -- Last reload -- Details:     Reload number: 1     Reload reason: initial     Finished: No     Packs: vanilla  
    • One of the X-Ray mods renders an outline of certain blocks, even when they are hidden. I want to be able to do the same, but restricted by range.   I have been searching the reverse engineered documentation, but still have next to no idea how to achieve this. My best guess so far is to subscribe to the RenderLevelStageEvent event and then iterate through all blocks within range, test if they need to be outlined/highlighted, and then....stuff them into the OutlineBufferSource to be rendered some how?   I am not asking for code (although that would be nice) but just a few hints of the basic process.   Many thanks.
    • 14:54:07: Executing 'runClient --scan'... > Configure project : Fabric Loom: 1.1.8 > Task :compileJava UP-TO-DATE > Task :processResources UP-TO-DATE > Task :classes UP-TO-DATE > Task :compileClientJava NO-SOURCE > Task :processClientResources NO-SOURCE > Task :clientClasses UP-TO-DATE > Task :generateDLIConfig > Task :generateLog4jConfig > Task :generateRemapClasspath > Task :configureLaunch > Task :downloadAssets > Task :configureClientLaunch > Task :runClient FAILED 7 actionable tasks: 5 executed, 2 up-to-date Exception in thread "main" java.lang.ClassNotFoundException: net.fabricmc.loader.impl.launch.knot.KnotClient     at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)     at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)     at java.base/java.lang.Class.forName0(Native Method)     at java.base/java.lang.Class.forName(Class.java:375)     at net.fabricmc.devlaunchinjector.Main.main(Main.java:85) FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':runClient'. > Process 'command 'C:\Users\User\.jdks\corretto-17.0.6\bin\java.exe'' finished with non-zero exit value 1 * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. * Get more help at https://help.gradle.org BUILD FAILED in 2s Publishing a build scan to scans.gradle.com requires accepting the Gradle Terms of Service defined at https://gradle.com/terms-of-service. Do you accept these terms? [yes, no] 
  • Topics

×
×
  • Create New...

Important Information

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