Can you please make a toturial how to add random generate ore's.
Because i made an ore but i dont know how to random generate the ore at level 32 and lower.
Edit: Nevermind, found it out myself.
Hehe, cool.
Quote from Blackbabby »
I just want to change the recipe for a hoe and make it to Iron Iron Iron
Stick
Stick
The iron I hope could be replaced with wood,stone,gold,or diamond
If this is too hard then sorry cuz im a noob who is still in grade school
Have a look at how a recipe is made in the block and recipe tutorial, you can find the link in the OP.
Quote from funbob10 »
Quote from Blackbabby »
I just want to change the recipe for a hoe and make it to Iron Iron Iron
Stick
Stick
The iron I hope could be replaced with wood,stone,gold,or diamond
If this is too hard then sorry cuz im a noob who is still in grade school
Dont worry i'm in grade school to, this is easy. wihtout me looking at the code you would find the recipe, most likey in crafting manager.java, locate the recipe and change it to
addrecipe(new ItemStack(Item.hoe, 1), new Object[] {
"###", " X ", " X ", Character.valueOf('#'), Item.ingotIron, Character.vauleOf('X'), Item.stick
});
the only problem with that is it interferes with the pickaxe recipe
"###", Character.valueOf('#'), Block.planks
^
sources\minecraft\net\minecraft\src\CraftingManager.java:148: ';' expected
addRecipe(new ItemStack(Block.wheat, 1), new Object[] {
^
sources\minecraft\net\minecraft\src\CraftingManager.java:148: ';' expected
addRecipe(new ItemStack(Block.wheat, 1), new Object[] {
^
sources\minecraft\net\minecraft\src\CraftingManager.java:148: not a statement
addRecipe(new ItemStack(Block.wheat, 1), new Object[] {
^
sources\minecraft\net\minecraft\src\CraftingManager.java:148: ';' expected
addRecipe(new ItemStack(Block.wheat, 1), new Object[] {
^
sources\minecraft\net\minecraft\src\CraftingManager.java:149: not a statement
"###", "###", "###", Character.valueOf('#'), Block.wheat
^
sources\minecraft\net\minecraft\src\CraftingManager.java:149: ';' expected
"###", "###", "###", Character.valueOf('#'), Block.wheat
^
sources\minecraft\net\minecraft\src\CraftingManager.java:149: ';' expected
"###", "###", "###", Character.valueOf('#'), Block.wheat
^
sources\minecraft\net\minecraft\src\CraftingManager.java:149: not a statement
"###", "###", "###", Character.valueOf('#'), Block.wheat
^
sources\minecraft\net\minecraft\src\CraftingManager.java:149: ';' expected
"###", "###", "###", Character.valueOf('#'), Block.wheat
^
sources\minecraft\net\minecraft\src\CraftingManager.java:150: illegal start of expression
});
^
How to fix those :ohmy.gif:
Where the ^ is nothing wrong?
You missed a semi colon (:wink.gif: somewhere, probably this line: ""###", Character.valueOf('#'), Block.planks" or the one above it. All lines must end with a semi-colon.
Why upgrade it?Just to play it?Or is that a way to convert a mod into Beta?
well if you dont you cant play online on beta servers and you dont get new updates for the game. for me i have alpha decompiled and running in eclipse and i have beta installed so i can play online
Thanks for your help funbob in answering those questions =) It is greatly appreciated.
"###", Character.valueOf('#'), Block.planks
^
sources\minecraft\net\minecraft\src\CraftingManager.java:148: ';' expected
addRecipe(new ItemStack(Block.wheat, 1), new Object[] {
^
sources\minecraft\net\minecraft\src\CraftingManager.java:148: ';' expected
addRecipe(new ItemStack(Block.wheat, 1), new Object[] {
^
sources\minecraft\net\minecraft\src\CraftingManager.java:148: not a statement
addRecipe(new ItemStack(Block.wheat, 1), new Object[] {
^
sources\minecraft\net\minecraft\src\CraftingManager.java:148: ';' expected
addRecipe(new ItemStack(Block.wheat, 1), new Object[] {
^
sources\minecraft\net\minecraft\src\CraftingManager.java:149: not a statement
"###", "###", "###", Character.valueOf('#'), Block.wheat
^
sources\minecraft\net\minecraft\src\CraftingManager.java:149: ';' expected
"###", "###", "###", Character.valueOf('#'), Block.wheat
^
sources\minecraft\net\minecraft\src\CraftingManager.java:149: ';' expected
"###", "###", "###", Character.valueOf('#'), Block.wheat
^
sources\minecraft\net\minecraft\src\CraftingManager.java:149: not a statement
"###", "###", "###", Character.valueOf('#'), Block.wheat
^
sources\minecraft\net\minecraft\src\CraftingManager.java:149: ';' expected
"###", "###", "###", Character.valueOf('#'), Block.wheat
^
sources\minecraft\net\minecraft\src\CraftingManager.java:150: illegal start of expression
});
^
How to fix those :ohmy.gif:
Where the ^ is nothing wrong?
You missed a semi colon (:wink.gif: somewhere, probably this line: ""###", Character.valueOf('#'), Block.planks" or the one above it. All lines must end with a semi-colon.
Hey yeah i musta took that out :\ will try soon! Thanks :biggrin.gif:
So i wanted to make a new crafting recipe :
addRecipe(new ItemStack(Block.glass, 4), new Object[] {
"###", Character.valueOf('#'), Item.sand
This in Crafting Manager .
Then I checked for faults , 0 .
So I test_game bat but the bat load and the bat is gone , with cmd a Error come :
path set.
Error occured during initalization of VM
could not reserve enough space for object heap
What does that mean , i from german sorry
When I obfuscated every thing is good , but when i put the new class file (CraftingManager before) in the minecraft.jar (alpha) and start the world , it crashed
I hope you can help me
It means that there is not enough memory to be able to launch minecraft. Make sure you have around 1GB free memory before starting minecraft - if you still have problems it might be due to an infinite loop that you have created.
Hey simo, are this making blocks is easy :biggrin.gif:
I was making another one and i get an error...,
sources\minecraft\net\minecraft\src\PlayerHelper.java:253: illegal start of expression
if(!iterator.hasNext()) goto _L2; else goto _L1
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:253: not a statement
if(!iterator.hasNext()) goto _L2; else goto _L1
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:253: 'else' without 'if'
if(!iterator.hasNext()) goto _L2; else goto _L1
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:253: illegal start of expression
if(!iterator.hasNext()) goto _L2; else goto _L1
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:253: ';' expected
if(!iterator.hasNext()) goto _L2; else goto _L1
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:255: not a statement
String s5;
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:255: ';' expected
String s5;
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:255: not a statement
String s5;
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:261: illegal start of expression
if((new StringBuilder()).append(s5).append(as1[k3]).toString().length() <= 98 || k3 < as1.length) goto _L3; else goto _L2
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:261: not a statement
if((new StringBuilder()).append(s5).append(as1[k3]).toString().length() <= 98 || k3 < as1.length) goto _L3; else goto _L2
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:261: 'else' without 'if'
if((new StringBuilder()).append(s5).append(as1[k3]).toString().length() <= 98 || k3 < as1.length) goto _L3; else goto _L2
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:261: illegal start of expression
if((new StringBuilder()).append(s5).append(as1[k3]).toString().length() <= 98 || k3 < as1.length) goto _L3; else goto _L2
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:261: ';' expected
if((new StringBuilder()).append(s5).append(as1[k3]).toString().length() <= 98 || k3 < as1.length) goto _L3; else goto _L2
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:271: illegal start of expression
if(true) goto _L5; else goto _L4
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:271: not a statement
if(true) goto _L5; else goto _L4
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:271: 'else' without 'if'
if(true) goto _L5; else goto _L4
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:271: illegal start of expression
if(true) goto _L5; else goto _L4
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:271: ';' expected
if(true) goto _L5; else goto _L4
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:274: not a statement
as1;
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:275: not a statement
k3;
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:276: ';' expected
JVM INSTR dup2_x1 ;
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:276: not a statement
JVM INSTR dup2_x1 ;
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:277: ';' expected
JVM INSTR aaload ;
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:277: not a statement
JVM INSTR aaload ;
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:279: not a statement
s5;
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:281: not a statement
", ";
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:284: ';' expected
JVM INSTR aastore ;
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:284: not a statement
JVM INSTR aastore ;
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:285: illegal start of expression
goto _L5
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:286: ';' expected
_L2:
^
But i didnt even edit playerhelper?
This means that the file wasn't de-compiled correctly, this is due to some kinds of loops - I believe while and do while loops. You will need to manually fix it.
Hey simo, are this making blocks is easy :biggrin.gif:
I was making another one and i get an error...,
sources\minecraft\net\minecraft\src\PlayerHelper.java:253: illegal start of expression
if(!iterator.hasNext()) goto _L2; else goto _L1
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:253: not a statement
if(!iterator.hasNext()) goto _L2; else goto _L1
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:253: 'else' without 'if'
if(!iterator.hasNext()) goto _L2; else goto _L1
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:253: illegal start of expression
if(!iterator.hasNext()) goto _L2; else goto _L1
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:253: ';' expected
if(!iterator.hasNext()) goto _L2; else goto _L1
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:255: not a statement
String s5;
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:255: ';' expected
String s5;
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:255: not a statement
String s5;
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:261: illegal start of expression
if((new StringBuilder()).append(s5).append(as1[k3]).toString().length() <= 98 || k3 < as1.length) goto _L3; else goto _L2
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:261: not a statement
if((new StringBuilder()).append(s5).append(as1[k3]).toString().length() <= 98 || k3 < as1.length) goto _L3; else goto _L2
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:261: 'else' without 'if'
if((new StringBuilder()).append(s5).append(as1[k3]).toString().length() <= 98 || k3 < as1.length) goto _L3; else goto _L2
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:261: illegal start of expression
if((new StringBuilder()).append(s5).append(as1[k3]).toString().length() <= 98 || k3 < as1.length) goto _L3; else goto _L2
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:261: ';' expected
if((new StringBuilder()).append(s5).append(as1[k3]).toString().length() <= 98 || k3 < as1.length) goto _L3; else goto _L2
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:271: illegal start of expression
if(true) goto _L5; else goto _L4
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:271: not a statement
if(true) goto _L5; else goto _L4
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:271: 'else' without 'if'
if(true) goto _L5; else goto _L4
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:271: illegal start of expression
if(true) goto _L5; else goto _L4
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:271: ';' expected
if(true) goto _L5; else goto _L4
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:274: not a statement
as1;
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:275: not a statement
k3;
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:276: ';' expected
JVM INSTR dup2_x1 ;
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:276: not a statement
JVM INSTR dup2_x1 ;
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:277: ';' expected
JVM INSTR aaload ;
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:277: not a statement
JVM INSTR aaload ;
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:279: not a statement
s5;
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:281: not a statement
", ";
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:284: ';' expected
JVM INSTR aastore ;
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:284: not a statement
JVM INSTR aastore ;
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:285: illegal start of expression
goto _L5
^
sources\minecraft\net\minecraft\src\PlayerHelper.java:286: ';' expected
_L2:
^
But i didnt even edit playerhelper?
This means that the file wasn't de-compiled correctly, this is due to some kinds of loops - I believe while and do while loops. You will need to manually fix it.
Okay i will delete the folder and decompile again.
Hey what happened to that armour tutorial u were gonna do? And what about making like a bigger chest, or inventory smaller or something or is that to hard?
Hey what happened to that armour tutorial u were gonna do? And what about making like a bigger chest, or inventory smaller or something or is that to hard?
I have been away the past few days, haven't really thought much about new tutorials. But yeah I will probably write one once I release V1.6 of my mod.
Bigger chest/inventory are reasonably easy - but - aren't generic they are specific things, so far all the tutorials have been about generic things and that's the way I want to keep them for now.
Awww fk... I tryed decompiling again and it STILL GETS THE ERROR :sad.gif: how do i edit it manuelly?
Yeah it will keep happening because the decompiler doesn't know about while and do loops therefore it can't convert them to java and you are left with the bytecode. You will need to find a different decompiler for it or manually change it.
The reobf and so work (if the file is no new file)
But when i put the class in the .jar and start the game it crashed still <-<
Umm... I am not really sure without seeing what you are doing.. Does test_game.bat work? If that doesn't work then classes which have been obfuscated again won't work.
So I downloaded those programs, I have an extra jar, I have a minecraft version 1.2.6, on the wiki it says that the MCP isn't updated to beta yet so yeah.
I figured I'd test all this stuff without actually editing anything, but I got errors?
No edits no anything, these are the errors I got when going trough the de/compiling process:
[parsing started sources\minecraft\net\minecraft\src\ChunkProviderGenerate.java]
sources\minecraft\net\minecraft\src\ChunkProviderGenerate.java:29: not a statement
exception2;
^
[parsing started sources\minecraft\net\minecraft\src\GuiEditSign.java]
sources\minecraft\net\minecraft\src\GuiEditSign.java:29: not a statement
exception2;
^
and probably all the 'renderfallingsand errors there are.
*Example*
sources\minecraft\net\minecraft\src\RenderFallingSand.java:59: not a statement
field_197_d;
^
Like I said, I haven't edited anything at all, I've tried the beta and the 1.2.6 versions, I don't have a lot of java experience.
?
Hehe, cool.
Have a look at how a recipe is made in the block and recipe tutorial, you can find the link in the OP.
Thanks for that.
You missed a semi colon (:wink.gif: somewhere, probably this line: ""###", Character.valueOf('#'), Block.planks" or the one above it. All lines must end with a semi-colon.
Thanks for your help funbob in answering those questions =) It is greatly appreciated.
Hey yeah i musta took that out :\ will try soon! Thanks :biggrin.gif:
It means that there is not enough memory to be able to launch minecraft. Make sure you have around 1GB free memory before starting minecraft - if you still have problems it might be due to an infinite loop that you have created.
I was making another one and i get an error...,
But i didnt even edit playerhelper?
This means that the file wasn't de-compiled correctly, this is due to some kinds of loops - I believe while and do while loops. You will need to manually fix it.
Goodluck
Okay i will delete the folder and decompile again.
I have been away the past few days, haven't really thought much about new tutorials. But yeah I will probably write one once I release V1.6 of my mod.
Bigger chest/inventory are reasonably easy - but - aren't generic they are specific things, so far all the tutorials have been about generic things and that's the way I want to keep them for now.
Yeah that's defiantly possible. Make sure that the class files were all compiled by checking the ./temp/minecraft directory.
Yeah it will keep happening because the decompiler doesn't know about while and do loops therefore it can't convert them to java and you are left with the bytecode. You will need to find a different decompiler for it or manually change it.
Or java helper?
Umm... I am not really sure without seeing what you are doing.. Does test_game.bat work? If that doesn't work then classes which have been obfuscated again won't work.
PlayerHelper.class is not a standard class and is part of the single player command mod. It is not required for MCP..
I figured I'd test all this stuff without actually editing anything, but I got errors?
No edits no anything, these are the errors I got when going trough the de/compiling process:
and probably all the 'renderfallingsand errors there are.
*Example*
Like I said, I haven't edited anything at all, I've tried the beta and the 1.2.6 versions, I don't have a lot of java experience.
?
~