I saw that i had 2EMERALD for the Material!
I just edited it and now have
12 Errors...
Error Log File:
*** Minecraft Coder Pack Version 2.11 ***
MCP 2.11 running in C:\Dokumente und Einstellungen\user\Desktop\Ordner-Sammlung\
Minecraft Mod Making Tools\MCP
Compiling Minecraft
sources\minecraft\net\minecraft\src\mod_Yellora.java:16: illegal start of expres
sion
public String Version(),
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:16: ';' expected
public String Version(),
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:48: illegal start of expres
sion
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:48: illegal start of expres
sion
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:48: ';' expected
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:48: ';' expected
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:48: not a statement
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:48: ';' expected
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:48: <identifier> expected
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:48: not a statement
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:48: ';' expected
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:57: reached end of file whi
le parsing
}
^
12 errors
*** minecraft_server.jar was not found, skipping
=== MCP 2.11 recompile script finished ===
Drücken Sie eine beliebige Taste . . .
mod_Yellora Code:
package net.minecraft.src;
public class mod_Yellora extends BaseMod
{
public static final Block YelloraOre = new BlockYelloraOre(97, 0).setHardness(2.0F).setResistance(5.0F).setBlockName("YelloraOre");
public static final Item YelloraItem = new Item(2000).setItemName("YelloraItem");
public static final Item YelloraPick = new ItemPickaxe(2001, EnumToolMaterial.YELLORA).setItemName("YelloraPick");
public static final Item YelloraShovel = new ItemSpade(2002, EnumToolMaterial.YELLORA).setItemName("YelloraShovel");
public static final Item YelloraAxe = new ItemAxe(2003, EnumToolMaterial.YELLORA).setItemName("YelloraAxe");
public static final Item YelloraHoe = new ItemHoe(2004, EnumToolMaterial.YELLORA).setItemName("YelloraHoe");
public static final Item YelloraSword = new ItemSword(2005, EnumToolMaterial.YELLORA).setItemName("YelloraSword");
public mod_Yellora()
{
ModLoader.RegisterBlock(YelloraOre);
public String Version(),
{
return "1.4_01";
}
YelloraOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/YelloraOre/Yelloraore.png");
YelloraItem.iconIndex = ModLoader.addOverride("/gui/items.png", "/YelloraOre/Yelloraitem.png");
emeraldPick.iconIndex = ModLoader.addOverride("/gui/items.png", "/YelloraOre/Yellorapick.png");
emeraldShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/YelloraOre/Yellorashovel.png");
emeraldAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/YelloraOre/Yelloraaxe.png");
emeraldHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/YelloraOre/Yellorahoe.png");
emeraldSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/YelloraOre/Yellorasword.png");
ModLoader.AddName(YelloraOre, "Yellora Ore");
ModLoader.AddName(emeraldPick, "Yellora Pickaxe");
ModLoader.AddName(emeraldShovel, "Yellora Shovel");
ModLoader.AddName(emeraldAxe, "Yellora Axe");
ModLoader.AddName(emeraldHoe, "Yellora Hoe");
ModLoader.AddName(emeraldSword, "Yellora Sword");
ModLoader.AddRecipe(new ItemStack(YelloraPick, 1), new Object[] {
"XXX", " | ", " | ", Character.valueOf('X'), YelloraItem, Character.valueOf('|'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(YelloraShovel, 1), new Object[] {
" X ", " | ", " | ", Character.valueOf('X'), YelloraItem, Character.valueOf('|'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(YelloraAxe, 1), new Object[] {
"XX ", "X| ", " | ", Character.valueOf('X'), YelloraItem, Character.valueOf('|'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(YelloraHoe, 1), new Object[] {
"XX ", " | ", " | ", Character.valueOf('X'), YelloraItem, Character.valueOf('|'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(YelloraSword, 1), new Object[] {
" X ", " X ", " | ", Character.valueOf('X'), YelloraItem, Character.valueOf('|'), Item.stick
});
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_Yellora.YelloraOre.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
Okay, here's what I see wrong:
1. Version is in the wrong spot- it doesn't go inside public mod_yellora() but inside your class declaration
2. You have problems with your recipes- you are telling it to output a YelloraHoe, for example, when the call name you gave it is emeraldHoe. You do this for all the tools. AddName adds it's ingame name, it doesn't change it's coding name.
3. You have brackets around the 20 in your worldgenminable bit, take the brackets off from around the 20.
I saw that i had 2EMERALD for the Material!
I just edited it and now have
12 Errors...
Error Log File:
*** Minecraft Coder Pack Version 2.11 ***
MCP 2.11 running in C:\Dokumente und Einstellungen\user\Desktop\Ordner-Sammlung\
Minecraft Mod Making Tools\MCP
Compiling Minecraft
sources\minecraft\net\minecraft\src\mod_Yellora.java:16: illegal start of expres
sion
public String Version(),
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:16: ';' expected
public String Version(),
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:48: illegal start of expres
sion
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:48: illegal start of expres
sion
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:48: ';' expected
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:48: ';' expected
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:48: not a statement
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:48: ';' expected
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:48: <identifier> expected
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:48: not a statement
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:48: ';' expected
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:57: reached end of file whi
le parsing
}
^
12 errors
*** minecraft_server.jar was not found, skipping
=== MCP 2.11 recompile script finished ===
Drücken Sie eine beliebige Taste . . .
mod_Yellora Code:
package net.minecraft.src;
public class mod_Yellora extends BaseMod
{
public static final Block YelloraOre = new BlockYelloraOre(97, 0).setHardness(2.0F).setResistance(5.0F).setBlockName("YelloraOre");
public static final Item YelloraItem = new Item(2000).setItemName("YelloraItem");
public static final Item YelloraPick = new ItemPickaxe(2001, EnumToolMaterial.YELLORA).setItemName("YelloraPick");
public static final Item YelloraShovel = new ItemSpade(2002, EnumToolMaterial.YELLORA).setItemName("YelloraShovel");
public static final Item YelloraAxe = new ItemAxe(2003, EnumToolMaterial.YELLORA).setItemName("YelloraAxe");
public static final Item YelloraHoe = new ItemHoe(2004, EnumToolMaterial.YELLORA).setItemName("YelloraHoe");
public static final Item YelloraSword = new ItemSword(2005, EnumToolMaterial.YELLORA).setItemName("YelloraSword");
public mod_Yellora()
{
ModLoader.RegisterBlock(YelloraOre);
public String Version(),
{
return "1.4_01";
}
YelloraOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/YelloraOre/Yelloraore.png");
YelloraItem.iconIndex = ModLoader.addOverride("/gui/items.png", "/YelloraOre/Yelloraitem.png");
emeraldPick.iconIndex = ModLoader.addOverride("/gui/items.png", "/YelloraOre/Yellorapick.png");
emeraldShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/YelloraOre/Yellorashovel.png");
emeraldAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/YelloraOre/Yelloraaxe.png");
emeraldHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/YelloraOre/Yellorahoe.png");
emeraldSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/YelloraOre/Yellorasword.png");
ModLoader.AddName(YelloraOre, "Yellora Ore");
ModLoader.AddName(emeraldPick, "Yellora Pickaxe");
ModLoader.AddName(emeraldShovel, "Yellora Shovel");
ModLoader.AddName(emeraldAxe, "Yellora Axe");
ModLoader.AddName(emeraldHoe, "Yellora Hoe");
ModLoader.AddName(emeraldSword, "Yellora Sword");
ModLoader.AddRecipe(new ItemStack(YelloraPick, 1), new Object[] {
"XXX", " | ", " | ", Character.valueOf('X'), YelloraItem, Character.valueOf('|'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(YelloraShovel, 1), new Object[] {
" X ", " | ", " | ", Character.valueOf('X'), YelloraItem, Character.valueOf('|'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(YelloraAxe, 1), new Object[] {
"XX ", "X| ", " | ", Character.valueOf('X'), YelloraItem, Character.valueOf('|'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(YelloraHoe, 1), new Object[] {
"XX ", " | ", " | ", Character.valueOf('X'), YelloraItem, Character.valueOf('|'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(YelloraSword, 1), new Object[] {
" X ", " X ", " | ", Character.valueOf('X'), YelloraItem, Character.valueOf('|'), Item.stick
});
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_Yellora.YelloraOre.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
Okay, here's what I see wrong:
1. Version is in the wrong spot- it doesn't go inside public mod_yellora() but inside your class declaration
2. You have problems with your recipes- you are telling it to output a YelloraHoe, for example, when the call name you gave it is emeraldHoe. You do this for all the tools. AddName adds it's ingame name, it doesn't change it's coding name.
3. You have brackets around the 20 in your worldgenminable bit, take the brackets off from around the 20.
That should fix it all.
That and s/he needs to have import java.util.Random; near the top of the mod_Yellora file
lol. So, you gonna look at my coding failure as well?
package net.minecraft.src;
import java.util.Random;
public class mod_Emeralds extends BaseMod
{
public static final Block emeraldOre = new BlockEmeraldOre(97, 0).setHardness(2F).setResistance(5F).setBlockName("emeraldOre");
public static final Block emeraldBlock = new BlockEmerald(98, 0).setHardness(1.5F).setResistance(5F).setBlockName("emeraldBlock");
public static final Item emeraldItem = new Item(2000).setItemName("emeraldItem");
public static final Item emeraldPick = new ItemPickaxe(2001, EnumToolMaterial.TRUEEMERALD).setItemName("emeraldPick");
public static final Item emeraldShovel = new ItemSpade(2002, EnumToolMaterial.TRUEEMERALD).setItemName("emeraldShovel");
public static final Item emeraldAxe = new ItemAxe(2003, EnumToolMaterial.TRUEEMERALD).setItemName("emeraldAxe");
public static final Item emeraldHoe = new ItemHoe(2004, EnumToolMaterial.TRUEEMERALD).setItemName("emeraldHoe");
public static final Item emeraldSword = new ItemSword(2005, EnumToolMaterial.TRUEEMERALD).setItemName("emeraldSword");
public mod_Emeralds()
{
ModLoader.RegisterBlock(emeraldOre);
ModLoader.RegisterBlock(emeraldBlock);
emeraldOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Shadow0X3/emeraldoreblock.png");
emeraldBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Shadow0X3/emeraldblock.png");
emeraldItem.iconIndex = ModLoader.addOverride("/gui/items.png", "/Shadow0X3/emerald.png");
emeraldPick.iconIndex = ModLoader.addOverride("/gui/items.png", "/Shadow0X3/emeraldpick.png");
emeraldShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/Shadow0X3/emeraldshovel.png");
emeraldAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/Shadow0X3/emeraldaxe.png");
emeraldHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/Shadow0X3/emeraldhoe.png");
emeraldSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/Shadow0X3/emeraldsword.png");
ModLoader.AddName(emeraldOre, "Emerald Ore");
ModLoader.AddName(emeraldBlock, "Emerald Block");
ModLoader.AddName(emeraldItem, "Emerald");
ModLoader.AddName(emeraldPick, "Emerald Pickaxe");
ModLoader.AddName(emeraldShovel, "Emerald Shovel");
ModLoader.AddName(emeraldAxe, "Emerald Axe");
ModLoader.AddName(emeraldHoe, "Emerald Hoe");
ModLoader.AddName(emeraldSword, "Emerald Sword");
ModLoader.AddSmelting(emeraldOre.blockID, new ItemStack(emeraldItem, 1));
ModLoader.AddRecipe(new ItemStack(emeraldItem, 9), new Object[] {
"X", Character.calueOf('X'), emeraldBlock
});
ModLoader.AddRecipe(new ItemStack(emeraldBlock, 1), new Object[] {
"XXX", "XXX", "XXX", Character.valueOf('X'), emeraldItem
});
ModLoader.AddRecipe(new ItemStack(emeraldPick, 1), new Object[] {
"XXX", " | ", " | ", Character.valueOf('X'), emeraldItem, Character.valueOf('|'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(emeraldShovel, 1), new Object[] {
" X ", " | ", " | ", Character.valueOf('X'), emeraldItem, Character.valueOf('|'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(emeraldAxe, 1), new Object[] {
"XX ", "X| ", " | ", Character.valueOf('X'), emeraldItem, Character.valueOf('|'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(emeraldHoe, 1), new Object[] {
"XX ", " | ", " | ", Character.valueOf('X'), emeraldItem, Character.valueOf('|'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(emeraldSword, 1), new Object[] {
" X ", " X ", " | ", Character.valueOf('X'), emeraldItem, Character.valueOf('|'), Item.stick
});
public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for(int i = 0; i < 1; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(32);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_Emeralds.emeraldOre.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
public String Version()
{
return "1.4_01";
}
}
EDIT: Well, dodori, there is supposed to be an opening bracket after your BaseMod extension...
Nothing changed Q.Q.
*** Minecraft Coder Pack Version 2.11 ***
MCP 2.11 running in C:\Dokumente und Einstellungen\user\Desktop\Ordner-Sammlung\
Minecraft Mod Making Tools\MCP
Compiling Minecraft
sources\minecraft\net\minecraft\src\mod_Yellora.java:5: <identifier> expected
java.util.Random;
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:47: illegal start of expres
sion
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:47: illegal start of expres
sion
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:47: ';' expected
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:47: ';' expected
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:47: not a statement
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:47: ';' expected
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:47: <identifier> expected
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:47: not a statement
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:47: ';' expected
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:57: illegal start of expres
sion
public String Version(),
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:57: ';' expected
public String Version(),
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:60: reached end of file whi
le parsing
}
^
13 errors
*** minecraft_server.jar was not found, skipping
=== MCP 2.11 recompile script finished ===
Drücken Sie eine beliebige Taste . . .
*** Minecraft Coder Pack Version 2.11 ***
MCP 2.11 running in C:\Dokumente und Einstellungen\user\Desktop\Ordner-Sammlung\
Minecraft Mod Making Tools\MCP
Compiling Minecraft
sources\minecraft\net\minecraft\src\mod_Yellora.java:5: illegal start of type
import java.util.Random;
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:5: ';' expected
import java.util.Random;
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:5: illegal start of type
import java.util.Random;
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:5: ';' expected
import java.util.Random;
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:5: <identifier> expected
import java.util.Random;
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:47: illegal start of expres
sion
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:47: illegal start of expres
sion
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:47: ';' expected
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:47: ';' expected
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:47: not a statement
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:47: ';' expected
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:47: <identifier> expected
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:47: not a statement
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:47: ';' expected
public void GenerateSurface(World world, Random rand, int chunkX
, int chunkZ)
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:57: illegal start of expres
sion
public String Version(),
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:57: ';' expected
public String Version(),
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:60: reached end of file whi
le parsing
}
^
17 errors
*** minecraft_server.jar was not found, skipping
=== MCP 2.11 recompile script finished ===
Drücken Sie eine beliebige Taste . . .
mod_Yellora:
package net.minecraft.src;
public class mod_Yellora extends BaseMod
{
import java.util.Random;
public static final Block YelloraOre = new BlockYelloraOre(97, 0).setHardness(2.0F).setResistance(5.0F).setBlockName("YelloraOre");
public static final Item YelloraItem = new Item(2000).setItemName("YelloraItem");
public static final Item YelloraPick = new ItemPickaxe(2001, EnumToolMaterial.YELLORA).setItemName("YelloraPick");
public static final Item YelloraShovel = new ItemSpade(2002, EnumToolMaterial.YELLORA).setItemName("YelloraShovel");
public static final Item YelloraAxe = new ItemAxe(2003, EnumToolMaterial.YELLORA).setItemName("YelloraAxe");
public static final Item YelloraHoe = new ItemHoe(2004, EnumToolMaterial.YELLORA).setItemName("YelloraHoe");
public static final Item YelloraSword = new ItemSword(2005, EnumToolMaterial.YELLORA).setItemName("YelloraSword");
public mod_Yellora()
{
ModLoader.RegisterBlock(YelloraOre);
YelloraOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/YelloraOre/Yelloraore.png");
YelloraItem.iconIndex = ModLoader.addOverride("/gui/items.png", "/YelloraOre/Yelloraitem.png");
YelloraPick.iconIndex = ModLoader.addOverride("/gui/items.png", "/YelloraOre/Yellorapick.png");
YelloraShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/YelloraOre/Yellorashovel.png");
YelloraAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/YelloraOre/Yelloraaxe.png");
YelloraHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/YelloraOre/Yellorahoe.png");
YelloraSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/YelloraOre/Yellorasword.png");
ModLoader.AddName(YelloraOre, "Yellora Ore");
ModLoader.AddName(YelloraPick, "Yellora Pickaxe");
ModLoader.AddName(YelloraShovel, "Yellora Shovel");
ModLoader.AddName(YelloraAxe, "Yellora Axe");
ModLoader.AddName(YelloraHoe, "Yellora Hoe");
ModLoader.AddName(YelloraSword, "Yellora Sword");
ModLoader.AddRecipe(new ItemStack(YelloraPick, 1), new Object[] {
"XXX", " | ", " | ", Character.valueOf('X'), YelloraItem, Character.valueOf('|'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(YelloraShovel, 1), new Object[] {
" X ", " | ", " | ", Character.valueOf('X'), YelloraItem, Character.valueOf('|'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(YelloraAxe, 1), new Object[] {
"XX ", "X| ", " | ", Character.valueOf('X'), YelloraItem, Character.valueOf('|'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(YelloraHoe, 1), new Object[] {
"XX ", " | ", " | ", Character.valueOf('X'), YelloraItem, Character.valueOf('|'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(YelloraSword, 1), new Object[] {
" X ", " X ", " | ", Character.valueOf('X'), YelloraItem, Character.valueOf('|'), Item.stick
});
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_Yellora.YelloraOre.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
public String Version(),
{
return "1.4_01";
}
The import goes outside of the first brackets...
package net.minecraft.src;
import java.util.Random;
[...]
EDIT: I FIXED THE STRING VERSION CRAP!!!!!!!!!!!!!!!!!!!! WIN!!!!!!!!!!!!!!!!!!!
package net.minecraft.src;
import java.util.Random;
public class mod_Emeralds extends BaseMod
{
public static final Block emeraldOre = new BlockEmeraldOre(97, 0).setHardness(2F).setResistance(5F).setBlockName("emeraldOre");
public static final Block emeraldBlock = new BlockEmerald(98, 0).setHardness(1.5F).setResistance(5F).setBlockName("emeraldBlock");
public static final Item emeraldItem = new Item(2000).setItemName("emeraldItem");
public static final Item emeraldPick = new ItemPickaxe(2001, EnumToolMaterial.TRUEEMERALD).setItemName("emeraldPick");
public static final Item emeraldShovel = new ItemSpade(2002, EnumToolMaterial.TRUEEMERALD).setItemName("emeraldShovel");
public static final Item emeraldAxe = new ItemAxe(2003, EnumToolMaterial.TRUEEMERALD).setItemName("emeraldAxe");
public static final Item emeraldHoe = new ItemHoe(2004, EnumToolMaterial.TRUEEMERALD).setItemName("emeraldHoe");
public static final Item emeraldSword = new ItemSword(2005, EnumToolMaterial.TRUEEMERALD).setItemName("emeraldSword");
public String Version()
{
return "1.4_01";
}
public mod_Emeralds()
*** Minecraft Coder Pack Version 2.11 ***
MCP 2.11 running in C:\Dokumente und Einstellungen\user\Desktop\Ordner-Sammlung\
Minecraft Mod Making Tools\MCP
Compiling Minecraft
sources\minecraft\net\minecraft\src\mod_Yellora.java:58: ';' expected
public String Version(),
^
1 error
*** minecraft_server.jar was not found, skipping
=== MCP 2.11 recompile script finished ===
Drücken Sie eine beliebige Taste . . .
Put a semicolon back on the end of version and tell me what happens.
*** Minecraft Coder Pack Version 2.11 ***
MCP 2.11 running in C:\Dokumente und Einstellungen\user\Desktop\Ordner-Sammlung\
Minecraft Mod Making Tools\MCP
Compiling Minecraft
sources\minecraft\net\minecraft\src\BlockYelloraOre.java:5: class BlockEmeraldOr
e is public, should be declared in a file named BlockEmeraldOre.java
public class BlockEmeraldOre extends Block
^
sources\minecraft\net\minecraft\src\BlockYelloraOre.java:15: package mod_Emerald
s does not exist
return mod_Emeralds.YelloraItem.shiftedIndex;
^
sources\minecraft\net\minecraft\src\ItemYellora.java:3: cannot find symbol
symbol : constructor Item()
location: class net.minecraft.src.Item
public class ItemYellora extends Item {
^
sources\minecraft\net\minecraft\src\ItemYellora.java:6: call to super must be fi
rst statement in constructor
super(i);
^
C:\Dokumente und Einstellungen\user\Desktop\Ordner-Sammlung\Minecraft Mod Making
Tools\MCP\sources\minecraft\net\minecraft\src\BlockYelloraOre.java:5: class Blo
ckEmeraldOre is public, should be declared in a file named BlockEmeraldOre.java
public class BlockEmeraldOre extends Block
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:6: cannot access net.minecr
aft.src.BlockYelloraOre
bad class file: C:\Dokumente und Einstellungen\user\Desktop\Ordner-Sammlung\Mine
craft Mod Making Tools\MCP\sources\minecraft\net\minecraft\src\BlockYelloraOre.j
ava
file does not contain class net.minecraft.src.BlockYelloraOre
Please remove or make sure it appears in the correct subdirectory of the classpa
th.
public static final Block YelloraOre = new BlockYelloraOre(97, 0).setHardness
(2.0F).setResistance(5.0F).setBlockName("YelloraOre");
^
6 errors
*** minecraft_server.jar was not found, skipping
=== MCP 2.11 recompile script finished ===
Drücken Sie eine beliebige Taste . . .
Thanx :biggrin.gif:!
But then i must wait 3 Hours ._.
4 More Errors
*** Minecraft Coder Pack Version 2.11 ***
MCP 2.11 running in C:\Dokumente und Einstellungen\user\Desktop\Ordner-Sammlung\
Minecraft Mod Making Tools\MCP
Compiling Minecraft
sources\minecraft\net\minecraft\src\ItemYellora.java:3: cannot find symbol
symbol : constructor Item()
location: class net.minecraft.src.Item
public class ItemYellora extends Item {
^
sources\minecraft\net\minecraft\src\ItemYellora.java:6: call to super must be fi
rst statement in constructor
super(i);
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:58: missing method body, or
declare abstract
public String Version();
^
sources\minecraft\net\minecraft\src\mod_Yellora.java:60: return outside method
return "1.4_01";
^
4 errors
*** minecraft_server.jar was not found, skipping
=== MCP 2.11 recompile script finished ===
Drücken Sie eine beliebige Taste . . .
*** Minecraft Coder Pack Version 2.11 ***
MCP 2.11 running in C:\Dokumente und Einstellungen\user\Desktop\Ordner-Sammlung\
Minecraft Mod Making Tools\MCP
Compiling Minecraft
sources\minecraft\net\minecraft\src\ItemYellora.java:3: cannot find symbol
symbol : constructor Item()
location: class net.minecraft.src.Item
public class ItemYellora extends Item {
^
sources\minecraft\net\minecraft\src\ItemYellora.java:6: call to super must be fi
rst statement in constructor
super(i);
^
2 errors
*** minecraft_server.jar was not found, skipping
=== MCP 2.11 recompile script finished ===
Drücken Sie eine beliebige Taste . . .
EDIT: Battery empty or just clueless?
Neither was at the movies lol
I recently found out you don't need the ItemWhatever class- just delete ItemYellora and it should work!
Thanks for the tutorials.
You taught me to use ModLoader within 45 minutes.
I'd give you a diamond, but instead I'll just give you some wheat: :////:, since you can make bread with this.
And bread's good. Thanks.
Also, I was wondering how to make an item like a cake. I am making cheese and I want to be able to place it on a table and be eaten like cake. Do I just copy cake and replace everything with cheese and the correct texture or what?
Okay, here's what I see wrong:
1. Version is in the wrong spot- it doesn't go inside public mod_yellora() but inside your class declaration
2. You have problems with your recipes- you are telling it to output a YelloraHoe, for example, when the call name you gave it is emeraldHoe. You do this for all the tools. AddName adds it's ingame name, it doesn't change it's coding name.
3. You have brackets around the 20 in your worldgenminable bit, take the brackets off from around the 20.
That should fix it all.
That and s/he needs to have import java.util.Random; near the top of the mod_Yellora file
Stairs tut is up, kind of
lol. So, you gonna look at my coding failure as well?
EDIT: Well, dodori, there is supposed to be an opening bracket after your BaseMod extension...
IMPORT java.util.Random;
like so:
The import goes outside of the first brackets...
package net.minecraft.src;
import java.util.Random;
[...]
EDIT: I FIXED THE STRING VERSION CRAP!!!!!!!!!!!!!!!!!!!! WIN!!!!!!!!!!!!!!!!!!!
FINALLY!!!!!!!!!!!!!!!! 3 less errors :smile.gif:
@Shadow: should be fixed:
Put a semicolon back on the end of version and tell me what happens.
It needs you to make the BlockEmeraldOre file.
G2g now be back in 3 hours.
Just a request, can you make a tutorial on applying gravity to a block, kind of like sand and gravel?
I don't think there's a ModLoader function for it but I'll look it up.
iPod Internet :biggrin.gif:
Take off the semicolon
Neither was at the movies lol
I recently found out you don't need the ItemWhatever class- just delete ItemYellora and it should work!
You would probably have to open EntityCow or whatever the file is and add a drop of beef to it, in the same way leather drops. I will look this up.
Thanks glad I could help.
No sorry I think that's a thing handled by normal modding inside the BlockWhatever file, not the mod_Whatever file.