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 EntityTiger extends EntityAnimal
{
public EntityTiger(World world)
{
super(world);
texture = "/mob/Tiger.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 352; // 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
public class ModelTiger extends ModelBase
{
public ModelTiger()
{
float scale = 0F;
face = new ModelRenderer(0, 0);
face.addBox(0F, 0F, 0F, 8, 18, 16, scale);
face.setPosition(0F, -4F, 0F);
arm1 = new ModelRenderer(0, 34);
arm1.addBox(0F, 0F, 0F, 8, 18, 8, scale);
arm1.setPosition(0F, -2F, 16F);
arm2 = new ModelRenderer(32, 34);
arm2.addBox(0F, 0F, 0F, 8, 18, 8, scale);
arm2.setPosition(0F, -2F, -8F);
leg1 = new ModelRenderer(80, 0);
leg1.addBox(0F, 0F, 0F, 8, 10, 8, scale);
leg1.setPosition(0F, 14F, 0F);
leg2 = new ModelRenderer(48, 0);
leg2.addBox(0F, 0F, 0F, 8, 10, 8, scale);
leg2.setPosition(0F, 14F, 8F);
}
public void render(float f, float f1, float f2, float f3, float f4, float f5)
{
super.render(f, f1, f2, f3, f4, f5);
face.render(f5); // all the things that isnt in the EXTEND , should be putting here , or it will not show up!
arm1.render(f5);
arm2.render(f5);
leg1.render(f5);
leg2.render(f5);
}
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5)
{
super.setRotationAngles(f, f1, f2, f3, f4, f5); // this adds animations of parts of the body , if you want to know how to animate use mob maker and my tutorial in the other thread
}
ModelRenderer face;
ModelRenderer arm1;
ModelRenderer arm2;
ModelRenderer leg1;
ModelRenderer leg2;
}
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_Tiger extends BaseMod
{
public mod_Tiger()
{
ModLoader.RegisterEntityID(EntityTiger.class, "Tiger", ModLoader.getUniqueEntityId()); // without this code , your mob wont spawn !
ModLoader.AddSpawn(EntityTiger.class, 3, 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(EntityTiger.class, new RenderTiger(new ModelTiger(), 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.
}
}
Dont worry about that, now i have a new problem (lucky for me :smile.gif:
any way when i spawn it in game the texture is messed up the head is on the bottom and its see through and well i will show picture
Now I've got everything working, I reobfuscated, but now, after installing ModLoader and my Panda mod into my minecraft.jar, when I go on Minecraft.exe I get an error about ModLoader and I'm not sure what it's about. Any help?
EDIT: Now I don't get an error, but just a black screen? Halp?
@"Yourmobname" and "yourmobname" if the name is like "GeekNoob" i wrote it in the places of "Yourmobname"
and in the "yourmobname", do i have to write it like this "geekNoob" or "geeknoob" ?
@"Geeknoob" is just an example xD
yes thats correct , if you got an error when you recompile just change the small ones from geekNoob to geeknoob
this is my mob, but when my mob shows up it has a pig model inside of my model, thus causing it to have 8 legs, what am i doing wrong?
any way when i spawn it in game the texture is messed up the head is on the bottom and its see through and well i will show picture
here is the picture
which tool did you make the mob ?
<!-- l -->List of all my other mods,creations,maps,etc..:
viewtopic.php?f=1039&t=325080&p=4488802#p4488802
<!-- l -->did you remove meta inf?
<!-- l -->List of all my other mods,creations,maps,etc..:
viewtopic.php?f=1039&t=325080&p=4488802#p4488802
<!-- l -->yes thats correct , if you got an error when you recompile just change the small ones from geekNoob to geeknoob
<!-- l -->List of all my other mods,creations,maps,etc..:
viewtopic.php?f=1039&t=325080&p=4488802#p4488802
<!-- l -->I'm having trouble with some lines of the food item scripts.
*-Game Modes Forum Moderator-*
Plz PM me
Plz PM me !
to you!
no... its just an example ... it was my last model made...
<!-- l -->List of all my other mods,creations,maps,etc..:
viewtopic.php?f=1039&t=325080&p=4488802#p4488802
<!-- l -->you need to add animations to your mob in modelYourmobname.java
<!-- l -->List of all my other mods,creations,maps,etc..:
viewtopic.php?f=1039&t=325080&p=4488802#p4488802
<!-- l -->see other tutorials they tell you how to make new items etc.... you want to add the food to your custom mob?
<!-- l -->List of all my other mods,creations,maps,etc..:
viewtopic.php?f=1039&t=325080&p=4488802#p4488802
<!-- l -->which tool did you use to make the mob?
<!-- l -->List of all my other mods,creations,maps,etc..:
viewtopic.php?f=1039&t=325080&p=4488802#p4488802
<!-- l -->