can you make a video tutorial of this instead? cuz i have my skin ready and i wanna make it the behavior of a zombie and spawns on sand. but i have no idea what decompile and recompile and stuff means. MY BRAIN! IT HURTS!
i sent mr.okushama a pm about a video tutorial no reply yet but has only been 30 minutes he is the pride and joy of this tutorial
everytime i try and recompile i get this ps im doing the mob creation one by club559
*** Minecraft Coder Pack Version 2.7 ***
Compiling Minecraft
sources\minecraft\net\minecraft\src\mod_Elf.java:5: net.minecraft.src.mod_Elf is
not abstract and does not override abstract method Version() in net.minecraft.s
rc.BaseMod
public class mod_Elf extends BaseMod
^
sources\minecraft\net\minecraft\src\mod_Elf.java:14: addMapping(java.lang.Class,
java.lang.String,int) has private access in net.minecraft.src.EntityList
EntityList.addMapping(EntityElf.class, "Elf", ModLoader.getUniqueEntityId(
));
^
2 errors
Compiling Minecraft Start Class
*** minecraft_server.jar was not found, skipping
=== MCP 2.7 recompile script finished ===
Press any key to continue . . .
help plz i just want to add my mob to the game
everytime i try and recompile i get this ps im doing the mob creation one by club559
*** Minecraft Coder Pack Version 2.7 ***
Compiling Minecraft
sources\minecraft\net\minecraft\src\mod_Elf.java:5: net.minecraft.src.mod_Elf is
not abstract and does not override abstract method Version() in net.minecraft.s
rc.BaseMod
public class mod_Elf extends BaseMod
^
sources\minecraft\net\minecraft\src\mod_Elf.java:14: addMapping(java.lang.Class,
java.lang.String,int) has private access in net.minecraft.src.EntityList
EntityList.addMapping(EntityElf.class, "Elf", ModLoader.getUniqueEntityId(
));
^
2 errors
Compiling Minecraft Start Class
*** minecraft_server.jar was not found, skipping
=== MCP 2.7 recompile script finished ===
Press any key to continue . . .
help plz i just want to add my mob to the game
I think I might now how to fix the first error. In you mod_Elf add this method:
public String Version(){
return "1.2_02";
}
I might be wrong, I don't know much about Java but..... you could try this.
good tutorial ^^ easy to understand... but, as others have said in earlier posts, errors on recompiling... same errors as all the other guys &/or gals.
Rollback Post to RevisionRollBack
Old mostly dead account. I only check here once in a blue moon.
To anyone having problems recompiling, make sure to take Basemod and modLoader files from the most recent version of Modloader. Do not take the other files. Also make sure to use the most recent spawnlist. This should fix all decompile/recompile errors relevant to those two. NOTE: If you do this, you will not be able to run test.bat. You will have to reobfuscate the files, and test them on your own.
Also the way spawnlist and modloader are called in this guide are wrong.
everytime i try and recompile i get this ps im doing the mob creation one by club559
*** Minecraft Coder Pack Version 2.7 ***
Compiling Minecraft
sources\minecraft\net\minecraft\src\mod_Elf.java:5: net.minecraft.src.mod_Elf is
not abstract and does not override abstract method Version() in net.minecraft.s
rc.BaseMod
public class mod_Elf extends BaseMod
^
sources\minecraft\net\minecraft\src\mod_Elf.java:14: addMapping(java.lang.Class,
java.lang.String,int) has private access in net.minecraft.src.EntityList
EntityList.addMapping(EntityElf.class, "Elf", ModLoader.getUniqueEntityId(
));
^
2 errors
Compiling Minecraft Start Class
*** minecraft_server.jar was not found, skipping
=== MCP 2.7 recompile script finished ===
Press any key to continue . . .
help plz i just want to add my mob to the game
I think I might now how to fix the first error. In you mod_Elf add this method:
public String Version(){
return "1.2_02";
}
I might be wrong, I don't know much about Java but..... you could try this.
To anyone having problems recompiling, make sure to take Basemod and modLoader files from the most recent version of Modloader. Do not take the other files. Also make sure to use the most recent spawnlist. This should fix all decompile/recompile errors relevant to those two. NOTE: If you do this, you will not be able to run test.bat. You will have to reobfuscate the files, and test them on your own.
Also the way spawnlist and modloader are called in this guide are wrong.
everytime i try and recompile i get this ps im doing the mob creation one by club559
*** Minecraft Coder Pack Version 2.7 ***
Compiling Minecraft
sources\minecraft\net\minecraft\src\mod_Elf.java:5: net.minecraft.src.mod_Elf is
not abstract and does not override abstract method Version() in net.minecraft.s
rc.BaseMod
public class mod_Elf extends BaseMod
^
sources\minecraft\net\minecraft\src\mod_Elf.java:14: addMapping(java.lang.Class,
java.lang.String,int) has private access in net.minecraft.src.EntityList
EntityList.addMapping(EntityElf.class, "Elf", ModLoader.getUniqueEntityId(
));
^
2 errors
Compiling Minecraft Start Class
*** minecraft_server.jar was not found, skipping
=== MCP 2.7 recompile script finished ===
Press any key to continue . . .
help plz i just want to add my mob to the game
I think I might now how to fix the first error. In you mod_Elf add this method:
public String Version(){
return "1.2_02";
}
I might be wrong, I don't know much about Java but..... you could try this.
Ok this is annoying the hell out of me, I've been trying to get a single mob to appear for a full week or two now. Today I noticed the spawnlist adding thing is different since I had no other way to know that till I was told. Still not working. I even used the tutorial files and modified them with a small test of extra code.
EntityPigman.java
package net.minecraft.src;
public class EntityPigman extends EntityCreature
{
public EntityPigman(World world)
{
super(world);
//This is the texture for your mob
texture = "/mob/mymob.png";
}
protected int getDropItemId()
{
//This is the item your mob will drop
return Item.porkCooked.shiftedIndex;
}
}
mod_Pigman.java
package net.minecraft.src;
import java.lang.reflect.Method;
public class mod_Pigman extends BaseMod
{
public mod_Pigman()
{
}
public String Version()
{
return "1.2_02";
}
public void AddEntityID()
{
//This defines your entity. Class name, entity name, and then the entity ID.
EntityList.addMapping(EntityPigman.class, "Pigman", ModLoader.getUniqueEntityId());
//This adds your mob to the spawn list.
ModLoader.RegisterEntityID(EntityPigman.class, "Pigman", ModLoader.getUniqueEntityId());
spawnlist.add("Surface biomes", 1, new Object[] {
EntityPigman.class
});
}
}
I purposely left both the old and new coding for the UniqueID thing cause I wasn't sure if anything was even working. No matter what I've tried I NEVER EVER see a new mob ANYWHERE.
I've taken the newest BaseMod.class and ModLoader.class, put em both in a clean Minecraft jar, decompiled the jar, put in the mod_ file and entity file along with the entitylist file. Recompiled, obf'd, added the texture file to the jar since just placing it in temp>mob doesn't seem to work. Booted, and you can guess.
Ok this is annoying the hell out of me, I've been trying to get a single mob to appear for a full week or two now. Today I noticed the spawnlist adding thing is different since I had no other way to know that till I was told. Still not working. I even used the tutorial files and modified them with a small test of extra code.
EntityPigman.java
package net.minecraft.src;
public class EntityPigman extends EntityCreature
{
public EntityPigman(World world)
{
super(world);
//This is the texture for your mob
texture = "/mob/mymob.png";
}
protected int getDropItemId()
{
//This is the item your mob will drop
return Item.porkCooked.shiftedIndex;
}
}
mod_Pigman.java
package net.minecraft.src;
import java.lang.reflect.Method;
public class mod_Pigman extends BaseMod
{
public mod_Pigman()
{
}
public String Version()
{
return "1.2_02";
}
public void AddEntityID()
{
//This defines your entity. Class name, entity name, and then the entity ID.
EntityList.addMapping(EntityPigman.class, "Pigman", ModLoader.getUniqueEntityId());
//This adds your mob to the spawn list.
ModLoader.RegisterEntityID(EntityPigman.class, "Pigman", ModLoader.getUniqueEntityId());
spawnlist.add("Surface biomes", 1, new Object[] {
EntityPigman.class
});
}
}
I purposely left both the old and new coding for the UniqueID thing cause I wasn't sure if anything was even working.
No matter what I've tried I NEVER EVER see a new mob ANYWHERE.
Any ideas?
I'm kind of short on time so I can't read through your code but I rewrote this guide here: viewtopic.php?f=25&t=165582
i fixed the things that were missing and wrote it step by step so you should find whats wrong there. Hope I helped.
Rollback Post to RevisionRollBack
GENERATION 25: The first time you see this, copy it into your sig on any forum and add 1 to the generation.
sources\minecraft\net\minecraft\src\mod_HCZombieSimple.java:19:can not find symbol
symbol: variable Modloader
location: class net.minecraft.src.mod_HCZombieSimple
EntityList.addMapping<EntityHCZombieSimple.class,"HeadCrabZombie", ModLoader.getUnigueEntityID<>>;
sources\minecraft\net\minecraft\src\mod_HCZombieSimple.java:19:can not find symbol
symbol: variable spawnlist
location: class net.minecraft.src.mod_HCZombieSimple
spawnlist.addCreatureToSpawnList<"Surfacebiomes", EntityHCZombieSimaple.class>;
i sent mr.okushama a pm about a video tutorial no reply yet but has only been 30 minutes he is the pride and joy of this tutorial
*** Minecraft Coder Pack Version 2.7 ***
Compiling Minecraft
sources\minecraft\net\minecraft\src\mod_Elf.java:5: net.minecraft.src.mod_Elf is
not abstract and does not override abstract method Version() in net.minecraft.s
rc.BaseMod
public class mod_Elf extends BaseMod
^
sources\minecraft\net\minecraft\src\mod_Elf.java:14: addMapping(java.lang.Class,
java.lang.String,int) has private access in net.minecraft.src.EntityList
EntityList.addMapping(EntityElf.class, "Elf", ModLoader.getUniqueEntityId(
));
^
2 errors
Compiling Minecraft Start Class
*** minecraft_server.jar was not found, skipping
=== MCP 2.7 recompile script finished ===
Press any key to continue . . .
help plz i just want to add my mob to the game
I think I might now how to fix the first error. In you mod_Elf add this method:
I might be wrong, I don't know much about Java but..... you could try this.
http://www.minecraftforum.net/viewtopic.php?f=25&t=157176 list of my maps
Old mostly dead account. I only check here once in a blue moon.
Also the way spawnlist and modloader are called in this guide are wrong.
ModLoader.RegisterEntityID(Entityvaultboy.class, "vaultboy", ModLoader.getUniqueEntityId());
spawnlist.add("Surface biomes", 1, new Object[] {
Entityvaultboy.class
});
that is the proper syntax. Obviously replace vaultboy with the name of your mob. that should fix pretty much all of your problems. Good luck.
where in the code do i add it in?
coud you plz write up a basic mob code so people can see where to insert it
dont worry i did it
EntityPigman.java
mod_Pigman.java
I purposely left both the old and new coding for the UniqueID thing cause I wasn't sure if anything was even working. No matter what I've tried I NEVER EVER see a new mob ANYWHERE.
I've taken the newest BaseMod.class and ModLoader.class, put em both in a clean Minecraft jar, decompiled the jar, put in the mod_ file and entity file along with the entitylist file. Recompiled, obf'd, added the texture file to the jar since just placing it in temp>mob doesn't seem to work. Booted, and you can guess.
Any ideas?
I'm kind of short on time so I can't read through your code but I rewrote this guide here: viewtopic.php?f=25&t=165582
i fixed the things that were missing and wrote it step by step so you should find whats wrong there. Hope I helped.
its shows *** Minecraft Coder Pack Version 2.7 ***
then nothing!
im sure i put "bin" and "resources" to jars
Did you put a fresh copy of minecraft.jar?