now, when i remove the mentioned bracket.. it throws 5 more errors at me! -ARGH- and i really do not know why... i've practically copied the tutorial code word for word (except image paths) :C
I think you have an extra '}' at the end, remove it, that might help a bit.
Hmm, thats hard. First you'd need to be able to make the block...if only there was some way to manipulate Java, and create our own blocks using Minecrafts coding...hmmm.
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_EmeraldOre.java:18: error: cannot find symbo
l
public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
^
symbol: class Random
location: class mod_EmeraldOre
1 error
1 warning
-------------------------------------------------------------------------------------------------------------------------
mod_EmeraldOre.java
package net.minecraft.src;
public class mod_EmeraldOre extends BaseMod
{
public static Block EmeraldOre = new BlockEmeraldOre(191, 0).setHardness(1.0F).setResistance(6000.0F).setLightValue(1.0F).setBlockName("EmeraldOre");
public String Version()
{
return "1.8.1";
}
public mod_EmeraldOre()
{
ModLoader.RegisterBlock(EmeraldOre);
EmeraldOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/DaSnipeKid/EmeraldOre.png");
ModLoader.AddName(EmeraldOre, "EmeraldOre");
}
public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for(int i = 0; i < 20; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(10);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_EmeraldOre.EmeraldOre.blockID, 16)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
}
BlockEmeraldOre.java
package net.minecraft.src;
import java.util.*;
public class BlockEmeraldOre extends Block
{
public BlockEmeraldOre(int i, int j)
{
super(i, j, Material.ground);
}
public int idDropped(int i, Random random)
{
return mod_EmeraldOre.EmeraldOre.blockID;
}
public int quantityDropped(Random random)
{
return 3;
}
}
The import java.util.*; has to be in your mod_ file.
0
0
I think you have an extra '}' at the end, remove it, that might help a bit.
0
Change to this
You forgot to add the '}' to close off the previous statements.
0
0
Sorry, I forgot internet sarcasm doesn't work. BTW I was stating that, though unofficial, we can already add our own blocks.
0
0
Uhh...no it doesn't.
0
I don't see how you got 'fun' from my post.
0
Still, it is a problem. Also, religion doesn't really fit minecraft, makes it too much like RL. Segregation and whatnot.
0
0
Alright, just e-mailed my dad to find out the name of it. Though it seems like kandrathe already found the game I was thinking of.
Probably is, I didn't pay too much attention when we went, I was just really excited :tongue.gif:
0
0
0
The import java.util.*; has to be in your mod_ file.
0
Again, thanks! This one should be the last one for a while now.