So I started modding in 1.1
I got it working fine, now Im trying to update it to 1.2.3
Look what I did:
- Copied all the java files from the src folder of the 1.1 version
- Prepared the MCP for version 1.2.3
- Pasted my mod files to the 1.2.3
- Tried to recompile and got many errors
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\BlockDplant.java:10: error: cannot find symbol
setTickOnLoad(true);
^
symbol: method setTickOnLoad(boolean)
location: class BlockDplant
src\minecraft\net\minecraft\src\BlockDplant.java:40: error: cannot find symbol
if (j < 0 || j >= world.worldHeight)
^
symbol: variable worldHeight
location: variable world of type World
src\minecraft\net\minecraft\src\BlockDplant.java:74: error: cannot find symbol
if (world.multiplayerWorld)
^
symbol: variable multiplayerWorld
location: variable world of type World
src\minecraft\net\minecraft\src\BlockFogopad.java:50: error: cannot find symbol
if (j < 0 || j >= world.worldHeight)
^
symbol: variable worldHeight
location: variable world of type World
src\minecraft\net\minecraft\src\BlockLplant.java:10: error: cannot find symbol
setTickOnLoad(true);
^
symbol: method setTickOnLoad(boolean)
location: class BlockLplant
src\minecraft\net\minecraft\src\BlockLplant.java:56: error: cannot find symbol
if (j < 0 || j >= world.worldHeight)
^
symbol: variable worldHeight
location: variable world of type World
src\minecraft\net\minecraft\src\BlockLplant.java:104: error: cannot find symbol
if (world.multiplayerWorld)
^
symbol: variable multiplayerWorld
location: variable world of type World
src\minecraft\net\minecraft\src\BlockTplant.java:10: error: cannot find symbol
setTickOnLoad(true);
^
symbol: method setTickOnLoad(boolean)
location: class BlockTplant
src\minecraft\net\minecraft\src\BlockTplant.java:61: error: cannot find symbol
if (world.multiplayerWorld)
^
symbol: variable multiplayerWorld
location: variable world of type World
src\minecraft\net\minecraft\src\BlockWplant.java:10: error: cannot find symbol
setTickOnLoad(true);
^
symbol: method setTickOnLoad(boolean)
location: class BlockWplant
src\minecraft\net\minecraft\src\BlockWplant.java:91: error: cannot find symbol
if (world.multiplayerWorld)
^
symbol: variable multiplayerWorld
location: variable world of type World
src\minecraft\net\minecraft\src\EntityFirei.java:69: error: cannot find symbol
if (!worldObj.multiplayerWorld)
^
symbol: variable multiplayerWorld
location: variable worldObj of type World
src\minecraft\net\minecraft\src\mod_elDra.java:20: error: cannot find symbol
public static final Block Enplant = new BlockEnplant(127).setHardness(0.0F).setBlockName("Enplant").disableStats().setRequiresSelfNotify();
^
symbol: class BlockEnplant
location: class mod_elDra
src\minecraft\net\minecraft\src\EntityImp.java:17: error: cannot find symbol
field_46019_bU.func_46118_a(1, new EntityAISwimming(this));
^
symbol: variable field_46019_bU
location: class EntityImp
src\minecraft\net\minecraft\src\EntityImp.java:18: error: no suitable constructor found for EntityAIAttackOnCollide(EntityImp,World,float)
field_46019_bU.func_46118_a(2, new EntityAIAttackOnCollide(this, world, 16F));
^
constructor EntityAIAttackOnCollide.EntityAIAttackOnCollide(EntityLiving,float,boolean) is not applicable
(actual argument World cannot be converted to float by method invocation conversion)
constructor EntityAIAttackOnCollide.EntityAIAttackOnCollide(EntityLiving,Class,float,boolean) is not applicable
(actual and formal argument lists differ in length)
src\minecraft\net\minecraft\src\EntityImp.java:18: error: cannot find symbol
field_46019_bU.func_46118_a(2, new EntityAIAttackOnCollide(this, world, 16F));
^
symbol: variable field_46019_bU
location: class EntityImp
src\minecraft\net\minecraft\src\EntityImp.java:19: error: constructor EntityAIWander in class EntityAIWander cannot be applied to given types;
field_46019_bU.func_46118_a(3, new EntityAIWander(this));
^
required: EntityCreature,float
found: EntityImp
reason: actual and formal argument lists differ in length
src\minecraft\net\minecraft\src\EntityImp.java:19: error: cannot find symbol
field_46019_bU.func_46118_a(3, new EntityAIWander(this));
^
symbol: variable field_46019_bU
location: class EntityImp
src\minecraft\net\minecraft\src\EntityImp.java:20: error: no suitable constructor found for EntityAIWatchClosest(EntityImp,World,float)
field_46019_bU.func_46118_a(4, new EntityAIWatchClosest(this, world, 8F));
^
constructor EntityAIWatchClosest.EntityAIWatchClosest(EntityLiving,Class,float,float) is not applicable
(actual and formal argument lists differ in length)
constructor EntityAIWatchClosest.EntityAIWatchClosest(EntityLiving,Class,float) is not applicable
(actual argument World cannot be converted to Class by method invocation conversion)
src\minecraft\net\minecraft\src\EntityImp.java:20: error: cannot find symbol
field_46019_bU.func_46118_a(4, new EntityAIWatchClosest(this, world, 8F));
^
symbol: variable field_46019_bU
location: class EntityImp
src\minecraft\net\minecraft\src\EntityImp.java:21: error: cannot find symbol
field_46019_bU.func_46118_a(4, new EntityAILookIdle(this));
^
symbol: variable field_46019_bU
location: class EntityImp
src\minecraft\net\minecraft\src\mod_elDra.java:33: error: cannot find symbol
public static final Item Fireblade = new ItemFireblade(2004).setItemName("Fireblade");
^
symbol: class ItemFireblade
location: class mod_elDra
src\minecraft\net\minecraft\src\EntityShark.java:16: error: cannot find symbol
field_46019_bU.func_46118_a(1, new EntityAISwimming(this));
^
symbol: variable field_46019_bU
location: class EntityShark
src\minecraft\net\minecraft\src\EntityShark.java:17: error: no suitable constructor found for EntityAIAttackOnCollide(EntityShark,World,float)
field_46019_bU.func_46118_a(2, new EntityAIAttackOnCollide(this, world, 16F));
^
constructor EntityAIAttackOnCollide.EntityAIAttackOnCollide(EntityLiving,float,boolean) is not applicable
(actual argument World cannot be converted to float by method invocation conversion)
constructor EntityAIAttackOnCollide.EntityAIAttackOnCollide(EntityLiving,Class,float,boolean) is not applicable
(actual and formal argument lists differ in length)
src\minecraft\net\minecraft\src\EntityShark.java:17: error: cannot find symbol
field_46019_bU.func_46118_a(2, new EntityAIAttackOnCollide(this, world, 16F));
^
symbol: variable field_46019_bU
location: class EntityShark
src\minecraft\net\minecraft\src\EntityShark.java:18: error: constructor EntityAIWander in class EntityAIWander cannot be applied to given types;
field_46019_bU.func_46118_a(3, new EntityAIWander(this));
^
required: EntityCreature,float
found: EntityShark
reason: actual and formal argument lists differ in length
src\minecraft\net\minecraft\src\EntityShark.java:18: error: cannot find symbol
field_46019_bU.func_46118_a(3, new EntityAIWander(this));
^
symbol: variable field_46019_bU
location: class EntityShark
src\minecraft\net\minecraft\src\EntityShark.java:19: error: no suitable constructor found for EntityAIWatchClosest(EntityShark,World,float)
field_46019_bU.func_46118_a(4, new EntityAIWatchClosest(this, world, 8F));
^
constructor EntityAIWatchClosest.EntityAIWatchClosest(EntityLiving,Class,float,float) is not applicable
(actual and formal argument lists differ in length)
constructor EntityAIWatchClosest.EntityAIWatchClosest(EntityLiving,Class,float) is not applicable
(actual argument World cannot be converted to Class by method invocation conversion)
src\minecraft\net\minecraft\src\EntityShark.java:19: error: cannot find symbol
field_46019_bU.func_46118_a(4, new EntityAIWatchClosest(this, world, 8F));
^
symbol: variable field_46019_bU
location: class EntityShark
src\minecraft\net\minecraft\src\EntityShark.java:20: error: cannot find symbol
field_46019_bU.func_46118_a(4, new EntityAILookIdle(this));
^
symbol: variable field_46019_bU
location: class EntityShark
src\minecraft\net\minecraft\src\ItemFogopad.java:12: error: cannot find symbol
First, every ModLoader method you have in your mod_** file should now start with lower letter instead of capital (i.e. ModLoader.AddName -> ModLoader.addName etc.)
Btw, how did u discover these changes on the methods?
Is there somewhere in the MCP Wiki that points out the new changes for this?
It's quite easy. These errors says "location: class ModLoader" (if you use Eclipse, it highlights the mistakes) and it says it cannot find it. So I opened ModLoader class (ModLoader.java) and just took quick look at names of the methods and found out the letters are now lower The generateSurface was a bit more tricky, because it doesn't throw any error message. But when you open ModLoader.java, method generateSurface is also there and again with lower letter. Basically it is the same problem, but few people know that generateSurface is ModLoader method, so if I recommend changing letters, they usually miss this one
also make sure its actually the variables "i j k" or "x y z" ect... jeb recently changed those to things like "par1 par2" or "parX parY"
That probably won't affect his mod, because you usually add whole functions, where they still can be named x,y,z. But good point, if his mod modifies something
I noticed that field_46019_bU repeats a lot, so what should I change in it?
Well first question is where did you get the feild from? if thats still standing from 1.1 then that needs to be updated to the new feild... thats why we need MCP... minecraft is obfuscated so that the feilds dont match the function names, and each update the obfuscation tables are changed making the feild name change
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Exception in thread "Minecraft main thread" java.lang.ExceptionInInitializerError
at net.minecraft.client.Minecraft.startGame(Minecraft.java:421)
at net.minecraft.src.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:41)
at net.minecraft.client.Minecraft.run(Minecraft.java:741)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 2701
at net.minecraft.src.ModLoader.init(ModLoader.java:996)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:190)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:93)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
... 4 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 2701
at net.minecraft.src.ModLoader.initStats(ModLoader.java:1010)
at net.minecraft.src.ModLoader.init(ModLoader.java:983)
... 7 more
Anyone help with this? I am trying to make a flower for my mod, and this pops up. No idea what I am doing wrong.
Exception in thread "Minecraft main thread" java.lang.ExceptionInInitializerError
at net.minecraft.client.Minecraft.startGame(Minecraft.java:421)
at net.minecraft.src.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:41)
at net.minecraft.client.Minecraft.run(Minecraft.java:741)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 2701
at net.minecraft.src.ModLoader.init(ModLoader.java:996)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:190)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:93)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
... 4 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 2701
at net.minecraft.src.ModLoader.initStats(ModLoader.java:1010)
at net.minecraft.src.ModLoader.init(ModLoader.java:983)
... 7 more
Anyone help with this? I am trying to make a flower for my mod, and this pops up. No idea what I am doing wrong.
Don't use block ids over 255.
Also, please do not post on a topic that has had no replies for almost a year. Just create a new topic and ask the question there.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I got it working fine, now Im trying to update it to 1.2.3
Look what I did:
- Copied all the java files from the src folder of the 1.1 version
- Prepared the MCP for version 1.2.3
- Pasted my mod files to the 1.2.3
- Tried to recompile and got many errors
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\BlockDplant.java:10: error: cannot find symbol
setTickOnLoad(true);
^
symbol: method setTickOnLoad(boolean)
location: class BlockDplant
src\minecraft\net\minecraft\src\BlockDplant.java:40: error: cannot find symbol
if (j < 0 || j >= world.worldHeight)
^
symbol: variable worldHeight
location: variable world of type World
src\minecraft\net\minecraft\src\BlockDplant.java:74: error: cannot find symbol
if (world.multiplayerWorld)
^
symbol: variable multiplayerWorld
location: variable world of type World
src\minecraft\net\minecraft\src\BlockFogopad.java:50: error: cannot find symbol
if (j < 0 || j >= world.worldHeight)
^
symbol: variable worldHeight
location: variable world of type World
src\minecraft\net\minecraft\src\BlockLplant.java:10: error: cannot find symbol
setTickOnLoad(true);
^
symbol: method setTickOnLoad(boolean)
location: class BlockLplant
src\minecraft\net\minecraft\src\BlockLplant.java:56: error: cannot find symbol
if (j < 0 || j >= world.worldHeight)
^
symbol: variable worldHeight
location: variable world of type World
src\minecraft\net\minecraft\src\BlockLplant.java:104: error: cannot find symbol
if (world.multiplayerWorld)
^
symbol: variable multiplayerWorld
location: variable world of type World
src\minecraft\net\minecraft\src\BlockTplant.java:10: error: cannot find symbol
setTickOnLoad(true);
^
symbol: method setTickOnLoad(boolean)
location: class BlockTplant
src\minecraft\net\minecraft\src\BlockTplant.java:61: error: cannot find symbol
if (world.multiplayerWorld)
^
symbol: variable multiplayerWorld
location: variable world of type World
src\minecraft\net\minecraft\src\BlockWplant.java:10: error: cannot find symbol
setTickOnLoad(true);
^
symbol: method setTickOnLoad(boolean)
location: class BlockWplant
src\minecraft\net\minecraft\src\BlockWplant.java:91: error: cannot find symbol
if (world.multiplayerWorld)
^
symbol: variable multiplayerWorld
location: variable world of type World
src\minecraft\net\minecraft\src\EntityFirei.java:69: error: cannot find symbol
if (!worldObj.multiplayerWorld)
^
symbol: variable multiplayerWorld
location: variable worldObj of type World
src\minecraft\net\minecraft\src\mod_elDra.java:20: error: cannot find symbol
public static final Block Enplant = new BlockEnplant(127).setHardness(0.0F).setBlockName("Enplant").disableStats().setRequiresSelfNotify();
^
symbol: class BlockEnplant
location: class mod_elDra
src\minecraft\net\minecraft\src\EntityImp.java:17: error: cannot find symbol
field_46019_bU.func_46118_a(1, new EntityAISwimming(this));
^
symbol: variable field_46019_bU
location: class EntityImp
src\minecraft\net\minecraft\src\EntityImp.java:18: error: no suitable constructor found for EntityAIAttackOnCollide(EntityImp,World,float)
field_46019_bU.func_46118_a(2, new EntityAIAttackOnCollide(this, world, 16F));
^
constructor EntityAIAttackOnCollide.EntityAIAttackOnCollide(EntityLiving,float,boolean) is not applicable
(actual argument World cannot be converted to float by method invocation conversion)
constructor EntityAIAttackOnCollide.EntityAIAttackOnCollide(EntityLiving,Class,float,boolean) is not applicable
(actual and formal argument lists differ in length)
src\minecraft\net\minecraft\src\EntityImp.java:18: error: cannot find symbol
field_46019_bU.func_46118_a(2, new EntityAIAttackOnCollide(this, world, 16F));
^
symbol: variable field_46019_bU
location: class EntityImp
src\minecraft\net\minecraft\src\EntityImp.java:19: error: constructor EntityAIWander in class EntityAIWander cannot be applied to given types;
field_46019_bU.func_46118_a(3, new EntityAIWander(this));
^
required: EntityCreature,float
found: EntityImp
reason: actual and formal argument lists differ in length
src\minecraft\net\minecraft\src\EntityImp.java:19: error: cannot find symbol
field_46019_bU.func_46118_a(3, new EntityAIWander(this));
^
symbol: variable field_46019_bU
location: class EntityImp
src\minecraft\net\minecraft\src\EntityImp.java:20: error: no suitable constructor found for EntityAIWatchClosest(EntityImp,World,float)
field_46019_bU.func_46118_a(4, new EntityAIWatchClosest(this, world, 8F));
^
constructor EntityAIWatchClosest.EntityAIWatchClosest(EntityLiving,Class,float,float) is not applicable
(actual and formal argument lists differ in length)
constructor EntityAIWatchClosest.EntityAIWatchClosest(EntityLiving,Class,float) is not applicable
(actual argument World cannot be converted to Class by method invocation conversion)
src\minecraft\net\minecraft\src\EntityImp.java:20: error: cannot find symbol
field_46019_bU.func_46118_a(4, new EntityAIWatchClosest(this, world, 8F));
^
symbol: variable field_46019_bU
location: class EntityImp
src\minecraft\net\minecraft\src\EntityImp.java:21: error: cannot find symbol
field_46019_bU.func_46118_a(4, new EntityAILookIdle(this));
^
symbol: variable field_46019_bU
location: class EntityImp
src\minecraft\net\minecraft\src\mod_elDra.java:33: error: cannot find symbol
public static final Item Fireblade = new ItemFireblade(2004).setItemName("Fireblade");
^
symbol: class ItemFireblade
location: class mod_elDra
src\minecraft\net\minecraft\src\EntityShark.java:16: error: cannot find symbol
field_46019_bU.func_46118_a(1, new EntityAISwimming(this));
^
symbol: variable field_46019_bU
location: class EntityShark
src\minecraft\net\minecraft\src\EntityShark.java:17: error: no suitable constructor found for EntityAIAttackOnCollide(EntityShark,World,float)
field_46019_bU.func_46118_a(2, new EntityAIAttackOnCollide(this, world, 16F));
^
constructor EntityAIAttackOnCollide.EntityAIAttackOnCollide(EntityLiving,float,boolean) is not applicable
(actual argument World cannot be converted to float by method invocation conversion)
constructor EntityAIAttackOnCollide.EntityAIAttackOnCollide(EntityLiving,Class,float,boolean) is not applicable
(actual and formal argument lists differ in length)
src\minecraft\net\minecraft\src\EntityShark.java:17: error: cannot find symbol
field_46019_bU.func_46118_a(2, new EntityAIAttackOnCollide(this, world, 16F));
^
symbol: variable field_46019_bU
location: class EntityShark
src\minecraft\net\minecraft\src\EntityShark.java:18: error: constructor EntityAIWander in class EntityAIWander cannot be applied to given types;
field_46019_bU.func_46118_a(3, new EntityAIWander(this));
^
required: EntityCreature,float
found: EntityShark
reason: actual and formal argument lists differ in length
src\minecraft\net\minecraft\src\EntityShark.java:18: error: cannot find symbol
field_46019_bU.func_46118_a(3, new EntityAIWander(this));
^
symbol: variable field_46019_bU
location: class EntityShark
src\minecraft\net\minecraft\src\EntityShark.java:19: error: no suitable constructor found for EntityAIWatchClosest(EntityShark,World,float)
field_46019_bU.func_46118_a(4, new EntityAIWatchClosest(this, world, 8F));
^
constructor EntityAIWatchClosest.EntityAIWatchClosest(EntityLiving,Class,float,float) is not applicable
(actual and formal argument lists differ in length)
constructor EntityAIWatchClosest.EntityAIWatchClosest(EntityLiving,Class,float) is not applicable
(actual argument World cannot be converted to Class by method invocation conversion)
src\minecraft\net\minecraft\src\EntityShark.java:19: error: cannot find symbol
field_46019_bU.func_46118_a(4, new EntityAIWatchClosest(this, world, 8F));
^
symbol: variable field_46019_bU
location: class EntityShark
src\minecraft\net\minecraft\src\EntityShark.java:20: error: cannot find symbol
field_46019_bU.func_46118_a(4, new EntityAILookIdle(this));
^
symbol: variable field_46019_bU
location: class EntityShark
src\minecraft\net\minecraft\src\ItemFogopad.java:12: error: cannot find symbol
MovingObjectPosition movingobjectposition = func_40402_a(world, entityplayer, true);
^
symbol: method func_40402_a(World,EntityPlayer,boolean)
location: class ItemFogopad
src\minecraft\net\minecraft\src\mod_elDra.java:24: error: cannot find symbol
public static final Block Aplant = new BlockAplant(134).setHardness(0.0F).setBlockName("Aplant").disableStats().setRequiresSelfNotify();
^
symbol: class BlockAplant
location: class mod_elDra
src\minecraft\net\minecraft\src\mod_elDra.java:55: error: cannot find symbol
ModLoader.RegisterBlock(Dcobble);
^
symbol: method RegisterBlock(Block)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:56: error: cannot find symbol
ModLoader.RegisterBlock(Gerock);
^
symbol: method RegisterBlock(Block)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:57: error: cannot find symbol
ModLoader.RegisterBlock(Enplant);
^
symbol: method RegisterBlock(Block)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:58: error: cannot find symbol
ModLoader.RegisterBlock(Wplant);
^
symbol: method RegisterBlock(Block)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:59: error: cannot find symbol
ModLoader.RegisterBlock(Lplant);
^
symbol: method RegisterBlock(Block)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:60: error: cannot find symbol
ModLoader.RegisterBlock(Dplant);
^
symbol: method RegisterBlock(Block)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:61: error: cannot find symbol
ModLoader.RegisterBlock(Heaty);
^
symbol: method RegisterBlock(Block)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:71: error: cannot find symbol
ModLoader.AddName(Dcobble, "Dragonite Ore");
^
symbol: method AddName(Block,String)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:72: error: cannot find symbol
ModLoader.AddName(Fireblade, "Fire Sword");
^
symbol: method AddName(Item,String)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:73: error: cannot find symbol
ModLoader.AddName(Gerock, "Genostone");
^
symbol: method AddName(Block,String)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:74: error: cannot find symbol
ModLoader.AddName(Enplant, "Enplant");
^
symbol: method AddName(Block,String)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:75: error: cannot find symbol
ModLoader.AddName(SShark, "Spawn a shark");
^
symbol: method AddName(Item,String)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:76: error: cannot find symbol
ModLoader.AddName(Wplant, "Wplant");
^
symbol: method AddName(Block,String)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:77: error: cannot find symbol
ModLoader.AddName(Engem, "Fire Gem");
^
symbol: method AddName(Item,String)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:78: error: cannot find symbol
ModLoader.AddName(Tgem, "Earth Gem");
^
symbol: method AddName(Item,String)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:79: error: cannot find symbol
ModLoader.AddName(Agem, "Air Gem");
^
symbol: method AddName(Item,String)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:80: error: cannot find symbol
ModLoader.AddName(Wgem, "Water Gem");
^
symbol: method AddName(Item,String)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:81: error: cannot find symbol
ModLoader.AddName(Lgem, "Light Gem");
^
symbol: method AddName(Item,String)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:82: error: cannot find symbol
ModLoader.AddName(Dgem, "Dark Gem");
^
symbol: method AddName(Item,String)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:83: error: cannot find symbol
ModLoader.AddName(Enseeds, "Fire seeds");
^
symbol: method AddName(Item,String)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:84: error: cannot find symbol
ModLoader.AddName(Wseeds, "Water seeds");
^
symbol: method AddName(Item,String)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:85: error: cannot find symbol
ModLoader.AddName(Fogopad, "Fire Lilypad");
^
symbol: method AddName(Block,String)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:86: error: cannot find symbol
ModLoader.AddName(Lseeds, "Light seeds");
^
symbol: method AddName(Item,String)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:87: error: cannot find symbol
ModLoader.AddName(Dseeds, "Dark seeds");
^
symbol: method AddName(Item,String)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:88: error: cannot find symbol
ModLoader.AddName(Aseeds, "Air seeds");
^
symbol: method AddName(Item,String)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:89: error: cannot find symbol
ModLoader.AddName(Tseeds, "Earth seeds");
^
symbol: method AddName(Item,String)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:90: error: cannot find symbol
ModLoader.AddName(Heaty, "Heated Stone");
^
symbol: method AddName(Block,String)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:91: error: cannot find symbol
ModLoader.AddRecipe(new ItemStack(Item.diamond, 64), new Object[] {"###", Character.valueOf('#'), Block.dirt});
^
symbol: method AddRecipe(ItemStack,Object[])
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:93: error: cannot find symbol
ModLoader.AddRecipe(new ItemStack(Engem, 1), new Object[] {"###", "###", "###", Character.valueOf('#'), mod_elDra.Enseeds});
^
symbol: method AddRecipe(ItemStack,Object[])
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:94: error: cannot find symbol
ModLoader.AddRecipe(new ItemStack(Wgem, 1), new Object[] {"###", "###", "###", Character.valueOf('#'), mod_elDra.Wseeds});
^
symbol: method AddRecipe(ItemStack,Object[])
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:95: error: cannot find symbol
ModLoader.AddRecipe(new ItemStack(Agem, 1), new Object[] {"###", "###", "###", Character.valueOf('#'), mod_elDra.Aseeds});
^
symbol: method AddRecipe(ItemStack,Object[])
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:96: error: cannot find symbol
ModLoader.AddRecipe(new ItemStack(Tgem, 1), new Object[] {"###", "###", "###", Character.valueOf('#'), mod_elDra.Tseeds});
^
symbol: method AddRecipe(ItemStack,Object[])
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:97: error: cannot find symbol
ModLoader.AddRecipe(new ItemStack(Dgem, 1), new Object[] {"###", "###", "###", Character.valueOf('#'), mod_elDra.Dseeds});
^
symbol: method AddRecipe(ItemStack,Object[])
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:98: error: cannot find symbol
ModLoader.AddRecipe(new ItemStack(Lgem, 1), new Object[] {"###", "###", "###", Character.valueOf('#'), mod_elDra.Lseeds});
^
symbol: method AddRecipe(ItemStack,Object[])
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:99: error: cannot find symbol
ModLoader.AddRecipe(new ItemStack(BlockContainer.endPortal, 64), new Object[] {"#", Character.valueOf('#'), mod_elDra.Lseeds});
^
symbol: method AddRecipe(ItemStack,Object[])
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:100: error: cannot find symbol
ModLoader.AddRecipe(new ItemStack(Item.diamond, 64), new Object[] {"##", Character.valueOf('#'), Block.dirt});
^
symbol: method AddRecipe(ItemStack,Object[])
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:101: error: cannot find symbol
ModLoader.AddRecipe(new ItemStack(Aseeds, 64), new Object[] {"#", Character.valueOf('#'), Block.dirt});
^
symbol: method AddRecipe(ItemStack,Object[])
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:102: error: cannot find symbol
ModLoader.AddRecipe(new ItemStack(Block.dirt, 64), new Object[] {"###", "###", "###", Character.valueOf('#'), Block.dirt});
^
symbol: method AddRecipe(ItemStack,Object[])
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:103: error: cannot find symbol
ModLoader.AddRecipe(new ItemStack(Tseeds, 64), new Object[] {"###", Character.valueOf('#'), Item.diamond});
^
symbol: method AddRecipe(ItemStack,Object[])
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:117: error: cannot find symbol
ModLoader.AddName(DforeItem, "Frost Dragonite Ore");
^
symbol: method AddName(Item,String)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:118: error: cannot find symbol
ModLoader.AddSmelting(mod_elDra.Dcobble.blockID, new ItemStack(mod_elDra.DbarItem, 1));
^
symbol: method AddSmelting(int,ItemStack)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:119: error: cannot find symbol
ModLoader.AddName(DbarItem, "Dragonite Bar");
^
symbol: method AddName(Item,String)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:121: error: cannot find symbol
ModLoader.RegisterEntityID(EntityImp.class, "Imp", ModLoader.getUniqueEntityId());
^
symbol: method RegisterEntityID(Class<EntityImp>,String,int)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:122: error: cannot find symbol
ModLoader.AddSpawn(EntityImp.class, 100, 1, 3, EnumCreatureType.creature, new BiomeGenBase[]{BiomeGenBase.hell});
^
symbol: method AddSpawn(Class<EntityImp>,int,int,int,EnumCreatureType,BiomeGenBase[])
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:123: error: cannot find symbol
ModLoader.RegisterEntityID(EntityShark.class, "Shark", ModLoader.getUniqueEntityId());
^
symbol: method RegisterEntityID(Class<EntityShark>,String,int)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:124: error: cannot find symbol
ModLoader.AddSpawn(EntityShark.class, 101, 1, 5, EnumCreatureType.creature, new BiomeGenBase[]{BiomeGenBase.ocean});
^
symbol: method AddSpawn(Class<EntityShark>,int,int,int,EnumCreatureType,BiomeGenBase[])
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:125: error: cannot find symbol
ModLoader.RegisterEntityID(EntityFirei.class, "Firei", ModLoader.getUniqueEntityId());
^
symbol: method RegisterEntityID(Class<EntityFirei>,String,int)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_elDra.java:126: error: cannot find symbol
ModLoader.AddSpawn(EntityFirei.class, 102, 1, 5, EnumCreatureType.creature, new BiomeGenBase[]{BiomeGenBase.hell});
^
symbol: method AddSpawn(Class<EntityFirei>,int,int,int,EnumCreatureType,BiomeGenBase[])
location: class ModLoader
Note: src\minecraft\net\minecraft\src\NetworkMasterThread.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
80 errors
1 warning
Tell me if I forgot to do something important :/
Also tell me if I need to post the mod_ code here
Thank you so much,
Azuy
Also replace every
with
This should shorten the error list a bit
Divine smoker mod - Hookah in Minecraft: http://www.minecraftforum.net/topic/1689980-172splanspdivine-smoker-water-pipe-modhookahshisha-11/
Ill do this as soon as I get home!
Btw, how did u discover these changes on the methods?
Is there somewhere in the MCP Wiki that points out the new changes for this?
It's quite easy. These errors says "location: class ModLoader" (if you use Eclipse, it highlights the mistakes) and it says it cannot find it. So I opened ModLoader class (ModLoader.java) and just took quick look at names of the methods and found out the letters are now lower The generateSurface was a bit more tricky, because it doesn't throw any error message. But when you open ModLoader.java, method generateSurface is also there and again with lower letter. Basically it is the same problem, but few people know that generateSurface is ModLoader method, so if I recommend changing letters, they usually miss this one
Hope it helps
Divine smoker mod - Hookah in Minecraft: http://www.minecraftforum.net/topic/1689980-172splanspdivine-smoker-water-pipe-modhookahshisha-11/
That probably won't affect his mod, because you usually add whole functions, where they still can be named x,y,z. But good point, if his mod modifies something
Divine smoker mod - Hookah in Minecraft: http://www.minecraftforum.net/topic/1689980-172splanspdivine-smoker-water-pipe-modhookahshisha-11/
But the error still persists, with less errors.
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\BlockDplant.java:10: error: cannot find symbol
setTickOnLoad(true);
^
symbol: method setTickOnLoad(boolean)
location: class BlockDplant
src\minecraft\net\minecraft\src\BlockDplant.java:40: error: cannot find symbol
if (j < 0 || j >= world.worldHeight)
^
symbol: variable worldHeight
location: variable world of type World
src\minecraft\net\minecraft\src\BlockDplant.java:74: error: cannot find symbol
if (world.multiplayerWorld)
^
symbol: variable multiplayerWorld
location: variable world of type World
src\minecraft\net\minecraft\src\BlockFogopad.java:50: error: cannot find symbol
if (j < 0 || j >= world.worldHeight)
^
symbol: variable worldHeight
location: variable world of type World
src\minecraft\net\minecraft\src\BlockLplant.java:10: error: cannot find symbol
setTickOnLoad(true);
^
symbol: method setTickOnLoad(boolean)
location: class BlockLplant
src\minecraft\net\minecraft\src\BlockLplant.java:56: error: cannot find symbol
if (j < 0 || j >= world.worldHeight)
^
symbol: variable worldHeight
location: variable world of type World
src\minecraft\net\minecraft\src\BlockLplant.java:104: error: cannot find symbol
if (world.multiplayerWorld)
^
symbol: variable multiplayerWorld
location: variable world of type World
src\minecraft\net\minecraft\src\BlockTplant.java:10: error: cannot find symbol
setTickOnLoad(true);
^
symbol: method setTickOnLoad(boolean)
location: class BlockTplant
src\minecraft\net\minecraft\src\BlockTplant.java:61: error: cannot find symbol
if (world.multiplayerWorld)
^
symbol: variable multiplayerWorld
location: variable world of type World
src\minecraft\net\minecraft\src\BlockWplant.java:10: error: cannot find symbol
setTickOnLoad(true);
^
symbol: method setTickOnLoad(boolean)
location: class BlockWplant
src\minecraft\net\minecraft\src\BlockWplant.java:91: error: cannot find symbol
if (world.multiplayerWorld)
^
symbol: variable multiplayerWorld
location: variable world of type World
src\minecraft\net\minecraft\src\EntityFirei.java:69: error: cannot find symbol
if (!worldObj.multiplayerWorld)
^
symbol: variable multiplayerWorld
location: variable worldObj of type World
src\minecraft\net\minecraft\src\mod_elDra.java:20: error: cannot find symbol
public static final Block Enplant = new BlockEnplant(127).setHardness(0.0F).setBlockName("Enplant").disableStats().setRequiresSelfNotify();
^
symbol: class BlockEnplant
location: class mod_elDra
src\minecraft\net\minecraft\src\EntityImp.java:17: error: cannot find symbol
field_46019_bU.func_46118_a(1, new EntityAISwimming(this));
^
symbol: variable field_46019_bU
location: class EntityImp
src\minecraft\net\minecraft\src\EntityImp.java:18: error: no suitable constructor found for EntityAIAttackOnCollide(EntityImp,World,float)
field_46019_bU.func_46118_a(2, new EntityAIAttackOnCollide(this, world, 16F));
^
constructor EntityAIAttackOnCollide.EntityAIAttackOnCollide(EntityLiving,float,boolean) is not applicable
(actual argument World cannot be converted to float by method invocation conversion)
constructor EntityAIAttackOnCollide.EntityAIAttackOnCollide(EntityLiving,Class,float,boolean) is not applicable
(actual and formal argument lists differ in length)
src\minecraft\net\minecraft\src\EntityImp.java:18: error: cannot find symbol
field_46019_bU.func_46118_a(2, new EntityAIAttackOnCollide(this, world, 16F));
^
symbol: variable field_46019_bU
location: class EntityImp
src\minecraft\net\minecraft\src\EntityImp.java:19: error: constructor EntityAIWander in class EntityAIWander cannot be applied to given types;
field_46019_bU.func_46118_a(3, new EntityAIWander(this));
^
required: EntityCreature,float
found: EntityImp
reason: actual and formal argument lists differ in length
src\minecraft\net\minecraft\src\EntityImp.java:19: error: cannot find symbol
field_46019_bU.func_46118_a(3, new EntityAIWander(this));
^
symbol: variable field_46019_bU
location: class EntityImp
src\minecraft\net\minecraft\src\EntityImp.java:20: error: no suitable constructor found for EntityAIWatchClosest(EntityImp,World,float)
field_46019_bU.func_46118_a(4, new EntityAIWatchClosest(this, world, 8F));
^
constructor EntityAIWatchClosest.EntityAIWatchClosest(EntityLiving,Class,float,float) is not applicable
(actual and formal argument lists differ in length)
constructor EntityAIWatchClosest.EntityAIWatchClosest(EntityLiving,Class,float) is not applicable
(actual argument World cannot be converted to Class by method invocation conversion)
src\minecraft\net\minecraft\src\EntityImp.java:20: error: cannot find symbol
field_46019_bU.func_46118_a(4, new EntityAIWatchClosest(this, world, 8F));
^
symbol: variable field_46019_bU
location: class EntityImp
src\minecraft\net\minecraft\src\EntityImp.java:21: error: cannot find symbol
field_46019_bU.func_46118_a(4, new EntityAILookIdle(this));
^
symbol: variable field_46019_bU
location: class EntityImp
src\minecraft\net\minecraft\src\mod_elDra.java:33: error: cannot find symbol
public static final Item Fireblade = new ItemFireblade(2004).setItemName("Fireblade");
^
symbol: class ItemFireblade
location: class mod_elDra
src\minecraft\net\minecraft\src\EntityShark.java:16: error: cannot find symbol
field_46019_bU.func_46118_a(1, new EntityAISwimming(this));
^
symbol: variable field_46019_bU
location: class EntityShark
src\minecraft\net\minecraft\src\EntityShark.java:17: error: no suitable constructor found for EntityAIAttackOnCollide(EntityShark,World,float)
field_46019_bU.func_46118_a(2, new EntityAIAttackOnCollide(this, world, 16F));
^
constructor EntityAIAttackOnCollide.EntityAIAttackOnCollide(EntityLiving,float,boolean) is not applicable
(actual argument World cannot be converted to float by method invocation conversion)
constructor EntityAIAttackOnCollide.EntityAIAttackOnCollide(EntityLiving,Class,float,boolean) is not applicable
(actual and formal argument lists differ in length)
src\minecraft\net\minecraft\src\EntityShark.java:17: error: cannot find symbol
field_46019_bU.func_46118_a(2, new EntityAIAttackOnCollide(this, world, 16F));
^
symbol: variable field_46019_bU
location: class EntityShark
src\minecraft\net\minecraft\src\EntityShark.java:18: error: constructor EntityAIWander in class EntityAIWander cannot be applied to given types;
field_46019_bU.func_46118_a(3, new EntityAIWander(this));
^
required: EntityCreature,float
found: EntityShark
reason: actual and formal argument lists differ in length
src\minecraft\net\minecraft\src\EntityShark.java:18: error: cannot find symbol
field_46019_bU.func_46118_a(3, new EntityAIWander(this));
^
symbol: variable field_46019_bU
location: class EntityShark
src\minecraft\net\minecraft\src\EntityShark.java:19: error: no suitable constructor found for EntityAIWatchClosest(EntityShark,World,float)
field_46019_bU.func_46118_a(4, new EntityAIWatchClosest(this, world, 8F));
^
constructor EntityAIWatchClosest.EntityAIWatchClosest(EntityLiving,Class,float,float) is not applicable
(actual and formal argument lists differ in length)
constructor EntityAIWatchClosest.EntityAIWatchClosest(EntityLiving,Class,float) is not applicable
(actual argument World cannot be converted to Class by method invocation conversion)
src\minecraft\net\minecraft\src\EntityShark.java:19: error: cannot find symbol
field_46019_bU.func_46118_a(4, new EntityAIWatchClosest(this, world, 8F));
^
symbol: variable field_46019_bU
location: class EntityShark
src\minecraft\net\minecraft\src\EntityShark.java:20: error: cannot find symbol
field_46019_bU.func_46118_a(4, new EntityAILookIdle(this));
^
symbol: variable field_46019_bU
location: class EntityShark
src\minecraft\net\minecraft\src\ItemFogopad.java:12: error: cannot find symbol
MovingObjectPosition movingobjectposition = func_40402_a(world, entityplayer, true);
^
symbol: method func_40402_a(World,EntityPlayer,boolean)
location: class ItemFogopad
src\minecraft\net\minecraft\src\mod_elDra.java:24: error: cannot find symbol
public static final Block Aplant = new BlockAplant(134).setHardness(0.0F).setBlockName("Aplant").disableStats().setRequiresSelfNotify();
^
symbol: class BlockAplant
location: class mod_elDra
Note: src\minecraft\net\minecraft\src\NetworkMasterThread.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
32 errors
1 warning
I noticed that field_46019_bU repeats a lot, so what should I change in it?
And forgive me if its way too obvious or something like that, but I cant really figure it out, oh and I'll get Eclipse, it looks really useful
Thanks
Well first question is where did you get the feild from? if thats still standing from 1.1 then that needs to be updated to the new feild... thats why we need MCP... minecraft is obfuscated so that the feilds dont match the function names, and each update the obfuscation tables are changed making the feild name change
So I have to obfuscate? Isnt this used to make the mod ready for players?
I udpdated the MCP by downloading the new version.
So I still have everything from 1,1
is now
together they are powerful beyond imagination."
What about
Looks like world.worldHeight and world.multiplayerWorld dont work anymore, what should I change it for?
Thats why I hate when Minecraft updates
Divine smoker mod - Hookah in Minecraft: http://www.minecraftforum.net/topic/1689980-172splanspdivine-smoker-water-pipe-modhookahshisha-11/
at net.minecraft.client.Minecraft.startGame(Minecraft.java:421)
at net.minecraft.src.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:41)
at net.minecraft.client.Minecraft.run(Minecraft.java:741)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 2701
at net.minecraft.src.ModLoader.init(ModLoader.java:996)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:190)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:93)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
... 4 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 2701
at net.minecraft.src.ModLoader.initStats(ModLoader.java:1010)
at net.minecraft.src.ModLoader.init(ModLoader.java:983)
... 7 more
Anyone help with this? I am trying to make a flower for my mod, and this pops up. No idea what I am doing wrong.
Don't use block ids over 255.
Also, please do not post on a topic that has had no replies for almost a year. Just create a new topic and ask the question there.
together they are powerful beyond imagination."