How To make a mob
Ok guys start by finding this...
EntityZombie.
--
Then save it as EntityUnicorn (Unicorn = anything)
Then go into ModelX (X = any model of a hostile mob.)
Save as ModelUnicorn
--
--
--
GO and find RenderX but use the same mob for the render as you did for the model.
--
Ok you have made your mob... He will spawn with a zombie skin, be hostile, and eat your brains.
Imma show you a few FX you can add to him and how to make him spawn.
--
--
--
Now go into EntityUnicorn and find this line.
Copy and paste it into the next line and change EntitySlime to EntityUnicorn. This will make your mob spawn in every biome.
--
--
If you want your mob to spawn in a specific biome the open BiomeGenUnicorn or whatever and put
In it.
---
--
-
Another quick note...
The 10 after EntitySlime.class is the spawn rate. Make it high to make sure your mob spawns then lower it when your ready.
Friday I will add a tutorial for making mobs. Going camping so please keep bumping this in the meantime. After Mobs I will probably show you guys how to make a new world.
Friday I will add a tutorial for making mobs. Going camping so please keep bumping this in the meantime. After Mobs I will probably show you guys how to make a new world.
I've been looking forward to a world making tutorial :biggrin.gif:
If a mod reads this, I do give you full permission to lock this thread.
Ok guys start by finding this...
EntityZombie.
--
Then save it as EntityUnicorn (Unicorn = anything)
Then go into ModelX (X = any model of a hostile mob.)
Save as ModelUnicorn
--
--
--
GO and find RenderX but use the same mob for the render as you did for the model.
--
Ok you have made your mob... He will spawn with a zombie skin, be hostile, and eat your brains.
Imma show you a few FX you can add to him and how to make him spawn.
--
--
--
Now go into EntityUnicorn and find this line.
{
super(world);
texture = "/mob/zombie.png";
moveSpeed = 0.5F;
attackStrength = 5;
}
Now locate this line
{
if(worldObj.isDaytime())
{
float f = getEntityBrightness(1.0F);
if(f > 0.5F && worldObj.canBlockSeeTheSky(MathHelper.floor_double(posX), MathHelper.floor_double(posY), MathHelper.floor_double(posZ)) && rand.nextFloat() * 30F < (f - 0.4F) * 2.0F)
{
fire = 300;
}
}
super.onLivingUpdate();
}
--
--
--
If you find this you can adjust what your mob will drop.
{
return Item.feather.shiftedIndex;
}
IMPORTANT STEP TO MAKE THE MOB SPAWN
Ok guys locate BiomeGenBase
--
Find a line similar to this.
Copy and paste it into the next line and change EntitySlime to EntityUnicorn. This will make your mob spawn in every biome.
--
--
If you want your mob to spawn in a specific biome the open BiomeGenUnicorn or whatever and put
In it.
---
--
-
Another quick note...
The 10 after EntitySlime.class is the spawn rate. Make it high to make sure your mob spawns then lower it when your ready.
By: NickR
By explaing do you mean what the code is for?
Reserved
By: NickR
Ok lol
I've been looking forward to a world making tutorial :biggrin.gif: