Public void writeEntityToNBT(NBTTagCompound nbttagcompound) SetSize(1.5F, 1.9F) // this is the co ordinates where the mob is hit Texture = "/mob/yourtexturename.png" // the name of the texture that is used with the new mob, it should be in the mob folder in minecraft.jar Public class EntityYourmobname extends EntityAnimal Replace Yourmobname with the same name that you typed with the one before, also the words that i typed big letters type them big, and small type them small if its Yourmobname start your mob name with big letter, if its yourmobname start your mob name with small letter, now save it and name it : RenderYourmobname Public void doRender(Entity entity, double d, double d1, double d2,įunc_177_a((EntityYourmobname)entity, d, d1, d2, f, f1) Public void doRenderLiving(EntityLiving entityliving, double d, double d1, double d2,įunc_177_a((EntityYourmobname)entityliving, d, d1, d2, f, f1) Super.doRenderLiving(entityyourmobname, d, d1, d2, f, f1) Public void func_177_a(EntityYourmobname entityyourmobname, double d, double d1, double d2, Public RenderYourmobname(ModelBase modelbase, float f) Public class RenderYourmobname extends RenderLiving , Yourmobname is the Same name that you typed there! big letter with big letters, small with small, etc. Replace Yourmob name with the name of the mob you want to have, be careful java letters are case sensitive! and just edit the other settings explanations are there, after that save it and name it mod_Yourmobname Return "| Begginers Mob Making Tutorial 2 The Modloader Way!" // Put here anything you like after that it will show up in the modloader logs. Map.put(EntityYourmobname.class, new RenderYourmobname(new ModelYourmobname(), 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 ModLoader.AddSpawn(EntityYourmobname.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". ModLoader.RegisterEntityID(EntityYourmobname.class, "Yourmobname", ModLoader.getUniqueEntityId()) // without this code, your mob wont spawn ! Public class mod_Yourmobname extends BaseMod Decompiler options: packimports(3) braces deadcode This tutorial will teach you how to create mobs with the use of modloader and its required when using this mod, using this tutorial i think is better than the before one because in modloader mods you have more optionsįirst you need to set up mcp with modloader decompiled Ever wanted to make a mob but your a starter and you dont know any java or any codes ? try out this tutorial you can make the expert mobs just like mo creatures,more creepers.
0 Comments
Leave a Reply. |