Replace "nameofblock" with the name of the block. NOTE: You will have to look inside Item.java and Block.java to see the names of these.
This doesn't work for me. I can't get my mob to drop any blocks. Can anyone tell me why? Is the code wrong?
Edit: Nvm, my code was wrong. I was trying
return Block.nameofblock.blockId;
I'm new to Java, but I just want to ask: is this normal? Hunting and hunting for hours, compiling and testing, only to find it's something stupid like caps?
Rollback Post to RevisionRollBack
I think you are going to love my Survival Let's Play series on YouTube! It's called Spaceboot1's Garden. I make pretty things.
I love seeing these amazing modders who make awesome new mob mods asking a bunch of noob questions a long time ago and learn from this post, you sir are epic ;D
Could someone please make me very happy and show me a VERY easy way to use mods i find modmanagers very hard as i always get a black screen when i try to play.
thanks
Um, I'm trying to recompile but I don't know where the class files end up or what I'm doing wrong, but I'm getting one hundred errors. How do I recompile those specific files. Not only that, but Spawnlist hasn't been updated for 1.6.5 yet. How do I do this? Please someone help.
Rollback Post to RevisionRollBack
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
I don't know what I'm doing wrong, but I'm still getting errors. I'm following all your directions to the letter. I think Risugami is trying to add Spawnlist to his Modloader now. You might want to talk to him to see if he managed to get it done right. Otherwise your tutorial might be all for naught in my case. Mainly because SPAWNLIST IS OBSOLETE NOW!!!!!
Rollback Post to RevisionRollBack
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
Club559, please reply to this post ASAP. I followed your tutorial step-by-step, but I still get 5 errors when trying to recompile. I don't understand. Why isn't it recompiling right? Am I doing anything wrong? Please help.
Rollback Post to RevisionRollBack
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_Predator.java:5: illegal start of type
public class mod_Predator extends class BaseMod
^
src\minecraft\net\minecraft\src\mod_Predator.java:5: <identifier> expected
public class mod_Predator extends class BaseMod
^
2 errors
These are the errors that I have so far. What do I do from here? Someone, anyone, please help me fix this. Why has no one answered me? If someone doesn't answer me soon I will send an angry horde of after everyone.
Rollback Post to RevisionRollBack
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
In this tutorial I will teach you how to make a simple mob in the shape of a person. This tutorial will not include how to model, neither does it use a model.
First, download all of the listed above. Get out your tutorial folder and go to the sources. Copy all of the sources over to your MCP source folder (decompile unmodified minecraft.jar before doing this). The EntityList is just a fix for the private function MCP converts it to, so copy that to your sources too.
Open up 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;
}
}
Replace all "Pigman" with the name of your mob. Then, replace "mymob" with the name of your mob. After that, change "porkCooked" to the new name of your item. If you want it to drop a block...
return Block.nameofblock.blockID;
Replace "nameofblock" with the name of the block. NOTE: You will have to look inside Item.java and Block.java to see the names of these.
Rename EntityPigman.java to fit your new mob.
Open up 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.
spawnlist.addCreaturesToSpawnList("Surface
biomes", EntityPigman.class);
}
}
Again, replace all "Pigman" with the name of your mob, and replace "Surface biomes" with the biome of your needs. For everywhere (like a normal mob), use Surface biomes. If you want a different one, check spawnlist.java for the list of biomes available.
Rename mod_Pigman to suit your new mob.
You are close to being done. Now just open the folder "Texture for minecraft.jar" in your tutorial files, open "mob", and replace mymob.png with the player skin that you would like. Also rename it to what you did on EntityPigman on this line:
texture = "/mob/mymob.png"
Once you have done that, compile the following:
mod_[MobName]
Entity[MobName]
After that, you are done with your mob!
If you get an error, make sure you did everything correctly.
EDIT: Thanks to everyone who told me to move the spawning to mod_Pigman instead of adding mod_SpawnPigman, and someone also confirms this makes it compatible with Mo' Creatures. If you followed this tutorial before, update your mods!
Questions:
How do I open the files? Izarc and other things like that don't work.
Will these work with 1.5_01?
Will they be compatible with the Rana Frog Girl Mod?
Will they work with the Portal Gun Mod?
Yea, I tried to do the make a human mob tutorial, but the spawnList seems outdated and I ended up with 4 errors, can anybody help? I'll post the errors or code if it will help.
i am a n00b, i edited it all correctly, but what about the result classes? and what do you mean by compiling? ( note that i am 10 but very smart) plz help
ok i got up to the point of when i have to compile everything and im clueless so can you please tell me how because this is my first mod so please bare with me here.
javac: invalid flag: src/minecraft\net\minecraft\src\EntityCoolDude.Java
Usage: javac <options> <source files>
use -help for a list of possible options
==================
> Done in 0.47 seconds
> Recompiling server...
> Done in 5.77 seconds
Press any key to continue . . .
______________________________________________________________________________________________________________
This doesn't work for me. I can't get my mob to drop any blocks. Can anyone tell me why? Is the code wrong?
Edit: Nvm, my code was wrong. I was trying
I'm new to Java, but I just want to ask: is this normal? Hunting and hunting for hours, compiling and testing, only to find it's something stupid like caps?
Want to play Minecraft SSP like Spaceboot1? Try my modpack, all mods made by me, Spaceboot1!
Check out my Minecraft Modding Tutorials!
thanks
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
To take the test, check out
https://minecraftnoobtest.com/test.php
Don't click this link, HE is haunting it...
BTW will this ruin my Rana mod for 1.5_01? Is this made for 1.5_01, anyways? I want to add Notch, Herobrine, Humans, Pigmen and Creepermen.
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
To take the test, check out
https://minecraftnoobtest.com/test.php
Don't click this link, HE is haunting it...
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
To take the test, check out
https://minecraftnoobtest.com/test.php
Don't click this link, HE is haunting it...
These are the errors that I have so far. What do I do from here? Someone, anyone, please help me fix this. Why has no one answered me? If someone doesn't answer me soon I will send an angry horde of after everyone.
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
To take the test, check out
https://minecraftnoobtest.com/test.php
Don't click this link, HE is haunting it...
== MCP v4.1 ==
> Recompiling client...
"C:\Program Files\Java\jdk1.6.0_24\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\EntityPignoob.java:6: invalid method declaration
; return type required
public EntityPigman(World world)
^
1 error
==================
> Done in 1.62 seconds
> Recompiling server...
> Done in 3.86 seconds
Press any key to continue . . .
what that mean?
How do I open the files? Izarc and other things like that don't work.
Will these work with 1.5_01?
Will they be compatible with the Rana Frog Girl Mod?
Will they work with the Portal Gun Mod?
You edit the base and size in the model file, and they're actions in the entity file.
With this code
Can anyone help me with this?
> Recompiling client...
javac.exe -g -verbose -classpath "lib/;lib/*;jars/bin/minecraft.jar;jars/bin/jin
put.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath src/minecraft -d
bin/minecraft src/minecraft\net\minecraft\client\*.java src/minecraft\net\minec
raft\isom\*.java src/minecraft\net\minecraft\src\*.java conf/patches/*.java fai
led.
Return code : 2
== ERRORS FOUND ==
javac: invalid flag: src/minecraft\net\minecraft\src\EntityCoolDude.Java
Usage: javac <options> <source files>
use -help for a list of possible options
==================
> Done in 0.47 seconds
> Recompiling server...
> Done in 5.77 seconds
Press any key to continue . . .
______________________________________________________________________________________________________________
I have no idea what this means :huh.gif: