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

Okay so when I start my game everything loads good with FML, the only problem is when I create a world to see if the ore gen is working, there is no crash it just freezes and the console says:

 

 

"The state engine was in incorrect state SERVER_STARTING and forced into state SERVER_STOPPED. Errors may have been discarded."

 

 

This is where I register the world (inside my main mod file)

 

 

@EventHandler

public void preInit(FMLPreInitializationEvent event)

{

proxy.preInit(event);

logger = event.getModLog();

GameRegistry.registerWorldGenerator(new UtopiaWorldGenerator(), 3);

}

 

 

 

 

Here is the UtopiaWorldGenerator file:

 

 

package com.utopia.world;

 

import java.util.Random;

 

import com.utopia.init.UtopiaBlocks;

 

import net.minecraft.block.state.IBlockState;

import net.minecraft.util.math.BlockPos;

import net.minecraft.world.World;

import net.minecraft.world.chunk.IChunkGenerator;

import net.minecraft.world.chunk.IChunkProvider;

import net.minecraft.world.gen.feature.WorldGenMinable;

import net.minecraftforge.fml.common.IWorldGenerator;

 

public class UtopiaWorldGenerator implements IWorldGenerator

{

 

@Override

public void generate(Random random, int chunkX, int chunkZ, World world, IChunkGenerator chunkGenerator, IChunkProvider chunkProvider)

{

if (world.provider.getDimension() == 0)

 

{ // Overworld

generateOverworld(random, chunkX, chunkZ, world, chunkGenerator, chunkProvider);

}

}

 

private void generateOverworld(Random random, int chunkX, int chunkZ, World world, IChunkGenerator chunkGenerator, IChunkProvider chunkProvider)

{

generateOre(UtopiaBlocks.obsidian_ore.getDefaultState(), world, random, chunkX * 16, chunkZ * 16, 1, 16, 4 + random.nextInt(4), 1);

}

 

 

private void generateOre(IBlockState ore, World world, Random random, int x, int z, int minY, int maxY, int size, int chances)

{

int deltaY = maxY - minY;

 

for (int i = 0; i < chances; i++)

{

BlockPos pos = new BlockPos(x + random.nextInt(16), minY + random.nextInt(deltaY), z + random.nextInt(16));

 

WorldGenMinable generator = new WorldGenMinable(ore, size);

generator.generate(world, random, pos);

}

}

}

 

 

  • Author

"The state engine was in incorrect state SERVER_STARTING and forced into state SERVER_STOPPED. Errors may have been discarded."

 

We need that said error, look in your run folder>crashreports.

 

That was the problem tho there where no crash reports being made, I have since fixed the issue and I am closing this post now, thank you for the offer to help tho!

Guest
This topic is now closed to further replies.

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.