ModLoader.AddSmelting(myitem1.bc, new gz(ex.c[myitem2.bc]));
And it didn't work, so I sat thinking...until I realized that I was stupid and fixed it:
ModLoader.AddSmelting(item1.shiftedIndex, new ItemStack(item2));
Thanks!
ModLoader.AddSmelting(myitem1.bc, new gz(ex.c[myitem2.bc]));
Is for people who dont have ModLoader with MCP
ModLoader.AddSmelting(item1.shiftedIndex, new ItemStack(item2));
Is for people that DO have ModLoader with MCP
...thanks for clearing that up for me =)
Quote from BlockAfterBlock »
public void GenerateSurface(dt world, Random random, int i, int j)
{
for(int k = 0; k < 10; k++)
{
int l = i + random.nextInt(16);
int i1 = random.nextInt(128);
int j1 = j + random.nextInt(16);
(new eb(BLOCKNAME.bk, 8)).a(world, random, l, i1, j1);
}
}
You dont put the ore name in square brackets! So like this:
public void GenerateSurface(dt world, Random random, int i, int j)
{
for(int k = 0; k < 10; k++)
{
int l = i + random.nextInt(16);
int i1 = random.nextInt(128);
int j1 = j + random.nextInt(16);
(new eb(onyxOre.bk, 8)).a(world, random, l, i1, j1);
}
}
Now it all is fine recompiling. But once i get to generate a new map my minecraft just crashes?.
Is this cause i need to use ModLoader V4?, i use V5 right now
You need ModLoader v5... Are you using mcp with the ModLoader? Because there is a different code for that!
the discussion in the post helped allot thanks
a quick question could do a tutorial about defining a new weapon in your mod_class with a custom image if i knew how to define the weapon with a new image i could follow blahthings tutorial and create the new weapon with mod loader 5 i can figure it out if i just add a good example thanks.
Now don't flame about me not reading because I DO know java, but this is a bit confusing- the basic parts of the code are this right?
public class mod_* extends BaseMod
{
public String Version()
{
return "1.3_01";
/*This is where everything else goes
*/
}
}
EDIT: I need confirmation because the first code box does not have a } and also the codes that people are posting for checking don't have the code above ^^^(...return mcversion....)
Help plz?
It should be like this:
//import codes (if any)
public class mod_* extends BaseMod
{
public String Version()
{
return "1.3_01";
}
//Everything else
}
}
ok theese are my 3 mods can someone tell me whats wrong with them
package net.minecraft.src;
public class mod_diamond_gold extends BaseMod
{
public static Block awesomedirt = new diamond_gold(117,
0).setHardness(5.0F).setResistance(6000.0F).setLightValue(0.9375F).setBlockName("diamond gold ore");
public String Version()
{
return "1.3_01";
}
public mod_diamond_gold()
{
ModLoader.RegisterBlock(diamond_gold);
diamon_gold.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mod/diamond_gold.png");
ModLoader.AddName(diamond_gold, "diamond gold ore");
}
}
package net.minecraft.src;
public class BlockDirt extends Block
{
protected BlockDirt(int i, int j)
{
super(i, j, Material.ground);
}
}
public class mod_WorldGendiamond_gold extends BaseMod
{
public String Version()
{
return "1.3_01";
}
public void GenerateSurface(dt world, Random random, int i, int j)
{
for(int k = 0; k < 10; k++)
{
int l = i + random.nextInt(16);
int i1 = random.nextInt(128);
int j1 = j + random.nextInt(16);
(new eb(blockdiamond_gold.bk, 8)).a(world, random, l, i1, j1);
}
}
}
ok theese are my 3 mods can someone tell me whats wrong with them
package net.minecraft.src;
public class mod_diamond_gold extends BaseMod
{
public static Block awesomedirt = new diamond_gold(117,
0).setHardness(5.0F).setResistance(6000.0F).setLightValue(0.9375F).setBlockName("diamond gold ore");
public String Version()
{
return "1.3_01";
}
public mod_diamond_gold()
{
ModLoader.RegisterBlock(diamond_gold);
diamon_gold.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mod/diamond_gold.png");
ModLoader.AddName(diamond_gold, "diamond gold ore");
}
}
package net.minecraft.src;
public class BlockDirt extends Block
{
protected BlockDirt(int i, int j)
{
super(i, j, Material.ground);
}
}
public class mod_WorldGendiamond_gold extends BaseMod
{
public String Version()
{
return "1.3_01";
}
public void GenerateSurface(dt world, Random random, int i, int j)
{
for(int k = 0; k < 10; k++)
{
int l = i + random.nextInt(16);
int i1 = random.nextInt(128);
int j1 = j + random.nextInt(16);
(new eb(blockdiamond_gold.bk, 8)).a(world, random, l, i1, j1);
}
}
}
Your havoing the mod_diamond_gold say awesomedirt while your block says dirt. you have to have them say the same.
Rollback Post to RevisionRollBack
A signature was supposed to be here but your computer decided not to show it.
ok theese are my 3 mods can someone tell me whats wrong with them
package net.minecraft.src;
public class mod_diamond_gold extends BaseMod
{
public static Block awesomedirt = new diamond_gold(117,
0).setHardness(5.0F).setResistance(6000.0F).setLightValue(0.9375F).setBlockName("diamond gold ore");
public String Version()
{
return "1.3_01";
}
public mod_diamond_gold()
{
ModLoader.RegisterBlock(diamond_gold);
diamon_gold.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mod/diamond_gold.png");
ModLoader.AddName(diamond_gold, "diamond gold ore");
}
}
package net.minecraft.src;
public class BlockDirt extends Block
{
protected BlockDirt(int i, int j)
{
super(i, j, Material.ground);
}
}
public class mod_WorldGendiamond_gold extends BaseMod
{
public String Version()
{
return "1.3_01";
}
public void GenerateSurface(dt world, Random random, int i, int j)
{
for(int k = 0; k < 10; k++)
{
int l = i + random.nextInt(16);
int i1 = random.nextInt(128);
int j1 = j + random.nextInt(16);
(new eb(blockdiamond_gold.bk, 8)).a(world, random, l, i1, j1);
}
}
}
Your havoing the mod_diamond_gold say awesomedirt while your block says dirt. you have to have them say the same.
public void GenerateSurface(World world, Random random, int i, int j)
{
for(int k = 0; k < 10; k++)
{
int l = i + random.nextInt(16);
int i1 = random.nextInt(128);
int j1 = j + random.nextInt(16);
(new eb(energy.blockID, 8)).a(world, random, l, i1, j1);
}
}
public void GenerateSurface(World world, Random random, int i, int j)
{
for(int k = 0; k < 10; k++)
{
int l = i + random.nextInt(16);
int i1 = random.nextInt(128);
int j1 = j + random.nextInt(16);
(new eb(energy.blockID, 8)).a(world, random, l, i1, j1);
}
}
What "eb" stands for ?
And what does ".a(world, random...)" the .a stand for? Generate?
ok theese are my 3 mods can someone tell me whats wrong with them
package net.minecraft.src;
public class mod_diamond_gold extends BaseMod
{
public static Block awesomedirt = new diamond_gold(117,
0).setHardness(5.0F).setResistance(6000.0F).setLightValue(0.9375F).setBlockName("diamond gold ore");
public String Version()
{
return "1.3_01";
}
public mod_diamond_gold()
{
ModLoader.RegisterBlock(diamond_gold);
diamon_gold.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mod/diamond_gold.png");
ModLoader.AddName(diamond_gold, "diamond gold ore");
}
}
package net.minecraft.src;
public class BlockDirt extends Block
{
protected BlockDirt(int i, int j)
{
super(i, j, Material.ground);
}
}
public class mod_WorldGendiamond_gold extends BaseMod
{
public String Version()
{
return "1.3_01";
}
public void GenerateSurface(dt world, Random random, int i, int j)
{
for(int k = 0; k < 10; k++)
{
int l = i + random.nextInt(16);
int i1 = random.nextInt(128);
int j1 = j + random.nextInt(16);
(new eb(blockdiamond_gold.bk, 8)).a(world, random, l, i1, j1);
}
}
}
Your havoing the mod_diamond_gold say awesomedirt while your block says dirt. you have to have them say the same.
can you please point out or bold the parts that are wrong please because i dont know how to code java very well it took me about an hour to get this much done
public void GenerateSurface(World world, Random random, int i, int j)
{
for(int k = 0; k < 10; k++)
{
int l = i + random.nextInt(16);
int i1 = random.nextInt(128);
int j1 = j + random.nextInt(16);
(new eb(energy.blockID, 8)).a(world, random, l, i1, j1);
}
}
What "eb" stands for ?
And what does ".a(world, random...)" the .a stand for? Generate?
Bumb 4 this question!
I would like to know both eb and .a
Also would like to know the numbers to create iron.
EDIT:
After much looking eb.class matched the MCP World.java
public class mod_test extends BaseMod
{
public String Version()
{
return "1.4_01";
}
public void AddRecipes(CraftingManager recipes)
{
recipes.addRecipe(new ItemStack(Block.glass, 4), new Object[] {
"# #", " # ", "# #", Character.valueOf('#'), Block.sand
});
}
I get this when I do recomplie
Compiling Minecraft
Sources\minecraft\net\minecraft\src\mod_test.java:12: reached end of file while parasing
>
So, what do I do? Im assuming theres somthing I need to add to the very end but Im not sure what that is :l. So, anyone care to help me? :smile.gif: Thanks in advance!
EDIT:
I was looking at it and assumed that I needed to add } to the end so I did that. Then I tried recompile agen... Errors :l
*** Minecraft Coder Pack Version 2.11 ***
MCP 2.11 running in C:\Users\Kelly\Documents\Minecraft\Modding\MCP (1.4_01)
Compiling Minecraft
sources\minecraft\net\minecraft\src\mod_test.java:7: cannot find symbol
symbol : class CraftingManager
location: class mod_test
public void AddRecipes(CraftingManager recipes)
^
sources\minecraft\net\minecraft\src\mod_test.java:9: cannot find symbol
symbol : class ItemStack
location: class mod_test
recipes.addRecipe(new ItemStack(Block.glass, 4), new Object[] {
^
sources\minecraft\net\minecraft\src\mod_test.java:9: cannot find symbol
symbol : variable Block
location: class mod_test
recipes.addRecipe(new ItemStack(Block.glass, 4), new Object[] {
^
sources\minecraft\net\minecraft\src\mod_test.java:10: cannot find symbol
symbol : variable Block
location: class mod_test
"# #", " # ", "# #", Character.valueOf('#'), Block.sand
^
4 errors
*** minecraft_server.jar was not found, skipping
=== MCP 2.11 recompile script finished ===
Press any key to continue . . .
public class mod_test extends BaseMod
{
public String Version()
{
return "1.4_01";
}
public void AddRecipes(CraftingManager recipes)
{
recipes.addRecipe(new ItemStack(Block.glass, 4), new Object[] {
"# #", " # ", "# #", Character.valueOf('#'), Block.sand
});
}
I get this when I do recomplie
Compiling Minecraft
Sources\minecraft\net\minecraft\src\mod_test.java:12: reached end of file while parasing
>
So, what do I do? Im assuming theres somthing I need to add to the very end but Im not sure what that is :l. So, anyone care to help me? :smile.gif: Thanks in advance!
EDIT:
I was looking at it and assumed that I needed to add } to the end so I did that. Then I tried recompile agen... Errors :l
*** Minecraft Coder Pack Version 2.11 ***
MCP 2.11 running in C:\Users\Kelly\Documents\Minecraft\Modding\MCP (1.4_01)
Compiling Minecraft
sources\minecraft\net\minecraft\src\mod_test.java:7: cannot find symbol
symbol : class CraftingManager
location: class mod_test
public void AddRecipes(CraftingManager recipes)
^
sources\minecraft\net\minecraft\src\mod_test.java:9: cannot find symbol
symbol : class ItemStack
location: class mod_test
recipes.addRecipe(new ItemStack(Block.glass, 4), new Object[] {
^
sources\minecraft\net\minecraft\src\mod_test.java:9: cannot find symbol
symbol : variable Block
location: class mod_test
recipes.addRecipe(new ItemStack(Block.glass, 4), new Object[] {
^
sources\minecraft\net\minecraft\src\mod_test.java:10: cannot find symbol
symbol : variable Block
location: class mod_test
"# #", " # ", "# #", Character.valueOf('#'), Block.sand
^
4 errors
*** minecraft_server.jar was not found, skipping
=== MCP 2.11 recompile script finished ===
Press any key to continue . . .
I have a mod that is compatible with modloader v5 but I'm trying to get it to work with Minecraft v1.4 and I can't figure out how to use modloader on the new mcp. The previous version had a enable_modloader file and a patch file but this version doesn't seem to have that. Is there something I have to do differently now?
[edit] I figured it out, I had to manually add the modloader files.
I have a mod that is compatible with modloader v5 but I'm trying to get it to work with Minecraft v1.4 and I can't figure out how to use modloader on the new mcp. The previous version had a enable_modloader file and a patch file but this version doesn't seem to have that. Is there something I have to do differently now?
public class mod_test extends BaseMod
{
public String Version()
{
return "1.4_01";
}
public void AddRecipes(CraftingManager recipes)
{
recipes.addRecipe(new ItemStack(Block.glass, 4), new Object[] {
"# #", " # ", "# #", Character.valueOf('#'), Block.sand
});
}
I get this when I do recomplie
Compiling Minecraft
Sources\minecraft\net\minecraft\src\mod_test.java:12: reached end of file while parasing
>
So, what do I do? Im assuming theres somthing I need to add to the very end but Im not sure what that is :l. So, anyone care to help me? :smile.gif: Thanks in advance!
EDIT:
I was looking at it and assumed that I needed to add } to the end so I did that. Then I tried recompile agen... Errors :l
*** Minecraft Coder Pack Version 2.11 ***
MCP 2.11 running in C:\Users\Kelly\Documents\Minecraft\Modding\MCP (1.4_01)
Compiling Minecraft
sources\minecraft\net\minecraft\src\mod_test.java:7: cannot find symbol
symbol : class CraftingManager
location: class mod_test
public void AddRecipes(CraftingManager recipes)
^
sources\minecraft\net\minecraft\src\mod_test.java:9: cannot find symbol
symbol : class ItemStack
location: class mod_test
recipes.addRecipe(new ItemStack(Block.glass, 4), new Object[] {
^
sources\minecraft\net\minecraft\src\mod_test.java:9: cannot find symbol
symbol : variable Block
location: class mod_test
recipes.addRecipe(new ItemStack(Block.glass, 4), new Object[] {
^
sources\minecraft\net\minecraft\src\mod_test.java:10: cannot find symbol
symbol : variable Block
location: class mod_test
"# #", " # ", "# #", Character.valueOf('#'), Block.sand
^
4 errors
*** minecraft_server.jar was not found, skipping
=== MCP 2.11 recompile script finished ===
Press any key to continue . . .
Help please :smile.gif:
Are you using mcp with ModLoader attached ?
Attached? Do you mean did I add ModLoader to it? If so yes
public class mod_test extends BaseMod
{
public String Version()
{
return "1.4_01";
}
public void AddRecipes(CraftingManager recipes)
{
recipes.addRecipe(new ItemStack(Block.glass, 4), new Object[] {
"# #", " # ", "# #", Character.valueOf('#'), Block.sand
});
}
I get this when I do recomplie
Compiling Minecraft
Sources\minecraft\net\minecraft\src\mod_test.java:12: reached end of file while parasing
>
So, what do I do? Im assuming theres somthing I need to add to the very end but Im not sure what that is :l. So, anyone care to help me? :smile.gif: Thanks in advance!
EDIT:
I was looking at it and assumed that I needed to add } to the end so I did that. Then I tried recompile agen... Errors :l
*** Minecraft Coder Pack Version 2.11 ***
MCP 2.11 running in C:\Users\Kelly\Documents\Minecraft\Modding\MCP (1.4_01)
Compiling Minecraft
sources\minecraft\net\minecraft\src\mod_test.java:7: cannot find symbol
symbol : class CraftingManager
location: class mod_test
public void AddRecipes(CraftingManager recipes)
^
sources\minecraft\net\minecraft\src\mod_test.java:9: cannot find symbol
symbol : class ItemStack
location: class mod_test
recipes.addRecipe(new ItemStack(Block.glass, 4), new Object[] {
^
sources\minecraft\net\minecraft\src\mod_test.java:9: cannot find symbol
symbol : variable Block
location: class mod_test
recipes.addRecipe(new ItemStack(Block.glass, 4), new Object[] {
^
sources\minecraft\net\minecraft\src\mod_test.java:10: cannot find symbol
symbol : variable Block
location: class mod_test
"# #", " # ", "# #", Character.valueOf('#'), Block.sand
^
4 errors
*** minecraft_server.jar was not found, skipping
=== MCP 2.11 recompile script finished ===
Press any key to continue . . .
Help please :smile.gif:
Are you using mcp with ModLoader attached ?
Attached? Do you mean did I add ModLoader to it? If so yes
Well it doesnt look like your using mcp properly, you DID decompile the whole bin folder with mcp didnt you?
Is for people who dont have ModLoader with MCP
Is for people that DO have ModLoader with MCP
...thanks for clearing that up for me =)
Yep
You need ModLoader v5... Are you using mcp with the ModLoader? Because there is a different code for that!
If not then are you sure you added the block?
a quick question could do a tutorial about defining a new weapon in your mod_class with a custom image if i knew how to define the weapon with a new image i could follow blahthings tutorial and create the new weapon with mod loader 5 i can figure it out if i just add a good example thanks.
It should be like this:
Also whats the code for adding entity IDs?
Your havoing the mod_diamond_gold say awesomedirt while your block says dirt. you have to have them say the same.
Yes
What "eb" stands for ?
And what does ".a(world, random...)" the .a stand for? Generate?
can you please point out or bold the parts that are wrong please because i dont know how to code java very well it took me about an hour to get this much done
public class mod_dogs+ extends BaseMod
{
return "1.4";
}
public void AddRecipes(CraftingManager recipes)
{
recipes.addRecipe(new ItemStack(Block.wood, 4), new Object[] {
"# #", " # ", "# #", Character.valueOf('#'), Block.sand
});
}
"# #", " # ", "# #", Character.valueOf('#')
});
Bumb 4 this question!
I would like to know both eb and .a
Also would like to know the numbers to create iron.
EDIT:
After much looking eb.class matched the MCP World.java
But something doesn't look right...
I get this when I do recomplie
So, what do I do? Im assuming theres somthing I need to add to the very end but Im not sure what that is :l. So, anyone care to help me? :smile.gif: Thanks in advance!
EDIT:
I was looking at it and assumed that I needed to add } to the end so I did that. Then I tried recompile agen... Errors :l
Help please :smile.gif:
Come visit this YouTube channel for just Minecraft
Are you using mcp with ModLoader attached ?
[edit] I figured it out, I had to manually add the modloader files.
I'm So Meta, Even This Acronym - (#917 XKCD.com)
I dont know, I rarely use mcp
Attached? Do you mean did I add ModLoader to it? If so yes
Come visit this YouTube channel for just Minecraft
Well it doesnt look like your using mcp properly, you DID decompile the whole bin folder with mcp didnt you?