To Mod? No, but then you will have to create a similar system that could take monts of proffessional programing to Complete. So essentially YES you need MCP to mod minecraft. As to this moment there is no other way :tongue.gif:
src\minecraft\net\minecraft\src\EntitySquirrel.java:7: class Entitysquirrel is
ublic, should be declared in a file named Entitysquirrel.java
public class Entitysquirrel extends EntityAnimals
^
src\minecraft\net\minecraft\src\mod_Squirrel.java:8: class mod_squirrel is pub
c, should be declared in a file named mod_squirrel.java
public class mod_squirrel extends BaseMod
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:7: class ModelDeer is publi
should be declared in a file named ModelDeer.java
public class ModelDeer extends ModelQuadraped
^
src\minecraft\net\minecraft\src\ModleSquirrel.java:6: class Model is public, s
uld be declared in a file named Model.java
public class Model extends ModelBase
^
src\minecraft\net\minecraft\src\RenderSquirrel.java:7: class Rendersquirrel is
ublic, should be declared in a file named Rendersquirrel.java
public class Rendersquirrel extends RenderLiving
^
src\minecraft\net\minecraft\src\EntitySquirrel.java:7: cannot find symbol
symbol: class EntityAnimals
public class Entitysquirrel extends EntityAnimals
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:7: cannot find symbol
symbol: class ModelQuadraped
public class ModelDeer extends ModelQuadraped
^
src\minecraft\net\minecraft\src\EntitySquirrel.java:13: cannot find symbol
symbol : variable texture
location: class net.minecraft.src.Entitysquirrel
texture = "/mob/squirrel.png"; // this initializes the texture used for the mo
^
src\minecraft\net\minecraft\src\EntitySquirrel.java:14: cannot find symbol
symbol : method setSize(float,float)
location: class net.minecraft.src.Entitysquirrel
setSize(1.5F, 1.9F); // this sets the HIT AREA of the mob.
^
src\minecraft\net\minecraft\src\EntitySquirrel.java:19: cannot find symbol
symbol : variable super
location: class net.minecraft.src.Entitysquirrel
super.writeEntityToNBT(nbttagcompound); // this saves the mob to disk, so it c
be loaded later
^
src\minecraft\net\minecraft\src\EntitySquirrel.java:24: cannot find symbol
symbol : variable super
location: class net.minecraft.src.Entitysquirrel
super.readEntityFromNBT(nbttagcompound); // this retrieves saved data about th
mob from the hard drive
^
src\minecraft\net\minecraft\src\mod_Squirrel.java:21: cannot find symbol
symbol : class Modelsquirrel
location: class net.minecraft.src.mod_squirrel
map.put(Entitysquirrel.class, new Rendersquirrel(new Modelsquirrel(), 0.5F));
this assigns the Entity class to the appropriate renderer and model class.
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:13: cannot find symbol
symbol : variable body
location: class net.minecraft.src.ModelDeer
body = new ModelRenderer(0, 0); // this sets up the ModelRender part. The "0,
is the texture index (top left corner) where the part will start overlaying t
s texture onto itself
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:14: cannot find symbol
symbol : variable body
location: class net.minecraft.src.ModelDeer
body.addBox(-5F, -4F, -7F, 10, 8, 15); // these set up offset, size, and scale
Rotation points in Techne are what's considered the center of the part, so try
eeping the blue circles in the very center of the part (unless setting the rot
ion point inside another, like a neck or head)
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:15: cannot find symbol
symbol : variable body
location: class net.minecraft.src.ModelDeer
body.setPosition(0F, 10F, -7); // this moves the part (from the rotation point
into the desired placement.
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:17: cannot find symbol
symbol : variable leg1
location: class net.minecraft.src.ModelDeer
leg1 = new ModelRenderer(0, 0);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:18: cannot find symbol
symbol : variable leg1
location: class net.minecraft.src.ModelDeer
leg1.addBox(0F, 0F, 0F, 4, 8, 3);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:19: cannot find symbol
symbol : variable leg1
location: class net.minecraft.src.ModelDeer
leg1.setPosition(1F, 14F, -2);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:21: cannot find symbol
symbol : variable leg2
location: class net.minecraft.src.ModelDeer
leg2 = new ModelRenderer(0, 0);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:22: cannot find symbol
symbol : variable leg2
location: class net.minecraft.src.ModelDeer
leg2.addBox(0F, 0F, 0F, 4, 8, 3);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:23: cannot find symbol
symbol : variable leg2
location: class net.minecraft.src.ModelDeer
leg2.setPosition(-5F, 14F, -2);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:25: cannot find symbol
symbol : variable leg3
location: class net.minecraft.src.ModelDeer
leg3 = new ModelRenderer(0, 0);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:26: cannot find symbol
symbol : variable leg3
location: class net.minecraft.src.ModelDeer
leg3.addBox(0F, 0F, 0F, 4, 8, 3);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:27: cannot find symbol
symbol : variable leg3
location: class net.minecraft.src.ModelDeer
leg3.setPosition(1F, 14F, -13);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:29: cannot find symbol
symbol : variable leg4
location: class net.minecraft.src.ModelDeer
leg4 = new ModelRenderer(0, 0);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:30: cannot find symbol
symbol : variable leg4
location: class net.minecraft.src.ModelDeer
leg4.addBox(0F, 0F, 0F, 4, 8, 3);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:31: cannot find symbol
symbol : variable leg4
location: class net.minecraft.src.ModelDeer
leg4.setPosition(-5F, 14F, -13);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:37: cannot find symbol
symbol : variable head
location: class net.minecraft.src.ModelDeer
head = new ModelRenderer(0, 0);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:38: cannot find symbol
symbol : variable head
location: class net.minecraft.src.ModelDeer
head.addBox(-3F, -2F, -2F, 6, 5, 4);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:39: cannot find symbol
symbol : variable head
location: class net.minecraft.src.ModelDeer
head.setPosition(0F, 2F, -12);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:61: cannot find symbol
symbol : variable super
location: class net.minecraft.src.ModelDeer
super.render(f, f1, f2, f3, f4, f5);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:71: cannot find symbol
symbol : variable super
location: class net.minecraft.src.ModelDeer
super.setRotationAngles(f, f1, f2, f3, f4, f5); // this calls the EXTENDED set
tationAngles function, it is used to animate the legs and head.
^
src\minecraft\net\minecraft\src\ModleSquirrel.java:42: cannot find symbol
symbol : method addBox(float,float,float,double,int,int,float)
location: class net.minecraft.src.ModelRenderer
ArmR.addBox(0F, 0F, 0F, 0.5, 5, 2, scale);
^
src\minecraft\net\minecraft\src\ModleSquirrel.java:47: cannot find symbol
symbol : method addBox(float,float,float,double,int,int,float)
location: class net.minecraft.src.ModelRenderer
ArmL.addBox(0F, 0F, 0F, 0.5, 5, 2, scale);
^
src\minecraft\net\minecraft\src\RenderSquirrel.java:18: doRenderLiving(net.min
raft.src.EntityLiving,double,double,double,float,float) in net.minecraft.src.R
derLiving cannot be applied to (net.minecraft.src.Entitysquirrel,double,double
ouble,float,float)
super.doRenderLiving(entitysquirrel, d, d1, d2, f, f1);
^
How would you create a texture for your mob? I exported it as a texture map but it turned out really weird:
You should look up such a tutorial :tongue.gif: Also if you would like others to do it please search "Angry Notch". They would be willing to create free skins for your mods and are quite good :tongue.gif:
How would you create a texture for your mob? I exported it as a texture map but it turned out really weird:
You made way too big boxes (the biggest doesn't even fit), and you would want to move the texture offset to use different spots in the picture. For this one, you should post a link to the model as well.
Hey everyone, this tutorial is great! However, I found a better modeler than Techne. It's called FMCModeler, and it is all online! It also has automatic texturing, and it is compatible with anything that runs flash 10. Here is the link - http://www.mfmesi.ru/uploads/maxed/fmcmodeler/
Cool thanx. I have two questions. What is the "HIT AREA"? And secondly, is it possible for me to set or adjust the spawn rate?
The hit area is the collider that the mob has(I think) It tells the game how much space the mob takes up. Also, changing the "rarity" variable will change the spawn rate.
On another note, I did my research and I think
SetPosition
was changed to
setRotationPoint
in recent MC updates, for all of you error-getters.
I want to make that mob as big as a giant zombie but, I don't know what code line to add I have this right now:
mod_Cyclope.java
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_Cyclope extends BaseMod
{
public mod_Cyclope()
{
ModLoader.RegisterEntityID(EntityCyclope.class, "Cyclope", ModLoader.getUniqueEntityId()); // this registers the mob's ID, making it spawnable in-game
ModLoader.AddSpawn(EntityCyclope.class, 100, EnumCreatureType.monster); // this adds the mob to the list of "to-spawn" mobs. The "2" is the rarity of the mob. The EnumCreatureType is what kind of mob it is. For example, squids are "waterCreature", enemies are "monster", and animals are "creature".
}
// RENDERERS
public void AddRenderer(Map map)
{
map.put(EntityCyclope.class, new RenderCyclope(new ModelCyclope(), 0.5F)); // this assigns the Entity class to the appropriate renderer and model class.
}
public String Version()
{
return "Mob:Cyclope"; // you can put whatever you want here, it will show up in ModLoader logs.
}
}
EntityCyclope.java
// 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
I tried to change the last variable of the .addbox line to 3 so it would be bigger but it doesn't seem to work so I guess that's not the way to do it could someone please tell me how to make it bigger?
Rollback Post to RevisionRollBack
Each day is a gift and not a given right, so live them all like your last
I'm experiencing some problems with skinning the mob and adding sounds for the mob. I am receiving no compile time errors or errors when MCP runs. My mob is rendering and is working in game with the exception that the mob is a series of white boxes instead of the texture I am using.
I used another tutorial and had this problem, I was able to fix it by adding the mob's texture directly to minecraft.jar. I'm not sure if this is the *correct* way to fix the problem though.
Any advice? Will post code if it seems like i'm not doing something obviously wrong.
To Mod? No, but then you will have to create a similar system that could take monts of proffessional programing to Complete. So essentially YES you need MCP to mod minecraft. As to this moment there is no other way :tongue.gif:
THE CREEPER TRICKED ME ----->
I did it but I got a few errors
== MCP v3.3 ==
> Recompiling client...
javac.exe -g -verbose -classpath "lib/;lib/*;jars/bin/minecraft.jar;jars/bin/j
put.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath src/minecraft
bin/minecraft src/minecraft\net\minecraft\client\*.java src/minecraft\net\min
raft\isom\*.java src/minecraft\net\minecraft\src\*.java conf/patches/*.java f
led.
Return code : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\EntitySquirrel.java:7: class Entitysquirrel is
ublic, should be declared in a file named Entitysquirrel.java
public class Entitysquirrel extends EntityAnimals
^
src\minecraft\net\minecraft\src\mod_Squirrel.java:8: class mod_squirrel is pub
c, should be declared in a file named mod_squirrel.java
public class mod_squirrel extends BaseMod
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:7: class ModelDeer is publi
should be declared in a file named ModelDeer.java
public class ModelDeer extends ModelQuadraped
^
src\minecraft\net\minecraft\src\ModleSquirrel.java:6: class Model is public, s
uld be declared in a file named Model.java
public class Model extends ModelBase
^
src\minecraft\net\minecraft\src\RenderSquirrel.java:7: class Rendersquirrel is
ublic, should be declared in a file named Rendersquirrel.java
public class Rendersquirrel extends RenderLiving
^
src\minecraft\net\minecraft\src\EntitySquirrel.java:7: cannot find symbol
symbol: class EntityAnimals
public class Entitysquirrel extends EntityAnimals
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:7: cannot find symbol
symbol: class ModelQuadraped
public class ModelDeer extends ModelQuadraped
^
src\minecraft\net\minecraft\src\EntitySquirrel.java:13: cannot find symbol
symbol : variable texture
location: class net.minecraft.src.Entitysquirrel
texture = "/mob/squirrel.png"; // this initializes the texture used for the mo
^
src\minecraft\net\minecraft\src\EntitySquirrel.java:14: cannot find symbol
symbol : method setSize(float,float)
location: class net.minecraft.src.Entitysquirrel
setSize(1.5F, 1.9F); // this sets the HIT AREA of the mob.
^
src\minecraft\net\minecraft\src\EntitySquirrel.java:19: cannot find symbol
symbol : variable super
location: class net.minecraft.src.Entitysquirrel
super.writeEntityToNBT(nbttagcompound); // this saves the mob to disk, so it c
be loaded later
^
src\minecraft\net\minecraft\src\EntitySquirrel.java:24: cannot find symbol
symbol : variable super
location: class net.minecraft.src.Entitysquirrel
super.readEntityFromNBT(nbttagcompound); // this retrieves saved data about th
mob from the hard drive
^
src\minecraft\net\minecraft\src\mod_Squirrel.java:21: cannot find symbol
symbol : class Modelsquirrel
location: class net.minecraft.src.mod_squirrel
map.put(Entitysquirrel.class, new Rendersquirrel(new Modelsquirrel(), 0.5F));
this assigns the Entity class to the appropriate renderer and model class.
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:13: cannot find symbol
symbol : variable body
location: class net.minecraft.src.ModelDeer
body = new ModelRenderer(0, 0); // this sets up the ModelRender part. The "0,
is the texture index (top left corner) where the part will start overlaying t
s texture onto itself
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:14: cannot find symbol
symbol : variable body
location: class net.minecraft.src.ModelDeer
body.addBox(-5F, -4F, -7F, 10, 8, 15); // these set up offset, size, and scale
Rotation points in Techne are what's considered the center of the part, so try
eeping the blue circles in the very center of the part (unless setting the rot
ion point inside another, like a neck or head)
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:15: cannot find symbol
symbol : variable body
location: class net.minecraft.src.ModelDeer
body.setPosition(0F, 10F, -7); // this moves the part (from the rotation point
into the desired placement.
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:17: cannot find symbol
symbol : variable leg1
location: class net.minecraft.src.ModelDeer
leg1 = new ModelRenderer(0, 0);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:18: cannot find symbol
symbol : variable leg1
location: class net.minecraft.src.ModelDeer
leg1.addBox(0F, 0F, 0F, 4, 8, 3);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:19: cannot find symbol
symbol : variable leg1
location: class net.minecraft.src.ModelDeer
leg1.setPosition(1F, 14F, -2);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:21: cannot find symbol
symbol : variable leg2
location: class net.minecraft.src.ModelDeer
leg2 = new ModelRenderer(0, 0);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:22: cannot find symbol
symbol : variable leg2
location: class net.minecraft.src.ModelDeer
leg2.addBox(0F, 0F, 0F, 4, 8, 3);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:23: cannot find symbol
symbol : variable leg2
location: class net.minecraft.src.ModelDeer
leg2.setPosition(-5F, 14F, -2);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:25: cannot find symbol
symbol : variable leg3
location: class net.minecraft.src.ModelDeer
leg3 = new ModelRenderer(0, 0);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:26: cannot find symbol
symbol : variable leg3
location: class net.minecraft.src.ModelDeer
leg3.addBox(0F, 0F, 0F, 4, 8, 3);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:27: cannot find symbol
symbol : variable leg3
location: class net.minecraft.src.ModelDeer
leg3.setPosition(1F, 14F, -13);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:29: cannot find symbol
symbol : variable leg4
location: class net.minecraft.src.ModelDeer
leg4 = new ModelRenderer(0, 0);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:30: cannot find symbol
symbol : variable leg4
location: class net.minecraft.src.ModelDeer
leg4.addBox(0F, 0F, 0F, 4, 8, 3);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:31: cannot find symbol
symbol : variable leg4
location: class net.minecraft.src.ModelDeer
leg4.setPosition(-5F, 14F, -13);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:37: cannot find symbol
symbol : variable head
location: class net.minecraft.src.ModelDeer
head = new ModelRenderer(0, 0);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:38: cannot find symbol
symbol : variable head
location: class net.minecraft.src.ModelDeer
head.addBox(-3F, -2F, -2F, 6, 5, 4);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:39: cannot find symbol
symbol : variable head
location: class net.minecraft.src.ModelDeer
head.setPosition(0F, 2F, -12);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:61: cannot find symbol
symbol : variable super
location: class net.minecraft.src.ModelDeer
super.render(f, f1, f2, f3, f4, f5);
^
src\minecraft\net\minecraft\src\ModelSquirrel.java:71: cannot find symbol
symbol : variable super
location: class net.minecraft.src.ModelDeer
super.setRotationAngles(f, f1, f2, f3, f4, f5); // this calls the EXTENDED set
tationAngles function, it is used to animate the legs and head.
^
src\minecraft\net\minecraft\src\ModleSquirrel.java:42: cannot find symbol
symbol : method addBox(float,float,float,double,int,int,float)
location: class net.minecraft.src.ModelRenderer
ArmR.addBox(0F, 0F, 0F, 0.5, 5, 2, scale);
^
src\minecraft\net\minecraft\src\ModleSquirrel.java:47: cannot find symbol
symbol : method addBox(float,float,float,double,int,int,float)
location: class net.minecraft.src.ModelRenderer
ArmL.addBox(0F, 0F, 0F, 0.5, 5, 2, scale);
^
src\minecraft\net\minecraft\src\RenderSquirrel.java:18: doRenderLiving(net.min
raft.src.EntityLiving,double,double,double,float,float) in net.minecraft.src.R
derLiving cannot be applied to (net.minecraft.src.Entitysquirrel,double,double
ouble,float,float)
super.doRenderLiving(entitysquirrel, d, d1, d2, f, f1);
^
src\minecraft\net\minecraft\src\RenderSquirrel.java:24: inconvertible types
found : net.minecraft.src.EntityLiving
required: net.minecraft.src.Entitysquirrel
func_177_a((Entitysquirrel)entityliving, d, d1, d2, f, f1);
^
src\minecraft\net\minecraft\src\RenderSquirrel.java:30: inconvertible types
found : net.minecraft.src.Entity
required: net.minecraft.src.Entitysquirrel
func_177_a((Entitysquirrel)entity, d, d1, d2, f, f1);
^
37 errors
==================
> Done in 31.67 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
any chance you can help??? or anybody?
Edit 2: Fixed my old problems. Just need to know where to put my texture file at. I tried putting it in the minecraft.jar file but it didn't work.
You should look up such a tutorial :tongue.gif: Also if you would like others to do it please search "Angry Notch". They would be willing to create free skins for your mods and are quite good :tongue.gif:
You made way too big boxes (the biggest doesn't even fit), and you would want to move the texture offset to use different spots in the picture. For this one, you should post a link to the model as well.
The hit area is the collider that the mob has(I think) It tells the game how much space the mob takes up. Also, changing the "rarity" variable will change the spawn rate.
On another note, I did my research and I think was changed to in recent MC updates, for all of you error-getters.
and here's my ModelYorkie.java
and here is my code:
+1 If I help please
Come on, bro, I got CREEPER BLOOD! (winning!)
mod_Cyclope.java
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_Cyclope extends BaseMod
{
public mod_Cyclope()
{
ModLoader.RegisterEntityID(EntityCyclope.class, "Cyclope", ModLoader.getUniqueEntityId()); // this registers the mob's ID, making it spawnable in-game
ModLoader.AddSpawn(EntityCyclope.class, 100, EnumCreatureType.monster); // this adds the mob to the list of "to-spawn" mobs. The "2" is the rarity of the mob. The EnumCreatureType is what kind of mob it is. For example, squids are "waterCreature", enemies are "monster", and animals are "creature".
}
// RENDERERS
public void AddRenderer(Map map)
{
map.put(EntityCyclope.class, new RenderCyclope(new ModelCyclope(), 0.5F)); // this assigns the Entity class to the appropriate renderer and model class.
}
public String Version()
{
return "Mob:Cyclope"; // you can put whatever you want here, it will show up in ModLoader logs.
}
}
EntityCyclope.java
// 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
package net.minecraft.src;
import java.util.Random;
// Referenced classes of package net.minecraft.src:
// EntityMob, World, MathHelper, Item
public class EntityCyclope extends EntityMob
{
public EntityCyclope(World world)
{
super(world);
texture = "/mob/Cyclope.png";
moveSpeed = 0.5F;
attackStrength = 50;
health *= 10;
yOffset *= 6F;
setSize(width * 6F, height * 6F);
}
public void onLivingUpdate()
{
if(worldObj.isDaytime())
{
float f = getEntityBrightness(1.0F);
}
super.onLivingUpdate();
}
protected String getLivingSound()
{
return "mob.zombie";
}
protected String getHurtSound()
{
return "mob.zombiehurt";
}
protected String getDeathSound()
{
return "mob.zombiedeath";
}
protected int getDropItemId()
{
return Item.ingotIron.shiftedIndex;
}
}
ModelCyclope.java
// 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
package net.minecraft.src;
// Referenced classes of package net.minecraft.src:
// ModelBiped, MathHelper, ModelRenderer
public class ModelCyclope extends ModelBiped
{
public ModelCyclope()
{
}
public ModelCyclope(float f, float f1)
{
field_1279_h = false;
field_1278_i = false;
isSneak = false;
bipedCloak = new ModelRenderer(0, 0);
bipedCloak.addBox(-5F, 0.0F, -1F, 10, 16, 1, 3f);
bipedEars = new ModelRenderer(24, 0);
bipedEars.addBox(-3F, -6F, -1F, 6, 6, 1, 3f);
bipedHead = new ModelRenderer(0, 0);
bipedHead.addBox(-4F, -8F, -4F, 8, 8, 8, 3f);
bipedHead.setRotationPoint(0.0F, 0.0F + f1, 0.0F);
bipedHeadwear = new ModelRenderer(32, 0);
bipedHeadwear.addBox(-4F, -8F, -4F, 8, 8, 8, 3f + 0.5F);
bipedHeadwear.setRotationPoint(0.0F, 0.0F + f1, 0.0F);
bipedBody = new ModelRenderer(16, 16);
bipedBody.addBox(-4F, 0.0F, -2F, 8, 12, 4, 3f);
bipedBody.setRotationPoint(0.0F, 0.0F + f1, 0.0F);
bipedRightArm = new ModelRenderer(40, 16);
bipedRightArm.addBox(-3F, -2F, -2F, 4, 12, 4, 3f);
bipedRightArm.setRotationPoint(-5F, 2.0F + f1, 0.0F);
bipedLeftArm = new ModelRenderer(40, 16);
bipedLeftArm.mirror = true;
bipedLeftArm.addBox(-1F, -2F, -2F, 4, 12, 4, 3f);
bipedLeftArm.setRotationPoint(5F, 2.0F + f1, 0.0F);
bipedRightLeg = new ModelRenderer(0, 16);
bipedRightLeg.addBox(-2F, 0.0F, -2F, 4, 12, 4, 3f);
bipedRightLeg.setRotationPoint(-2F, 12F + f1, 0.0F);
bipedLeftLeg = new ModelRenderer(0, 16);
bipedLeftLeg.mirror = true;
bipedLeftLeg.addBox(-2F, 0.0F, -2F, 4, 12, 4, 3f);
bipedLeftLeg.setRotationPoint(2.0F, 12F + f1, 0.0F);
}
}
RenderCyclope.java
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
package net.minecraft.src;
import org.lwjgl.opengl.GL11;
public class RenderCyclope extends RenderLiving
{
public RenderCyclope(ModelBase modelbase, float f)
{
super(modelbase, f);
}
public void func_177_a(EntityCyclope entitycyclope, double d, double d1, double d2,
float f, float f1)
{
super.doRenderLiving(entitycyclope, d, d1, d2, f, f1);
}
public void doRenderLiving(EntityLiving entityliving, double d, double d1, double d2,
float f, float f1)
{
func_177_a((EntityCyclope)entityliving, d, d1, d2, f, f1);
}
public void doRender(Entity entity, double d, double d1, double d2,
float f, float f1)
{
func_177_a((EntityCyclope)entity, d, d1, d2, f, f1);
}
}
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
I tried to change the last variable of the .addbox line to 3 so it would be bigger but it doesn't seem to work so I guess that's not the way to do it could someone please tell me how to make it bigger?
I'm experiencing some problems with skinning the mob and adding sounds for the mob. I am receiving no compile time errors or errors when MCP runs. My mob is rendering and is working in game with the exception that the mob is a series of white boxes instead of the texture I am using.
I used another tutorial and had this problem, I was able to fix it by adding the mob's texture directly to minecraft.jar. I'm not sure if this is the *correct* way to fix the problem though.
Any advice? Will post code if it seems like i'm not doing something obviously wrong.