Alright, after going through your tutorial many times, and looking through all the posts on this forum, I managed to fix 22 errors to 5 errors.
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\JWorld_AnibusEntity.class.java:3: class JWorld_A
nibusEntity is public, should be declared in a file named JWorld_AnibusEntity.ja
va
public class JWorld_AnibusEntity extends EntityAnimal
^
src\minecraft\net\minecraft\src\mod_Anibus.java:5: cannot find symbol
symbol: class BaseMod
public class mod_Anibus extends BaseMod
^
src\minecraft\net\minecraft\src\mod_Anibus.java:10: cannot find symbol
symbol : variable ModLoader
location: class net.minecraft.src.mod_Anibus
ModLoader.RegisterEntityID(JWorld_AnibusEntity.class, "Anibus", ModLoader.getUni
queEntityId());
^
src\minecraft\net\minecraft\src\mod_Anibus.java:10: cannot find symbol
symbol : variable ModLoader
location: class net.minecraft.src.mod_Anibus
ModLoader.RegisterEntityID(JWorld_AnibusEntity.class, "Anibus", ModLoader.getUni
queEntityId());
^
src\minecraft\net\minecraft\src\mod_Anibus.java:11: cannot find symbol
symbol : variable ModLoader
location: class net.minecraft.src.mod_Anibus
ModLoader.AddSpawn(JWorld_AnibusEntity.class, 100, EnumCreatureType.creature);
^
5 errors
Help please?
Ok. So you appear to be decompiling a vanilla minecraft.jar. The .jar NEEDS to have modloader installed on it before you decompile for this to work. If you don't know how, look at some set up walkthroughs.
Yeah anything extended by one thing becomes a subclass of the thing it was extended from, that means any protected/public methods it has, the sub class can use/uses those. So you could actually make a couple of base/default classes for various types of entities you may make. The pigzombie entity/model actually extends the zombie entity/model.
Ok. So you appear to be decompiling a vanilla minecraft.jar. The .jar NEEDS to have modloader installed on it before you decompile for this to work. If you don't know how, look at some set up walkthroughs.
What?, Really?, Could of swore I had modloader installed already,let me reinstall...
@Musrae Dont feel bad, Im sure people here are happy to help, as long as your not a total noob on this type of modding I guess :tongue.gif:
Rollback Post to RevisionRollBack
Famous Nyan seed has caves now along with 3 other special maps for MCPE! Check here for downloads: http://tinyurl.com/c75ax6y
Alright, after going through your tutorial many times, and looking through all the posts on this forum, I managed to fix 22 errors to 5 errors.
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\JWorld_AnibusEntity.class.java:3: class JWorld_A
nibusEntity is public, should be declared in a file named JWorld_AnibusEntity.ja
va
public class JWorld_AnibusEntity extends EntityAnimal
^
src\minecraft\net\minecraft\src\mod_Anibus.java:5: cannot find symbol
symbol: class BaseMod
public class mod_Anibus extends BaseMod
^
src\minecraft\net\minecraft\src\mod_Anibus.java:10: cannot find symbol
symbol : variable ModLoader
location: class net.minecraft.src.mod_Anibus
ModLoader.RegisterEntityID(JWorld_AnibusEntity.class, "Anibus", ModLoader.getUni
queEntityId());
^
src\minecraft\net\minecraft\src\mod_Anibus.java:10: cannot find symbol
symbol : variable ModLoader
location: class net.minecraft.src.mod_Anibus
ModLoader.RegisterEntityID(JWorld_AnibusEntity.class, "Anibus", ModLoader.getUni
queEntityId());
^
src\minecraft\net\minecraft\src\mod_Anibus.java:11: cannot find symbol
symbol : variable ModLoader
location: class net.minecraft.src.mod_Anibus
ModLoader.AddSpawn(JWorld_AnibusEntity.class, 100, EnumCreatureType.creature);
^
5 errors
Help please?
As said above, you have not installed ModLoader, or it was not installed properly before the MCP. My openning post talks about this. Please (for everyone) read the full OP before picking and chosing a tutorial in my thread. They follow the order that I have descovered/worked on them, and may require the previous tutorial to continue.
Also..
to everyone..
please..
use.. ECLIPSE
I will no long attempt to trouble shoot compile errors. If you were using Eclipse, you would not be able to run your code as it would have pointed out these errors.
How can you make it so mobs don't jump very often/unless they have to?
Thanks again,
Muserae
Questions are not bad, as long as you are not asking about something already posted here. I don't know. What I did with my mount code is to check if there is a horizontal collision, and if so (hitting a block in the direction you want to go) then jump. The horse works good. With the Flything, I instead had it start to fly up. So if you are against a wall, it will fly up until it clears it.
As said above, you have not installed ModLoader, or it was not installed properly before the MCP. My openning post talks about this. Please (for everyone) read the full OP before picking and chosing a tutorial in my thread. They follow the order that I have descovered/worked on them, and may require the previous tutorial to continue.
Also..
to everyone..
please..
use.. ECLIPSE
I will no long attempt to trouble shoot compile errors. If you were using Eclipse, you would not be able to run your code as it would have pointed out these errors.
Someone else already answered my question o.o...Also i already said i thought i had it installed....
Are you still going to trouble shoot issues for Eclispe if people dont understand them
Rollback Post to RevisionRollBack
Famous Nyan seed has caves now along with 3 other special maps for MCPE! Check here for downloads: http://tinyurl.com/c75ax6y
Someone else already answered my question o.o...Also i already said i thought i had it installed....
Are you still going to trouble shoot issues for Eclispe if people dont understand them
don't get me wrong, I am trying to help all I can. But a lot of issues have come to me because of syntax issues, like missing "}" and ";". The nice thing about eclipse is it will tell you when and where you have these issues. If you haven't watched it yet, look at my 5 min vid on using eclipse (not installing it) linked in my opening post. I show the benifits of using it. I don't have to wait the seconds to minutes to compile and obuscate my files before I can play them. It's much easier and faster. Trust me.
@Inlan I installed modloader correctly, I started it on MCP JUST to make sure if modloader was installed, it was, it says MODLOADER INTIALIZING. So then i delete the old src and put in my original src with the codes, then it gives me the same errors that say i dont got modloader installed., Im not using eclispe just because i want to see what it would say for recompile, it wouldnt start up MC on eclispe.
package net.minecraft.src;
public class JWorld_AnibusEntity extends EntityAnimal
{
public JWorld_AnibusEntity(World world)
{
super(world);
texture = "/mob/anibus.png";
setSize(0.9F,1.3F);
moveSpeed = 0.75F;
//yOffset *= 6F;
health = 25;
}
public void writeEntityToNBT(NBTTagCompound nbttagcompound)
{
super.writeEntityToNBT(nbttagcompound);
}
public void readEntityFromNBT(NBTTagCompound nbttagcompound)
{
super.readEntityFromNBT(nbttagcompound);
}
protected String getLivingSound()
{
return "mob.cow";
}
protected String getHurtSound()
{
return "mob.cow";
}
protected String getDeathSound()
{
return "mob.cow";
}
protected float getSoundVolume()
{
return 0.4F;
}
protected int getDropItemId()
{
return 0;
}
public boolean interact(EntityPlayer entityplayer)
{
//can use this for right click reactions
return false;
}
}
And then my mod_Anibus
package net.minecraft.src;
import java.util.Map;
public class mod_Anibus extends BaseMod
{
public void JWorldAddMobs()
{
ModLoader.RegisterEntityID(JWorld_AnibusEntity.class, "Anibus", ModLoader.getUniqueEntityId());
ModLoader.AddSpawn(JWorld_AnibusEntity.class, 100, EnumCreatureType.creature);
}
public void AddRenderer(Map map)
{
map.put(JWorld_AnibusEntity.class, new JWorld_AnibusRender(new JWorld_AnibusModel(), 0.5F));
}
public String Version()
{
return null;
}
}
I fixed 1 error and i dont see any red x marks on eclispe..
Recompile Error Log
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_Anibus.java:5: cannot find symbol
symbol: class BaseMod
public class mod_Anibus extends BaseMod
^
src\minecraft\net\minecraft\src\mod_Anibus.java:10: cannot find symbol
symbol : variable ModLoader
location: class net.minecraft.src.mod_Anibus
ModLoader.RegisterEntityID(JWorld_AnibusEntity.class, "Anibus", ModLoader.getUni
queEntityId());
^
src\minecraft\net\minecraft\src\mod_Anibus.java:10: cannot find symbol
symbol : variable ModLoader
location: class net.minecraft.src.mod_Anibus
ModLoader.RegisterEntityID(JWorld_AnibusEntity.class, "Anibus", ModLoader.getUni
queEntityId());
^
src\minecraft\net\minecraft\src\mod_Anibus.java:11: cannot find symbol
symbol : variable ModLoader
location: class net.minecraft.src.mod_Anibus
ModLoader.AddSpawn(JWorld_AnibusEntity.class, 100, EnumCreatureType.creature);
^
4 errors
Help...
Rollback Post to RevisionRollBack
Famous Nyan seed has caves now along with 3 other special maps for MCPE! Check here for downloads: http://tinyurl.com/c75ax6y
Hey for my penguin model, My penguins head turns one way and the beak goes the other :sleep.gif: . I have the offset ball in the same place and the beak is suppose to move with the head rotation.
So then i delete the old src and put in my original src with the codes,
You don't delete the original src, you add yours over it! If you deleted it ofc your gonna get errors.
Unless you mean you deleted only what you replaced, in which case then ModLoader is installed but it's not decompiled. Try re-installing it to a fresh .jar then taking that and putting it in the jars/bin folder, decompile and try again. (Also if you haven't tried already when you install ModLoader to that .jar you MUST re-decompile otherwise you don't get ModLoader java files which is why it's erroring.)
You don't delete the original src, you add yours over it! If you deleted it ofc your gonna get errors. Unless you mean you deleted only what you replaced, in which case...
I replaced the original SRC unedited to my new SRC edited.
Rollback Post to RevisionRollBack
Famous Nyan seed has caves now along with 3 other special maps for MCPE! Check here for downloads: http://tinyurl.com/c75ax6y
So your saying, even though when i launch it with a unedited SRC, and it says MODLOADER INTIALIZING 1.7.3., it still means I dont got it installed correctly?
Rollback Post to RevisionRollBack
Famous Nyan seed has caves now along with 3 other special maps for MCPE! Check here for downloads: http://tinyurl.com/c75ax6y
did you install modloader and then decompile? And then attempt to add your source files? It just sounds like, from the errors, it cannot find the modloader variables...unless Inlan can shoot us some wisdom. :biggrin.gif:
The main thing about these errors is they are pretty self explanatory.
src\minecraft\net\minecraft\src\mod_Anibus.java:11: cannot find symbol
symbol : variable ModLoader (Basically means symbol = the variable ModLoader)
Ok. So you appear to be decompiling a vanilla minecraft.jar. The .jar NEEDS to have modloader installed on it before you decompile for this to work. If you don't know how, look at some set up walkthroughs.
Come on, bro, I got CREEPER BLOOD! (winning!)
Yeah anything extended by one thing becomes a subclass of the thing it was extended from, that means any protected/public methods it has, the sub class can use/uses those. So you could actually make a couple of base/default classes for various types of entities you may make. The pigzombie entity/model actually extends the zombie entity/model.
How can you make it so mobs don't jump very often/unless they have to?
Thanks again,
Muserae
What?, Really?, Could of swore I had modloader installed already,let me reinstall...
@Musrae Dont feel bad, Im sure people here are happy to help, as long as your not a total noob on this type of modding I guess :tongue.gif:
As said above, you have not installed ModLoader, or it was not installed properly before the MCP. My openning post talks about this. Please (for everyone) read the full OP before picking and chosing a tutorial in my thread. They follow the order that I have descovered/worked on them, and may require the previous tutorial to continue.
Also..
to everyone..
please..
use..
ECLIPSE
I will no long attempt to trouble shoot compile errors. If you were using Eclipse, you would not be able to run your code as it would have pointed out these errors.
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
Questions are not bad, as long as you are not asking about something already posted here. I don't know. What I did with my mount code is to check if there is a horizontal collision, and if so (hitting a block in the direction you want to go) then jump. The horse works good. With the Flything, I instead had it start to fly up. So if you are against a wall, it will fly up until it clears it.
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
Someone else already answered my question o.o...Also i already said i thought i had it installed....
Are you still going to trouble shoot issues for Eclispe if people dont understand them
don't get me wrong, I am trying to help all I can. But a lot of issues have come to me because of syntax issues, like missing "}" and ";". The nice thing about eclipse is it will tell you when and where you have these issues. If you haven't watched it yet, look at my 5 min vid on using eclipse (not installing it) linked in my opening post. I show the benifits of using it. I don't have to wait the seconds to minutes to compile and obuscate my files before I can play them. It's much easier and faster. Trust me.
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
the mod_ class:
my Entity class:
my Render class:
my Model class:
my Gui class:
please help :smile.gif: sorry for the long post cause i dont know what the spoiler code is :tongue.gif:
Heres my codes
Model:
Render
Entity
And then my mod_Anibus
I fixed 1 error and i dont see any red x marks on eclispe..
Recompile Error Log
Help...
Model: Baby Penguin
Model: Penguin
You don't delete the original src, you add yours over it! If you deleted it ofc your gonna get errors.
Unless you mean you deleted only what you replaced, in which case then ModLoader is installed but it's not decompiled. Try re-installing it to a fresh .jar then taking that and putting it in the jars/bin folder, decompile and try again. (Also if you haven't tried already when you install ModLoader to that .jar you MUST re-decompile otherwise you don't get ModLoader java files which is why it's erroring.)
I replaced the original SRC unedited to my new SRC edited.
The main thing about these errors is they are pretty self explanatory.
src\minecraft\net\minecraft\src\mod_Anibus.java:11: cannot find symbol
symbol : variable ModLoader (Basically means symbol = the variable ModLoader)
Ergo, it cannot find Modloader.
Will try that, but i dont think it will work...I dont see how, will edit what it does...
EDIT: It WORKS O_O, Now to find my mob...
O HAI THERE ANIBUS :biggrin.gif:
I know how to fix the texture...simple thing i forgot :tongue.gif: