Ok, so my issue is that to get it to compile, I need to remove the arm1.Setposition lines for all the body parts. And removing these causes the mob to look crazy.
== MCP v4.3 ==
> Recompiling client...
"F:\Program Files\Java\jdk1.6.0_25\bin\javac.exe" -g -verbose -classpath "lib/;l
ib/*;jars/bin/minecraft.jar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjg
l_util.jar" -sourcepath src/minecraft -d bin/minecraft src/minecraft\net\minecra
ft\client\*.java src/minecraft\net\minecraft\isom\*.java src/minecraft\net\minec
raft\src\*.java conf/patches/*.java failed.
Return code : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\ModelBear.java:17: cannot find symbol
symbol : method setPosition(float,float)
location: class net.minecraft.src.ModelRenderer
face.setPosition(-4F, 0F);
^
src\minecraft\net\minecraft\src\ModelBear.java:21: cannot find symbol
symbol : method setPosition(float,float)
location: class net.minecraft.src.ModelRenderer
arm1.setPosition(-2F, 16F);
^
src\minecraft\net\minecraft\src\ModelBear.java:25: cannot find symbol
symbol : method setPosition(float,float)
location: class net.minecraft.src.ModelRenderer
arm2.setPosition(-2F, -8F);
^
src\minecraft\net\minecraft\src\ModelBear.java:29: cannot find symbol
symbol : method setPosition(float,float)
location: class net.minecraft.src.ModelRenderer
leg1.setPosition(14F, 0F);
^
src\minecraft\net\minecraft\src\ModelBear.java:33: cannot find symbol
symbol : method setPosition(float,float)
location: class net.minecraft.src.ModelRenderer
leg2.setPosition(14F, 8F);
^
5 errors
==================
> Done in 5.40 seconds
> Recompiling server...
> Done in 4.70 seconds
Press any key to continue . . .
src\minecraft\net\minecraft\src\ModelPirate.java:15: error: cannot find symbol
face.setPosition(0F, -4F, 0F);
^
symbol: method setPosition(float,float,float)
location: variable face of type ModelRenderer
src\minecraft\net\minecraft\src\ModelPirate.java:19: error: cannot find symbol
arm1.setPosition(0F, -2F, 16F);
^
symbol: method setPosition(float,float,float)
location: variable arm1 of type ModelRenderer
src\minecraft\net\minecraft\src\ModelPirate.java:23: error: cannot find symbol
arm2.setPosition(0F, -2F, -8F);
^
symbol: method setPosition(float,float,float)
location: variable arm2 of type ModelRenderer
src\minecraft\net\minecraft\src\ModelPirate.java:27: error: cannot find symbol
leg1.setPosition(0F, 14F, 0F);
^
symbol: method setPosition(float,float,float)
location: variable leg1 of type ModelRenderer
src\minecraft\net\minecraft\src\ModelPirate.java:31: error: cannot find symbol
leg2.setPosition(0F, 14F, 8F);
^
symbol: method setPosition(float,float,float)
location: variable leg2 of type ModelRenderer
5 errors
==================
> Done in 22.83 seconds
> Recompiling server...
Did you make sure to initialize your parts at the bottom or the top inside the public class ModelYourMobName section of the model file?
hey, im making a mob and it's working fine, except it won't see people from 100 blocks away, like i want them too. what's wrong with the code i'm using?
hey if you could help me out ivebeen trying to make a mob for awhileee and this is how far ive gotten with this, when i recompile I get tonssss of errors and then when i reobf i only get entity.class file can you help me out?
I'm totally new to modding, and this is a great tutorial! Only, I have a few errors...
src\minecraft\net\minecraft\src\mod_Ghost.java:8: error: cannot find symbol
public class mod_Ghost extends BaseMod
^
symbol: class BaseMod
src\minecraft\net\minecraft\src\EntityGhost.java:7: error: EntityGhost is not abstract and does not override abstract method spawnBabyAnimal(EntityAnimal) in EntityAnimal
public class EntityGhost extends EntityAnimal
^
src\minecraft\net\minecraft\src\mod_Ghost.java:13: error: cannot find symbol
ModLoader.RegisterEntityID(EntityGhost.class, "Ghost", ModLoader.getUniqueEntityId()); // without this code , your mob wont spawn !
^
symbol: variable ModLoader
location: class mod_Ghost
src\minecraft\net\minecraft\src\mod_Ghost.java:13: error: cannot find symbol
ModLoader.RegisterEntityID(EntityGhost.class, "Ghost", ModLoader.getUniqueEntityId()); // without this code , your mob wont spawn !
^
symbol: variable ModLoader
location: class mod_Ghost
src\minecraft\net\minecraft\src\mod_Ghost.java:15: error: cannot find symbol
ModLoader.AddSpawn(EntityGhost.class, 20, EnumCreatureType.creature); // this is the spawn rate for exmaple if you put 3 the mobs is very rare to spawn,The EnumCreatureType is what type of mob it is , mobs that you want to spawn in water are "waterCreature", enemies are "monster", and animals are "creature".
^
symbol: variable ModLoader
location: class mod_Ghost
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
5 errors
These are my codes:
// Date: 5/29/2012 10:37:40 PM
// Template version 1.1
// Java generated by Techne
// Keep in mind that you still need to fill in some blanks
// - ZeuX
package net.minecraft.src;
public class ModelGhost extends ModelBase
{
//fields
ModelRenderer Head;
ModelRenderer Body;
ModelRenderer Tail;
ModelRenderer tri;
public ModelGhost()
{
textureWidth = 64;
textureHeight = 32;
package net.minecraft.src;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
public class EntityGhost extends EntityAnimal
{
public EntityGhost(World world)
{
super(world);
texture = "/mob/Ghost.png"; // the name of the texture that is used with the new mob , it should be in the mob folder in minecraft.jar
setSize(1.5F, 1.9F); // this is the co ordinates where the mob is hit
}
public void writeEntityToNBT(NBTTagCompound nbttagcompound)
{
super.writeEntityToNBT(nbttagcompound); // this make your mob loadable again when you load your map you should keep it as it is if you want iy
}
public void readEntityFromNBT(NBTTagCompound nbttagcompound)
{
super.readEntityFromNBT(nbttagcompound); // this retrieves minecraft saves , so you should keep it as it is if you want it
}
protected String getLivingSound()
{
return null; // the sound of your mob when its hurt , dead , or from a distance, null means theres no sounds ,when you put a sound after all your work you need to install audiomod , the sounds should be placed in resources/mod/sound ,and should be like that: return "thefoldernameofyourmob.thenameofyourogg";the folder name of your mob should be place in resources/mod/sound, when making more than 1 sounds rename them to 1,2,3,4,5 with same name and put it here without the 1,2,3,4 ..
}
protected String getHurtSound()
{
return null;
}
protected String getDeathSound()
{
return null;
}
protected float getSoundVolume()
{
return 0.4F;
}
protected int getDropItemId()
{
return 339; // this is what you want your mob to drop when its dead ,google minecraft id and go to the minecraftwiki to see the id numbers , for exmaple 352 will drop a bone
}
}
package net.minecraft.src;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
import java.util.*;
import java.util.Map;
public class mod_Ghost extends BaseMod
{
public mod_Ghost()
{
ModLoader.RegisterEntityID(EntityGhost.class, "Ghost", ModLoader.getUniqueEntityId()); // without this code , your mob wont spawn !
ModLoader.AddSpawn(EntityGhost.class, 20, EnumCreatureType.creature); // this is the spawn rate for exmaple if you put 3 the mobs is very rare to spawn,The EnumCreatureType is what type of mob it is , mobs that you want to spawn in water are "waterCreature", enemies are "monster", and animals are "creature".
}
// RENDERERS
public void AddRenderer(Map map)
{
map.put(EntityGhost.class, new RenderGhost(new ModelGhost(), 0.5F)); // this one just assign the mob to your game and make it readable, just like RenderManager , the 0.5f is the shadow size of the mob you can make it bigger like 0.8f or smaller like 0.2f
}
public String Version()
{
return "| [1.5_01] Begginers Mob Making Tutorial 2 The Modloader Way!"; // Put here anything you like after that it will show up in the modloader logs.
}
}
package net.minecraft.src;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
public class RenderGhost extends RenderLiving
{
public RenderGhost(ModelBase modelbase, float f)
{
super(modelbase, f);
}
Did you make sure to initialize your parts at the bottom or the top inside the public class ModelYourMobName section of the model file?
These are my codes:
Please help! It would be greatly appreciated~
error: error reading jars/bin/jinput.jar; error in opening zip file
1 error
======================
!!can not find server sources, try decompiling!!
press a button to continue...
i know i did something wrong but help!!