1. Make the mob fly when another mob that is flying hits it
2. Make the mob fly randomly (by itself) and then randomly returning to the ground
To no avail I tried playing with:
this.motionY +=0.400000000001D or even make it += 1.0000000000001D and place it under onLivingUpdate()
but this code never tells it to fly when its hit by another mob that is not on ground :sad.gif:
I also tried
if (!entity.onGround && entity.hasAttacked && this.beenAttacked) //the (!) means not //
{
this.motionY +=0.4000000001D //because i wanted it to cruise up easily and gently
if(this.posY >= entity.posY) //this suppose to tell if the mobs position is more than
{ // the entity that attacked position then be equal to it
this.posY = entity.posY
}
}
okay but here is the problem the code does not recognize that (entity) is suppose to be the entity that attacked my mob (this). :sad.gif:
src\minecraft\net\minecraft\src\mod_*Secret*.java:15: cannot find symbol
symbol : method AddSpawn(java.lang.Class<net.minecraft.src.Entity*Secret*>,in
t,net.minecraft.src.EnumCreatureType)
location: class net.minecraft.src.ModLoader
ModLoader.AddSpawn(Entity*Secret*.class, 1, EnumCreatureType.monster);
The *Secret* is actually the name of my mob in the code, but its a secret so i had to edit it out for you guys :tongue.gif:
The *Secret* is actually the name of my mob in the code, but its a secret so i had to edit it out for you guys :tongue.gif:
Your friendly neighborhood Kingpin here...
Not sure if you guys are still getting this error or still looking for help with this. But after 1.8, a few things have changed with the coding. ModLoader now uses this:
ModLoader.AddSpawn(Class class, int i, int j, int k, EnumCreatureType enumcreaturetype);
We now have to define the 'int j' and 'int k' variables.
int i = spawn rate ( just like before, nothing has changed.)
int j = min spawn per chunk
int k = max spawn per chunk
The Meaning of Life, the Universe, and Everything.
Join Date:
1/17/2011
Posts:
184
Location:
USA
Minecraft:
Plazmaz
Member Details
Hi guys, I tryed this tutorial a while back and got nothing... now, I got the model in-game but i tryed to use the code from the forum for my code, "RenderHusky.java" and it crashed with the following error:
Mods loaded: 2
ModLoader Beta 1.8.1
net.minecraft.src.mod_Puppies ||dylanisawesome1's Puppies mod for minecraft v 1.8.1!
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT 83900d67 --------
Generated 10/8/11 9:14 PM
Minecraft: Minecraft Beta 1.8.1
OS: Windows Vista (x86) version 6.0
Java: 1.6.0_26, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: Intel Bear Lake B version 1.4.0 - Build 7.15.10.1666, Intel
java.lang.NullPointerException
at net.minecraft.src.RenderLiving.doRenderLiving(RenderLiving.java:36)
at net.minecraft.src.RenderHusky.func_177_a(RenderHusky.java:17)
at net.minecraft.src.RenderHusky.doRender(RenderHusky.java:27)
at net.minecraft.src.RenderManager.renderEntityWithPosYaw(RenderManager.java:144)
at net.minecraft.src.RenderManager.renderEntity(RenderManager.java:135)
at net.minecraft.src.RenderGlobal.renderEntities(RenderGlobal.java:315)
at net.minecraft.src.EntityRenderer.renderWorld(EntityRenderer.java:795)
at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:653)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:23)
at net.minecraft.client.Minecraft.run(Minecraft.java:517)
at java.lang.Thread.run(Thread.java:662)
--- END ERROR REPORT f1360c2a ----------
and my code is
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 RenderHusky extends RenderLiving
{
public RenderHusky(ModelBase modelbase, float f)
{
super(modelbase, f); // try not to modify anything here, except the referenced class names, for example, "EntityHusky".
}
public void func_177_a(EntityHusky entityHusky, double d, double d1, double d2, float f, float f1)
{
super.doRenderLiving(entityHusky, d, d1, d2, f, f1);
}
public void doRenderLiving(EntityLiving entityliving, double d, double d1, double d2, float f, float f1)
{
func_177_a((EntityHusky)entityliving, d, d1, d2, f, f1);
}
public void doRender(Entity entity, double d, double d1, double d2, float f, float f1)
{
func_177_a((EntityHusky)entity, d, d1, d2, f, f1);
}
}
FIXED!!! but can someone give me a link to a tutorial for animation?
The Meaning of Life, the Universe, and Everything.
Join Date:
1/17/2011
Posts:
184
Location:
USA
Minecraft:
Plazmaz
Member Details
another issue... i have the mob in-game, and it doesn't move it's legs. So i figure out that it extends modelbase. So i change that to ModelQuadruped an the model gets messed up:
with ModelBase, it is my original model execpt its legs dont move.
with ModelQuadruped, it's my original model inside a large pig... BUT the legs DO move...
please help me, i want the origonal model with moving legs...
Heres the code:
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_Puppies extends BaseMod
{
public mod_Puppies()
{
ModLoader.RegisterEntityID(EntityHusky.class, "Husky", ModLoader.getUniqueEntityId()); // this registers the mob's ID, making it spawnable in-game
ModLoader.AddSpawn(EntityHusky.class, 2, 2, 2, EnumCreatureType.creature); // 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(EntityHusky.class, new RenderHusky(new ModelHusky(), 0.5F)); // this assigns the Entity class to the appropriate renderer and model class.
}
public String Version()
{
return "||dylanisawesome1's Puppies mod for minecraft v 1.8.1!"; // you can put whatever you want here, it will show up in ModLoader logs.
}
}
another issue... i have the mob in-game, and it doesn't move it's legs. So i figure out that it extends modelbase. So i change that to ModelQuadruped an the model gets messed up:
with ModelBase, it is my original model execpt its legs dont move.
with ModelQuadruped, it's my original model inside a large pig... BUT the legs DO move...
please help me, i want the origonal model with moving legs...
Heres the code:
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_Puppies extends BaseMod
{
public mod_Puppies()
{
ModLoader.RegisterEntityID(EntityHusky.class, "Husky", ModLoader.getUniqueEntityId()); // this registers the mob's ID, making it spawnable in-game
ModLoader.AddSpawn(EntityHusky.class, 2, 2, 2, EnumCreatureType.creature); // 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(EntityHusky.class, new RenderHusky(new ModelHusky(), 0.5F)); // this assigns the Entity class to the appropriate renderer and model class.
}
public String Version()
{
return "||dylanisawesome1's Puppies mod for minecraft v 1.8.1!"; // you can put whatever you want here, it will show up in ModLoader logs.
}
}
public class mod_Supercreeper extends BaseMod
{
public mod_Supercreeper()
{
AddMobs();
}
public void AddMobs()
{
//This line just registers the mob, and sets a name for it, as well as it's own unique entity ID
ModLoader.RegisterEntityID(EntitySupercreeper.class, "Supercreeper", ModLoader.getUniqueEntityId());
//This line makes tells the mob to spawn. The number 500 is how rare the mob is
//EnumCreatureType.creature = land mob, EnumCreatureType.waterCreature = water mob,
//EnumCreatureType.monster = a hostile mob that only spawns in darkness
ModLoader.AddSpawn(EntitySupercreeper.class, 500, EnumCreatureType.monster);
}
public void AddRenderer(Map map)
{
map.put(EntitySupercreeper.class, new RenderSupercreeper(new ModelSupercreeper(), 0.5F));
}
public String Version()
{
return "1.8.1";
}
}
EntitySupercreeper:
// 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 void onStruckByLightning(EntityLightningBolt entitylightningbolt)
{
super.onStruckByLightning(entitylightningbolt);
dataWatcher.updateObject(17, Byte.valueOf((byte)1));
}
int timeSinceIgnited;
int lastActiveTime;
}
ModelSupercreeper:
// Date: 22/10/2011 13:06:41
// Template version 1.1
// Java generated by Techne
// Keep in mind that you still need to fill in some blanks
// - ZeuX
public class RenderSupercreeper extends RenderLiving
{
//The three numbers below change the size of your model (you'll need to change the hitbox size too though)
protected void preRenderScale(EntitySupercreeper entity, float f)
{
GL11.glScalef(1.5F, 1.5F, 1.5F);
}
public RenderSupercreeper(ModelSupercreeper modelbase, float f)
{
super(modelbase, f);
}
ok, so ive got the render, mod, and model files. do i need an entity file? if not then what is an entity file?
im very very new to this. ive made the model in techne with some animation, and i want to make it into its own mod that simply adds a "Gir" mob that acts like a chicken.
also, as a side thing how do i make a "spoiler" box on minecraft forums?
anyways, i have MCP already, so if you could point me in the right direction i would be very happy lol
ok, so ive got the render, mod, and model files. do i need an entity file? if not then what is an entity file?
im very very new to this. ive made the model in techne with some animation, and i want to make it into its own mod that simply adds a "Gir" mob that acts like a chicken.
also, as a side thing how do i make a "spoiler" box on minecraft forums?
anyways, i have MCP already, so if you could point me in the right direction i would be very happy lol
First of all, gir rules, secondly, you can just copy code from EntityChicken.java and finally, [ spoiler ] and at the end, [ / spoiler ] no spaces.
urgh. My render file is not working, because I'm getting errors from MCP while recompiling.
Here is my code so far:
// Date: 11/11/2011 2:02:03 PM
// Java generated by Techne
// This is the first stage to more output options
// and therefore a very basic Render-File
// I hope it will be useful, in any case, leave
// feedback so I can improve on it
// - ZeuX
package net.minecraft.src;
public class RenderTiger extends RenderLiving
{
public renderNew(float f)
{
super(new ModelTiger(), f);
}
public void renderNew(EntityTiger entitytiger, double d, double d1, double d2,
float f, float f1)
{
super.doRenderLiving(entityliving, d, d1, d2, f, f1);
}
public void doRenderLiving(EntityLiving entityliving, double d, double d1, double d2,
float f, float f1)
{
renderNew(entityliving, d, d1, d2, f, f1);
}
public void doRender(Entity entity, double d, double d1, double d2,
float f, float f1)
{
renderNew((EntityTiger)entity, d, d1, d2, f, f1);
}
}
I've been googling around, tried naming the "renderNew" to the class name, even more errors. If somebody could please halp me, that would be appreciated.
The Meaning of Life, the Universe, and Everything.
Join Date:
1/17/2011
Posts:
184
Location:
USA
Minecraft:
Plazmaz
Member Details
Okay guys, I've been working hard on a secret-ish mod. I am trying to make something that swims underwater...
Here's what i have trouble with: I can't figure out how to make it go UNDER the water. now it just floats on top like any other mob would :/ heres the code:
public class Entity********* extends EntityMob {
public Entity*********(World world)
{
if(this.chunkCoordY >= 53) {
this.motionY -= 1;
}
//this code ^ is what is SUPPOSED to make them go down below the //ocean. Yes, I know, a bad way to execute this but This was what I could find
if(!this.inWater)
{
this.motionX = 0;
this.motionY = 0;
this.motionZ = 0;
}
//this ^ makes the mob do nothing when it's on land(I hope)
1. Make the mob fly when another mob that is flying hits it
2. Make the mob fly randomly (by itself) and then randomly returning to the ground
To no avail I tried playing with:
this.motionY +=0.400000000001D or even make it += 1.0000000000001D and place it under onLivingUpdate()
but this code never tells it to fly when its hit by another mob that is not on ground :sad.gif:
I also tried
if (!entity.onGround && entity.hasAttacked && this.beenAttacked) //the (!) means not //
{
this.motionY +=0.4000000001D //because i wanted it to cruise up easily and gently
if(this.posY >= entity.posY) //this suppose to tell if the mobs position is more than
{ // the entity that attacked position then be equal to it
this.posY = entity.posY
}
}
okay but here is the problem the code does not recognize that (entity) is suppose to be the entity that attacked my mob (this). :sad.gif:
is there any work around for this
link: The Dragon Ball Mod Alpha 1.1
== MCP v4.3 ==
> Recompiling client...
javac.exe -g -verbose -classpath "lib/;lib/*;jars/bin/minecraft.jar;jars/bin/jin
put.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath src/minecraft -d
bin/minecraft src/minecraft\net\minecraft\client\*.java src/minecraft\net\minec
raft\isom\*.java src/minecraft\net\minecraft\src\*.java conf/patches/*.java fai
led.
Return code : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\RenderFatpig.java:21: error: reached end of file
while parsing
{
^
1 error
==================
> Done in 1.62 seconds
> Recompiling server...
> Done in 7.07 seconds
Press any key to continue . . .
_______________________________________________
i know i have to put an extra brace somewhere, but i don't know where to put it..
EDIT: nevermind i got it, it was the very last brace. hehe
my Model.java
This is the error:
The *Secret* is actually the name of my mob in the code, but its a secret so i had to edit it out for you guys :tongue.gif:
Your friendly neighborhood Kingpin here...
Not sure if you guys are still getting this error or still looking for help with this. But after 1.8, a few things have changed with the coding. ModLoader now uses this:
We now have to define the 'int j' and 'int k' variables.
int i = spawn rate ( just like before, nothing has changed.)
int j = min spawn per chunk
int k = max spawn per chunk
Hope that helps.
'keep on koding'
-LK
and my code is
FIXED!!! but can someone give me a link to a tutorial for animation?
+1 If I help please
with ModelBase, it is my original model execpt its legs dont move.
with ModelQuadruped, it's my original model inside a large pig... BUT the legs DO move...
please help me, i want the origonal model with moving legs...
Heres the code:
ModelHusky.java
EntityHusky.java
mod_Puppies.java
RenderHusky.java
+1 If I help please
i changed it to
and it worked!
I believe I accidentally missed
lol
+1 If I help please
I know I'm not supposed to bump... but please, anyone know how to fix this???
[EDIT]: Fixed :smile.gif:
+1 If I help please
== MCP v4.4 ==
> Recompiling client...
javac.exe -g -source 1.6 -target 1.6 -classpath "lib/;lib/*;jars/bin/minecraft.j
ar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath s
rc/minecraft -d bin/minecraft src/minecraft\net\minecraft\client\*.java src/mine
craft\net\minecraft\isom\*.java src/minecraft\net\minecraft\src\*.java conf/pat
ches/*.java failed.
Return code : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_Supercreeper.java:20: cannot find symbol
symbol : method AddSpawn(java.lang.Class<net.minecraft.src.EntitySupercreeper>,
int,net.minecraft.src.EnumCreatureType)
location: class net.minecraft.src.ModLoader
ModLoader.AddSpawn(EntitySupercreeper.class, 500, EnumCreatureType.monster);
^
1 error
==================
> Done in 3.88 seconds
> Recompiling server...
> Done in 3.30 seconds
Pressione qualquer tecla para continuar. . .
Here are My files:
mod_Supercreeper
package net.minecraft.src;
import java.util.Random;
import java.util.Map;
public class mod_Supercreeper extends BaseMod
{
public mod_Supercreeper()
{
AddMobs();
}
public void AddMobs()
{
//This line just registers the mob, and sets a name for it, as well as it's own unique entity ID
ModLoader.RegisterEntityID(EntitySupercreeper.class, "Supercreeper", ModLoader.getUniqueEntityId());
//This line makes tells the mob to spawn. The number 500 is how rare the mob is
//EnumCreatureType.creature = land mob, EnumCreatureType.waterCreature = water mob,
//EnumCreatureType.monster = a hostile mob that only spawns in darkness
ModLoader.AddSpawn(EntitySupercreeper.class, 500, EnumCreatureType.monster);
}
public void AddRenderer(Map map)
{
map.put(EntitySupercreeper.class, new RenderSupercreeper(new ModelSupercreeper(), 0.5F));
}
public String Version()
{
return "1.8.1";
}
}
EntitySupercreeper:
// 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, DataWatcher, NBTTagCompound, World,
// DamageSource, EntitySkeleton, Item, Entity,
// EntityLightningBolt
public class EntitySupercreeper extends EntityMob
{
public EntitySupercreeper(World world)
{
super(world);
texture = "/mob/supercreeper.png";
}
protected void entityInit()
{
super.entityInit();
dataWatcher.addObject(16, Byte.valueOf((byte)-1));
dataWatcher.addObject(17, Byte.valueOf((byte)0));
}
public void writeEntityToNBT(NBTTagCompound nbttagcompound)
{
super.writeEntityToNBT(nbttagcompound);
if(dataWatcher.getWatchableObjectByte(17) == 1)
{
nbttagcompound.setBoolean("powered", true);
}
}
public void readEntityFromNBT(NBTTagCompound nbttagcompound)
{
super.readEntityFromNBT(nbttagcompound);
dataWatcher.updateObject(17, Byte.valueOf((byte)(nbttagcompound.getBoolean("powered") ? 1 : 0)));
}
protected void attackBlockedEntity(Entity entity, float f)
{
if(worldObj.multiplayerWorld)
{
return;
}
if(timeSinceIgnited > 0)
{
setSupercreeperState(-1);
timeSinceIgnited--;
if(timeSinceIgnited < 0)
{
timeSinceIgnited = 0;
}
}
}
public void onUpdate()
{
lastActiveTime = timeSinceIgnited;
if(worldObj.multiplayerWorld)
{
int i = getSupercreeperState();
if(i > 0 && timeSinceIgnited == 0)
{
worldObj.playSoundAtEntity(this, "random.fuse", 1.0F, 0.5F);
}
timeSinceIgnited += i;
if(timeSinceIgnited < 0)
{
timeSinceIgnited = 0;
}
if(timeSinceIgnited >= 30)
{
timeSinceIgnited = 30;
}
}
super.onUpdate();
if(entityToAttack == null && timeSinceIgnited > 0)
{
setSupercreeperState(-1);
timeSinceIgnited--;
if(timeSinceIgnited < 0)
{
timeSinceIgnited = 0;
}
}
}
protected String getHurtSound()
{
return "mob.creeper";
}
protected String getDeathSound()
{
return "mob.creeperdeath";
}
public void onDeath(DamageSource damagesource)
{
super.onDeath(damagesource);
if(damagesource.getEntity() instanceof EntitySkeleton)
{
dropItem(Item.record13.shiftedIndex + rand.nextInt(2), 1);
}
}
protected void attackEntity(Entity entity, float f)
{
if(worldObj.multiplayerWorld)
{
return;
}
int i = getSupercreeperState();
if(i <= 0 && f < 3F || i > 0 && f < 7F)
{
if(timeSinceIgnited == 0)
{
worldObj.playSoundAtEntity(this, "random.fuse", 1.0F, 0.5F);
}
setSupercreeperState(1);
timeSinceIgnited++;
if(timeSinceIgnited >= 30)
{
if(getPowered())
{
worldObj.createExplosion(this, posX, posY, posZ, 8F);
} else
{
worldObj.createExplosion(this, posX, posY, posZ, 5F);
}
setEntityDead();
}
hasAttacked = true;
} else
{
setSupercreeperState(-1);
timeSinceIgnited--;
if(timeSinceIgnited < 0)
{
timeSinceIgnited = 0;
}
}
}
public boolean getPowered()
{
return dataWatcher.getWatchableObjectByte(17) == 1;
}
public float setSupercreeperFlashTime(float f)
{
return ((float)lastActiveTime + (float)(timeSinceIgnited - lastActiveTime) * f) / 28F;
}
protected int getDropItemId()
{
return Item.gunpowder.shiftedIndex;
}
private int getSupercreeperState()
{
return dataWatcher.getWatchableObjectByte(16);
}
private void setSupercreeperState(int i)
{
dataWatcher.updateObject(16, Byte.valueOf((byte)i));
}
public void onStruckByLightning(EntityLightningBolt entitylightningbolt)
{
super.onStruckByLightning(entitylightningbolt);
dataWatcher.updateObject(17, Byte.valueOf((byte)1));
}
int timeSinceIgnited;
int lastActiveTime;
}
ModelSupercreeper:
// Date: 22/10/2011 13:06:41
// Template version 1.1
// Java generated by Techne
// Keep in mind that you still need to fill in some blanks
// - ZeuX
package net.minecraft.src;
public class ModelSupercreeper extends ModelBase
{
public ModelSupercreeper()
{
head = new ModelRenderer(this, 0, 0);
head.addBox(-4F, -8F, -4F, 8, 8, 8);
head.setRotationPoint(0F, 6F, 0F);
head.rotateAngleX = 0.01745F;
head.rotateAngleY = 0F;
head.rotateAngleZ = 0F;
head.mirror = false;
body = new ModelRenderer(this, 16, 16);
body.addBox(-4F, 0F, -2F, 8, 12, 4);
body.setRotationPoint(0F, 6F, 0F);
body.rotateAngleX = 0.01745F;
body.rotateAngleY = 0F;
body.rotateAngleZ = 0F;
body.mirror = false;
leg3 = new ModelRenderer(this, 0, 16);
leg3.addBox(-2F, 0F, -2F, 4, 6, 4);
leg3.setRotationPoint(-2F, 18F, -4F);
leg3.rotateAngleX = 0.01745F;
leg3.rotateAngleY = 0F;
leg3.rotateAngleZ = 0F;
leg3.mirror = false;
leg4 = new ModelRenderer(this, 0, 16);
leg4.addBox(-2F, 0F, -2F, 4, 6, 4);
leg4.setRotationPoint(2F, 18F, -4F);
leg4.rotateAngleX = 0.01745F;
leg4.rotateAngleY = 0F;
leg4.rotateAngleZ = 0F;
leg4.mirror = false;
leg1 = new ModelRenderer(this, 0, 16);
leg1.addBox(0F, 0F, -2F, 4, 6, 4);
leg1.setRotationPoint(-4F, 18F, 4F);
leg1.rotateAngleX = 0.01745F;
leg1.rotateAngleY = 0F;
leg1.rotateAngleZ = 0F;
leg1.mirror = false;
leg2 = new ModelRenderer(this, 0, 16);
leg2.addBox(-2F, 0F, -2F, 4, 6, 4);
leg2.setRotationPoint(2F, 18F, 4F);
leg2.rotateAngleX = 0.01745F;
leg2.rotateAngleY = 0F;
leg2.rotateAngleZ = 0F;
leg2.mirror = false;
}
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
{
super.render(entity, f, f1, f2, f3, f4, f5);
setRotationAngles(f, f1, f2, f3, f4, f5);
head.render(f5);
body.render(f5);
leg3.render(f5);
leg4.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);
}
//fields
ModelRenderer head;
ModelRenderer body;
ModelRenderer leg3;
ModelRenderer leg4;
ModelRenderer leg1;
ModelRenderer leg2;
}
RenderSupercreeper:
package net.minecraft.src;
import org.lwjgl.opengl.GL11;
public class RenderSupercreeper extends RenderLiving
{
//The three numbers below change the size of your model (you'll need to change the hitbox size too though)
protected void preRenderScale(EntitySupercreeper entity, float f)
{
GL11.glScalef(1.5F, 1.5F, 1.5F);
}
public RenderSupercreeper(ModelSupercreeper modelbase, float f)
{
super(modelbase, f);
}
public void func_177_a(EntitySupercreeper entity, double d, double d1, double d2,
float f, float f1)
{
super.doRenderLiving(entity, d, d1, d2, f, f1);
}
public void doRenderLiving(EntityLiving entityliving, double d, double d1, double d2,
float f, float f1)
{
super.doRenderLiving((EntitySupercreeper) entityliving, d, d1, d2, f, f1);
}
public void doRender(Entity entity, double d, double d1, double d2,
float f, float f1)
{
doRenderLiving((EntitySupercreeper)entity, d, d1, d2, f, f1);
}
protected void preRenderCallback(EntityLiving entityliving, float f)
{
preRenderScale((EntitySupercreeper)entityliving, f);
}
}
plz HELP!
im very very new to this. ive made the model in techne with some animation, and i want to make it into its own mod that simply adds a "Gir" mob that acts like a chicken.
also, as a side thing how do i make a "spoiler" box on minecraft forums?
anyways, i have MCP already, so if you could point me in the right direction i would be very happy lol
First of all, gir rules, secondly, you can just copy code from EntityChicken.java and finally, [ spoiler ] and at the end, [ / spoiler ] no spaces.
+1?
+1 If I help please
Here is my code so far:
Here's also what I'm getting as an error:
I've been googling around, tried naming the "renderNew" to the class name, even more errors. If somebody could please halp me, that would be appreciated.
Here's what i have trouble with: I can't figure out how to make it go UNDER the water. now it just floats on top like any other mob would :/ heres the code:
Thanks in advance, dylanisawesome1
+1 If I help please