public class NewWorldGenerator implements IWorldGenerator
{
@Override
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
{
switch(world.provider.dimensionId)
{
case -1:
generateInNether(world, random, chunkX * 16, chunkZ * 16);
break;
case 0:
generateInOverworld(world, random, chunkX * 16, chunkZ * 16);
break;
case 1:
generateInEnd(world, random, chunkX * 16, chunkZ * 16);
break;
}
}
private void generateInNether(World world, Random random, int chunkX, int chunkZ)
{
}
private void generateInOverworld(World world, Random random, int chunkX, int chunkZ)
{
if(i = 0; i < 10; i++)
{
int x = chunkX + random.nextInt(16);
int y = random.nextInt(64);
int z = random.nextInt(16);
(new NewWorldGenerator(Main.whatYouCalledYourOreIn public static Block oreRuby,10)).generate(world, random, chunkX, chunkY, chunkZ);
}
}
private void generateInEnd(World world, Random random, int chunkX, int chunkZ)
{
}
}
public class NewWorldGenerator implements IWorldGenerator
{
@Override
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
{
switch(world.provider.dimensionId)
{
case -1:
generateInNether(world, random, chunkX * 16, chunkZ * 16);
break;
case 0:
generateInOverworld(world, random, chunkX * 16, chunkZ * 16);
break;
case 1:
generateInEnd(world, random, chunkX * 16, chunkZ * 16);
break;
}
}
private void generateInNether(World world, Random random, int chunkX, int chunkZ)
{
}
private void generateInOverworld(World world, Random random, int chunkX, int chunkZ)
{
if(i = 0; i < 10; i++)
{
int x = chunkX + random.nextInt(16);
int y = random.nextInt(64);
int z = random.nextInt(16);
(new NewWorldGenerator(Main.whatYouCalledYourOreIn public static Block oreRuby,10)).generate(world, random, chunkX, chunkY, chunkZ);
}
}
private void generateInEnd(World world, Random random, int chunkX, int chunkZ)
{
}
}
If your a modded city builder and would finally love to add lots of decoration traffic signals to your world, check out my ModernDeco Mod! The last version had 15 different types of traffic signals and the next version will have even more!
That shortcut is used to help fix simple errors (for example, importing something that needs to be imported). If there are no errors, than that shortcut won't do anything.
Description Resource Path Location Type
Project 'Minecraft' is missing required library: 'C:\Users\Benjamin\.gradle\caches\minecraft\net\minecraftforge\forge\1.7.10-10.13.0.1180\start' Minecraft Build path Build Path Problem
Project 'Minecraft' is missing required library: 'C:\Users\Benjamin\Desktop\forge-1.7.10-10.13.0.1180-src\unresolved dependency - forgeBin 1.7.10-10.13.0.1180' Minecraft Build path Build Path Problem
The project cannot be built until build path errors are resolved Minecraft Unknown Java Problem
Update your version of Forge.
The shortcut won't be able to fix these complex errors by the way.
public class NewWorldGenerator implements IWorldGenerator
{
@Override
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
{
switch(world.provider.dimensionId)
{
case -1:
generateInNether(world, random, chunkX * 16, chunkZ * 16);
break;
case 0:
generateInOverworld(world, random, chunkX * 16, chunkZ * 16);
break;
case 1:
generateInEnd(world, random, chunkX * 16, chunkZ * 16);
break;
}
}
private void generateInNether(World world, Random random, int chunkX, int chunkZ)
{
}
private void generateInOverworld(World world, Random random, int chunkX, int chunkZ)
{
if(i = 0; i < 10; i++)
{
int x = chunkX + random.nextInt(16);
int y = random.nextInt(64);
int z = random.nextInt(16);
(new NewWorldGenerator(Main.whatYouCalledYourOreIn public static Block oreRuby,10)).generate(world, random, chunkX, chunkY, chunkZ);
}
}
private void generateInEnd(World world, Random random, int chunkX, int chunkZ)
{
}
}
public class NewWorldGenerator implements IWorldGenerator
{
@Override
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
{
switch(world.provider.dimensionId)
{
case -1:
generateInNether(world, random, chunkX * 16, chunkZ * 16);
break;
case 0:
generateInOverworld(world, random, chunkX * 16, chunkZ * 16);
break;
case 1:
generateInEnd(world, random, chunkX * 16, chunkZ * 16);
break;
}
}
private void generateInNether(World world, Random random, int chunkX, int chunkZ)
{
}
private void generateInOverworld(World world, Random random, int chunkX, int chunkZ)
{
if(i = 0; i < 10; i++)
{
int x = chunkX + random.nextInt(16);
int y = random.nextInt(64);
int z = random.nextInt(16);
(new NewWorldGenerator(Main.whatYouCalledYourOreIn public static Block oreRuby,10)).generate(world, random, chunkX, chunkY, chunkZ);
}
}
private void generateInEnd(World world, Random random, int chunkX, int chunkZ)
{
}
}
Change Main.whatYouCalledYourOreIn to wherever initialized your items (for example, if you items are located in your Main mod file, it would be (modfilename.yourItemName).
Thank you for this tutorial! It was very easy to follow and I could work on the project I wanted to work on first, unlike a video. One thing I was confused about was how to make the mod files into a mod jar. I have tried exporting the file, but no luck. Some other tutorials mention MCP, and I have downloaded the files, but I have no idea which directory I should put the source files in. Could you make a tutorial about this process?
@EventHandler
public preInit(FMLPreInitializationEvent preEvent)
@EventHandler
public init(FMLInitializationEvent event)
@EventHandler
public postInit(FMLPostInitializationEvent postEvent)
Return type for method is missing
You forgot to add "void".
For example:
@EventHandler
public void init(FMLInitializationEvent event)
{
}
you can search up either mrcrayfish or Neal gaming they are both great and easy to follow tutorials
Neale Gaming has some pretty nice tutorials. He does a good job of explaining it out.
I'm actually up to the ores only because of all the things I'm making
package com.craftxbox.generation;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkProvider;
import cpw.mods.fml.common.IWorldGenerator;
public class NewWorldGenerator implements IWorldGenerator
{
@Override
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
{
switch(world.provider.dimensionId)
{
case -1:
generateInNether(world, random, chunkX * 16, chunkZ * 16);
break;
case 0:
generateInOverworld(world, random, chunkX * 16, chunkZ * 16);
break;
case 1:
generateInEnd(world, random, chunkX * 16, chunkZ * 16);
break;
}
}
private void generateInNether(World world, Random random, int chunkX, int chunkZ)
{
}
private void generateInOverworld(World world, Random random, int chunkX, int chunkZ)
{
if(i = 0; i < 10; i++)
{
int x = chunkX + random.nextInt(16);
int y = random.nextInt(64);
int z = random.nextInt(16);
(new NewWorldGenerator(Main.whatYouCalledYourOreIn public static Block oreRuby,10)).generate(world, random, chunkX, chunkY, chunkZ);
}
}
private void generateInEnd(World world, Random random, int chunkX, int chunkZ)
{
}
}
What is your problem?
(new NewWorldGenerator(Main.whatYouCalledYourOreIn public static Block oreRuby,10)).generate(world, random, chunkX, chunkY, chunkZ);
If your a modded city builder and would finally love to add lots of decoration traffic signals to your world, check out my ModernDeco Mod! The last version had 15 different types of traffic signals and the next version will have even more!
Are you on Windows, or Mac?
Ok.
That shortcut is used to help fix simple errors (for example, importing something that needs to be imported). If there are no errors, than that shortcut won't do anything.
Update your version of Forge.
The shortcut won't be able to fix these complex errors by the way.
That would be your problem
Im getting errors at
if(i = 0; i < 10; i++)
and
(new NewWorldGenerator(Main.whatYouCalledYourOreIn public static Block oreRuby,10)).generate(world, random, chunkX, chunkY, chunkZ)
Source code below
package com.craftxbox.generation;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkProvider;
import cpw.mods.fml.common.IWorldGenerator;
public class NewWorldGenerator implements IWorldGenerator
{
@Override
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
{
switch(world.provider.dimensionId)
{
case -1:
generateInNether(world, random, chunkX * 16, chunkZ * 16);
break;
case 0:
generateInOverworld(world, random, chunkX * 16, chunkZ * 16);
break;
case 1:
generateInEnd(world, random, chunkX * 16, chunkZ * 16);
break;
}
}
private void generateInNether(World world, Random random, int chunkX, int chunkZ)
{
}
private void generateInOverworld(World world, Random random, int chunkX, int chunkZ)
{
if(i = 0; i < 10; i++)
{
int x = chunkX + random.nextInt(16);
int y = random.nextInt(64);
int z = random.nextInt(16);
(new NewWorldGenerator(Main.whatYouCalledYourOreIn public static Block oreRuby,10)).generate(world, random, chunkX, chunkY, chunkZ);
}
}
private void generateInEnd(World world, Random random, int chunkX, int chunkZ)
{
}
}
Change Main.whatYouCalledYourOreIn to wherever initialized your items (for example, if you items are located in your Main mod file, it would be (modfilename.yourItemName).
Thanks for the tutorial again!
Signed, me.
If your forge folder is on your desktop, type in cmd: cd
Then click and drag your forge folder(the one with the bin, build, gradlew, etc. inside) into cmd and hit enter...
That will bring cmd to look in your forge folder for gradlew, if you didnt do this, then cmd wouldnt be able to find gradlew.bat...
"cd" just means Change Directory
So basically youre just "Changing the directory to look in" to your forge/mcp folder