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

  • Author

I'm getting this crash using the overworld (on a village spawn seed):

 

java.lang.ClassCastException: net.minecraft.world.gen.structure.MapGenVillage cannot be cast to orangeVillager61.ImprovedVillagers.generation.IvMapGenVillage
at orangeVillager61.ImprovedVillagers.ChangeVillageGeneration.changeVillageGen(ChangeVillageGeneration.java:14) ~[ChangeVillageGeneration.class:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_8_ChangeVillageGeneration_changeVillageGen_InitMapGenEvent.invoke(.dynamic) ~[?:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:185) [EventBus.class:?]
at net.minecraftforge.event.terraingen.TerrainGen.getModdedMapGen(TerrainGen.java:47) [TerrainGen.class:?]

The fuck are you doing?

 

			IvMapGenVillage newGen = (IvMapGenVillage) event.getNewGen();
		System.out.println("Genning 2");
		event.setNewGen(newGen);

 

NO.

JESUS CHRIST NO.

3mLydMU.png

CREATE A NEW GENERATOR, DON'T GET IT FROM THE EVENT.

Hint: you need to use the

new

operator.

FUCK.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author

Okay, that fixed my bug, but I have another similar bug.

 

java.lang.ClassCastException: orangeVillager61.ImprovedVillagers.generation.IvMapGenVillage cannot be cast to net.minecraft.world.gen.structure.MapGenVillage
at net.minecraft.world.gen.ChunkProviderOverworld.<init>(ChunkProviderOverworld.java:68) ~[ChunkProviderOverworld.class:?]
at net.minecraft.world.WorldType.getChunkGenerator(WorldType.java:178) ~[WorldType.class:?]
at net.minecraft.world.WorldProvider.createChunkGenerator(WorldProvider.java:78) ~[WorldProvider.class:?]
at net.minecraft.world.WorldServer.createChunkProvider(WorldServer.java:894) ~[WorldServer.class:?]
at net.minecraft.world.WorldServer.<init>(WorldServer.java:119) ~[WorldServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:86) ~[integratedServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.init(IntegratedServer.java:124) ~[integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:507) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
public class ChangeVillageGeneration {

@SubscribeEvent
public void changeVillageGen (InitMapGenEvent event) {
	if (event.getType() != null && event.getType() == EventType.VILLAGE){
		IvMapGenVillage newGen = (IvMapGenVillage) new IvMapGenVillage();
		System.out.println("Genning 2");
		event.setNewGen(newGen); - Crashes here I think.
	}

}	

}

Seriously? The error is pretty obvious... The

IvMapGenVillage

should extend

MapGenVillage

.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

  • Author

Okay, so the code runs, but then gives me this crash.

 

net.minecraft.util.ReportedException: Exception preparing structure feature
at net.minecraft.world.WorldServer.initialize(WorldServer.java:934) ~[WorldServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:88) ~[integratedServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.init(IntegratedServer.java:124) ~[integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:507) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
Caused by: java.lang.RuntimeException: StructureStart "orangeVillager61.ImprovedVillagers.generation.IvMapGenVillage$Start" missing ID Mapping, Modder see MapGenStructureIO
at net.minecraft.world.gen.structure.StructureStart.writeStructureComponentsToNBT(StructureStart.java:74) ~[structureStart.class:?]
at net.minecraft.world.gen.structure.MapGenStructure.setStructureStart(MapGenStructure.java:212) ~[MapGenStructure.class:?]
at net.minecraft.world.gen.structure.MapGenStructure.recursiveGenerate(MapGenStructure.java:48) ~[MapGenStructure.class:?]
at net.minecraft.world.gen.MapGenBase.generate(MapGenBase.java:31) ~[MapGenBase.class:?]
at net.minecraft.world.gen.ChunkProviderOverworld.provideChunk(ChunkProviderOverworld.java:228) ~[ChunkProviderOverworld.class:?]
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:150) ~[ChunkProviderServer.class:?]
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:351) ~[World.class:?]
at net.minecraft.world.World.getChunkFromBlockCoords(World.java:343) ~[World.class:?]
at net.minecraft.world.World.getBlockState(World.java:977) ~[World.class:?]
at net.minecraft.world.World.isAirBlock(World.java:268) ~[World.class:?]
at net.minecraft.world.World.getGroundAboveSeaLevel(World.java:241) ~[World.class:?]
at net.minecraft.world.WorldProvider.canCoordinateBeSpawn(WorldProvider.java:87) ~[WorldProvider.class:?]
at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:993) ~[WorldServer.class:?]
at net.minecraft.world.WorldServer.initialize(WorldServer.java:912) ~[WorldServer.class:?]
... 4 more

Again, read your errors.

 

Caused by: java.lang.RuntimeException: StructureStart "orangeVillager61.ImprovedVillagers.generation.IvMapGenVillage$Start" missing ID Mapping, Modder see MapGenStructureIO

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.