More Info: How to Change Your Minecraft Skin in Java Edition
Need Help? Click here for more information on How to Change Your Minecraft Skin in Java Edition.
Need Help? Click here for more information on How to Change Your Minecraft Skin in Java Edition.
Minecraft
MCP 5.0
Modloader
Eclipse Classic
Note: you need MCP ready with Modloader to do this!
OK, first open up Eclipse and choose the "eclipse" folder inside your MPC folder for your workspace. Click the "+" nest to the "client" folder, then on "src", and on "net.minecraft.src". You will see most (if not all) of the classes in minecraft. Right-click on one and select "New > Class". Name it "EntitySteve" and type (or copy) this code into the workspace:
Don't want it to use the default Steve skin? Then make the skin you want and put it in a folder (made by YOU).
Example: I make a folder called "mymob" and in that I place the skin I want, like katmooskin.png, then I rename the part "texture = "/mob/char.png" with "texture = "/mymob/katmooskin.png".
Place that folder in your minecraft.jar (located in "jars > bin > minecraft.jar" in your MCP folder)
It will sound like the "harp" note (from the noteblock) when it "talks", the "snare" note when hit, and the "explosion" sound when it dies. To change that, go into your "Start" menu (The button at the bottom left of your screen" and click the "Run" button. Type %APPDATA% and locate your .minecraft folder. Click "resources" and then "newsound". It will have many sounds to choose from.
Example: I want it to sound like a wolf bark when it gets hit, so I click "mob > wolf" and then you will see "bark1, bark2, and bark3". find the part of the code that says
replace return "note.snare" with return "mob.wolf.bark" . Now it will sound like a barking wolf when it gets hit!
To change what it drops, find this in the code:
To make it drop only one thing change, r.nextInt(2)==0 with, r.nextInt(1)==0
Example: I want it to drop a diamond pickaxe or a diamond block when it dies. I change:
with...
Now we want it to spawn. Make a new class and name it "mod_Steve" (or change Steve with what you want) then type (or copy) this code:
The "100" in EntitySteve.class, 100, 1, 3, EnumCreatureType.creature is the weighted probability to spawn your mob rather than another one, and the 1, 3, is how much can be in a group (1 to 3). You may want it to be more rare, or more common.
Example: I want it to spawn my mob alot more than others, about 300, with groups of 12 to 20 in a group! So I change
EntitySteve.class, 100, 1, 3, EnumCreatureType.creature
with...
EntitySteve.class, 300, 12, 20, EnumCreatureType.creature
You may want it to spawn in a single Biome (like a snowy/wintery biome) so change
to
This would only spawn it in icePlains and iceMountains.
Note: I MAY have left something out, if I did then I'm sorry, I will add/fix it When I get the chance.
"I know there are people in the world that do not love their fellow human beings, and I hate people like that." -Tom Lehrer
Otherwise this is Great!
This mob tutorial is complete based on this vid by Wouter10123!
"I know there are people in the world that do not love their fellow human beings, and I hate people like that." -Tom Lehrer
Good question, I have not figured that out my self... I have next to no java experience :\
"I know there are people in the world that do not love their fellow human beings, and I hate people like that." -Tom Lehrer
ah, ok thx, I'll edit the post and add that!
"I know there are people in the world that do not love their fellow human beings, and I hate people like that." -Tom Lehrer
HAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARRRRRRRRRRRRRRRD
:unsure.gif:
src\minecraft\net\minecraft\src\mod_Snowmen.java:11: '}' expected
BiomeGenBase.icePlains, BiomeGenBase.iceMountains]);
^
src\minecraft\net\minecraft\src\mod_Snowmen.java:11: ';' expected
BiomeGenBase.icePlains, BiomeGenBase.iceMountains]);
^
2 errors
==================
could you tell me why? I want it to be easy for everyone.
hmm... could I see your code? I may find something wrong...
"I know there are people in the world that do not love their fellow human beings, and I hate people like that." -Tom Lehrer
Any help?
"I know there are people in the world that do not love their fellow human beings, and I hate people like that." -Tom Lehrer
any tips on how to get eclipse to work?
Never mind it turns out i just had some other weird file at my other attempt at a mod, now i have only 1 error:
src\minecraft\net\minecraft\src\EntitySteve.java:5: net.minecraft.src.EntityStev
e is not abstract and does not override abstract method func_40145_a(net.minecra
ft.src.EntityAnimal) in net.minecraft.src.EntityAnimal
public class EntitySteve extends EntityAnimal{
^
Edit: Cant mod because it requires Java SDK and thats x64 bit and my PC is x32.. ._.
When you place your minecraft.jar file in your jars folder in the mcp folder, delete the meta-inf folder and install modloader as if you were installing a mod. I reccommend looking up how to set up mcp with modloader and how to set up eclipse if you don't already know how.
Everything is exactly the same, except that the slashes in 7-zip are going the other way than in the code. Does this matter?