I have made armour and the game works but it cant find the armor nets unless I automaticly put them in the jar is there a way that it can be done in the code or can the armor picture run out of my mod folder it the mods folder? Please help
Does anyone know how to have more than one ore generated in the world, because when I fix it, it puts a one in front of the GenerateSurface.
I don't know how to fix it.
sorry
change this:
public String getVersion;
{
return "1.0.0";
}
to:
public String getVersion()
{
return "1.0.0";
}
i don't know what you're saying either.
What I am saying is:
public void GenerateSurface1(World world, Random rand, int chunkX, int chunkZ)
{
for(int i = 0; i < 15; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(100);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(CopperOre.blockID, 12)).generate(world, rand, randPosX , randPosY , randPosZ );
}
}
Is that it puts a one in front of the GenerateSurface and changes it to a GenerateSurface1 when I am trying to have more than one ore in the world.
you put all of them into one GenerateSurface funtion
so it would look like this: publicvoid GenerateSurface1(World world, Random rand, int chunkX, int chunkZ) { for(int i = 0; i < 15; i++) { int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(100); int randPosZ = chunkZ + rand.nextInt(16); (new WorldGenMinable(CopperOre.blockID, 12)).generate(world, rand, randPosX , randPosY , randPosZ ); } for(int i = 0; i < 15; i++) { int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(100); int randPosZ = chunkZ + rand.nextInt(16); (new WorldGenMinable(someOtherOre.blockID, 12)).generate(world, rand, randPosX , randPosY , randPosZ ); }
you put all of them into one GenerateSurface funtion
so it would look like this: publicvoid GenerateSurface1(World world, Random rand, int chunkX, int chunkZ) { for(int i = 0; i < 15; i++) { int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(100); int randPosZ = chunkZ + rand.nextInt(16); (new WorldGenMinable(CopperOre.blockID, 12)).generate(world, rand, randPosX , randPosY , randPosZ ); } for(int i = 0; i < 15; i++) { int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(100); int randPosZ = chunkZ + rand.nextInt(16); (new WorldGenMinable(someOtherOre.blockID, 12)).generate(world, rand, randPosX , randPosY , randPosZ ); }
sorry once again i fixed the errors again so nvm about that last post
i got no errors but if i install any mod with my mod minecraft crashes it gives this erorr report.
java.lang.ArrayIndexOutOfBoundsException: 800
at ModLoader.initStats(ModLoader.java:925)
at ModLoader.init(ModLoader.java:909)
at ModLoader.addAllRenderers(ModLoader.java:186)
at aho.<init>(aho.java:79)
at aho.<clinit>(aho.java:9)
at net.minecraft.client.Minecraft.a(SourceFile:267)
at net.minecraft.client.Minecraft.run(SourceFile:650)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 94e64240 ----------
sorry once again i fixed the errors again so nvm about that last post
i got no errors but if i install any mod with my mod minecraft crashes it gives this erorr report.
java.lang.ArrayIndexOutOfBoundsException: 800
at ModLoader.initStats(ModLoader.java:925)
at ModLoader.init(ModLoader.java:909)
at ModLoader.addAllRenderers(ModLoader.java:186)
at aho.<init>(aho.java:79)
at aho.<clinit>(aho.java:9)
at net.minecraft.client.Minecraft.a(SourceFile:267)
at net.minecraft.client.Minecraft.run(SourceFile:650)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 94e64240 ----------
why do i want to install mods with it???
because i made my ore hard-to-find.
thx for helping me any way
I, too, am getting this error. I've posted about it in a couple different places. If anyone has any thoughts about what is causing this and/or how to fix it, I would greatly appreciate hearing(reading) them
ADDED:
Thanks to copskid1 and zerieth, I have learned that the problem was in my block id number. They cannot go above 255, mine was set at 505.
eg.
public static final Block potatoBlock = (new BlockPotatoBlock(505, 0)).setHardness(0.5F).setStepSound(Block.soundClothFootstep).setBlockName("potatoBlock");
from what I've seen, most people get this error when they don't delete META-INF
Is there another place besides the original minecraft.jar file that I put into MCP where I would need to delete the META-INF from? I did delete it from the original jar when I put ModLoader in before I decompiled it in MCP
to decompile your MCP WITH modLoader you DO NOT delete META-INF.
i cant test my mod because of this error
how to fix?
First, I DID delete the META-INF and it didn't seem to cause any problem, as I have everything working fine
Second, try to change the block id number you assigned to your block. It looks like you assigned 500 to your block. From what I understand, blocks can have numbers from 124(ish) to 255. (I have read that these numbers may have changed, but it worked for me when I changed my block id number to a number in between.)
so thx a lot now i can use toomanyitems with my mod.
and just if your wondering your block ID can be between 124-256 just no 200 though thats endercrystal.
and i have 1 question when i put 2 ores in 1 mod_Xtintie how do i make it generate around the world with the ore?
public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for(int l = 0; l < 4; l++)
{
int i1 = chunkX + rand.nextInt(16);
int j1 = rand.nextInt(14);
int k1 = chunkZ + rand.nextInt(16);
(new WorldGenMinable(oreXtinite.blockID, 4)).generate(world, rand, i1, j1, k1);
yeah it would be like this: public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ) { for(int l = 0; l < 4; l++) { int i1 = chunkX + rand.nextInt(16); int j1 = rand.nextInt(14); int k1 = chunkZ + rand.nextInt(16); (new WorldGenMinable(oreXtinite.blockID, 4)).generate(world, rand, i1, j1, k1);
} for(int l = 0; l < 4; l++) { int i1 = chunkX + rand.nextInt(16); int j1 = rand.nextInt(14); int k1 = chunkZ + rand.nextInt(16); (new WorldGenMinable(oreXtinite.blockID, 4)).generate(world, rand, i1, j1, k1);
yes but how to can you make your ore only minable by a certan pickaxe
You can't unless you edit base classes or you use something like Minecraft Forge.
The only other option you have is to change the material of the block to iron so that it can't be mined by anything below iron pickaxe.
i don't understand what you're saying
sorry
change this:
public String getVersion;
{
return "1.0.0";
}
to:
public String getVersion()
{
return "1.0.0";
}
i don't know what you're saying either.
What I am saying is:
public void GenerateSurface1(World world, Random rand, int chunkX, int chunkZ)
{
for(int i = 0; i < 15; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(100);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(CopperOre.blockID, 12)).generate(world, rand, randPosX , randPosY , randPosZ );
}
}
Is that it puts a one in front of the GenerateSurface and changes it to a GenerateSurface1 when I am trying to have more than one ore in the world.
so it would look like this:
public void GenerateSurface1(World world, Random rand, int chunkX, int chunkZ)
{
for(int i = 0; i < 15; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(100);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(CopperOre.blockID, 12)).generate(world, rand, randPosX , randPosY , randPosZ );
}
for(int i = 0; i < 15; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(100);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(someOtherOre.blockID, 12)).generate(world, rand, randPosX , randPosY , randPosZ );
}
}
Thank you so much!
but just in time, 1.2 came out lolololol
are you making tutorials for 1.2.3??????
do you have to update mcp to make mods for 1.2.3???
anyway i recompiled( mcp 1.2.3) and got these last errors:
cannot find symbol,
symbol:method RegisterBlock(block)
cannot find symbol:
symbol:method AddName(Block, String)
cannot find symbol:
symbol:method AddName(Item, String)
those are all the errors.
I honestly think theres no caps or something new.
i got no errors but if i install any mod with my mod minecraft crashes it gives this erorr report.
java.lang.ArrayIndexOutOfBoundsException: 800
at ModLoader.initStats(ModLoader.java:925)
at ModLoader.init(ModLoader.java:909)
at ModLoader.addAllRenderers(ModLoader.java:186)
at aho.<init>(aho.java:79)
at aho.<clinit>(aho.java:9)
at net.minecraft.client.Minecraft.a(SourceFile:267)
at net.minecraft.client.Minecraft.run(SourceFile:650)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 94e64240 ----------
why do i want to install mods with it???
because i made my ore hard-to-find.
thx for helping me any way
I, too, am getting this error. I've posted about it in a couple different places. If anyone has any thoughts about what is causing this and/or how to fix it, I would greatly appreciate hearing(reading) them
ADDED:
Thanks to copskid1 and zerieth, I have learned that the problem was in my block id number. They cannot go above 255, mine was set at 505.
eg.
@277772 yours is set to 800
Is there another place besides the original minecraft.jar file that I put into MCP where I would need to delete the META-INF from? I did delete it from the original jar when I put ModLoader in before I decompiled it in MCP
how to fix?
First, I DID delete the META-INF and it didn't seem to cause any problem, as I have everything working fine
Second, try to change the block id number you assigned to your block. It looks like you assigned 500 to your block. From what I understand, blocks can have numbers from 124(ish) to 255. (I have read that these numbers may have changed, but it worked for me when I changed my block id number to a number in between.)
and just if your wondering your block ID can be between 124-256 just no 200 though thats endercrystal.
and i have 1 question when i put 2 ores in 1 mod_Xtintie how do i make it generate around the world with the ore?
public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for(int l = 0; l < 4; l++)
{
int i1 = chunkX + rand.nextInt(16);
int j1 = rand.nextInt(14);
int k1 = chunkZ + rand.nextInt(16);
(new WorldGenMinable(oreXtinite.blockID, 4)).generate(world, rand, i1, j1, k1);
}
}
do i put 2 of these in 1??????
public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for(int l = 0; l < 4; l++)
{
int i1 = chunkX + rand.nextInt(16);
int j1 = rand.nextInt(14);
int k1 = chunkZ + rand.nextInt(16);
(new WorldGenMinable(oreXtinite.blockID, 4)).generate(world, rand, i1, j1, k1);
}
for(int l = 0; l < 4; l++)
{
int i1 = chunkX + rand.nextInt(16);
int j1 = rand.nextInt(14);
int k1 = chunkZ + rand.nextInt(16);
(new WorldGenMinable(oreXtinite.blockID, 4)).generate(world, rand, i1, j1, k1);
}
}
You can't unless you edit base classes or you use something like Minecraft Forge.
The only other option you have is to change the material of the block to iron so that it can't be mined by anything below iron pickaxe.
they went away
it replaces all the contents of the file when it reobfuscates