Mods loaded: 2
ModLoader 1.2.5
mod_Speedstone 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 58d19e14 --------
Generated 14/04/12 6:07 PM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Mobile Intel(R) 4 Series Express Chipset Family version 2.1.0 - Build 8.15.10.2202, Intel
java.lang.RuntimeException: java.lang.Exception: Image not found: /mymod/stoneskin.png
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1451)
at net.minecraft.src.ModLoader.onTick(ModLoader.java:1104)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:922)
at net.minecraft.client.Minecraft.run(Minecraft.java:801)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Exception: Image not found: /mymod/stoneskin.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1024)
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1443)
... 5 more
--- END ERROR REPORT 284b0bc3 ----------
I put it in a new folder, renamed it, and still the same error. tried a few combinations of renaming/new folder and still nothing..
my current path is /mymod/stoneskin.png and that folder is inside the same folder as Terrain.png.
Haha, this is my 3rd programming language and starting to learn one is always the same. Many little problems which usually have very obvious solutions when you notice them. I guess I still need to get my eye for java.
Mods loaded: 2
ModLoader 1.2.5
mod_Speedstone 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 58d19e14 --------
Generated 14/04/12 6:07 PM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Mobile Intel(R) 4 Series Express Chipset Family version 2.1.0 - Build 8.15.10.2202, Intel
java.lang.RuntimeException: java.lang.Exception: Image not found: /mymod/stoneskin.png
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1451)
at net.minecraft.src.ModLoader.onTick(ModLoader.java:1104)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:922)
at net.minecraft.client.Minecraft.run(Minecraft.java:801)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Exception: Image not found: /mymod/stoneskin.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1024)
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1443)
... 5 more
--- END ERROR REPORT 284b0bc3 ----------
I put it in a new folder, renamed it, and still the same error. tried a few combinations of renaming/new folder and still nothing..
my current path is /mymod/stoneskin.png and that folder is inside the same folder as Terrain.png.
Haha, this is my 3rd programming language and starting to learn one is always the same. Many little problems which usually have very obvious solutions when you notice them. I guess I still need to get my eye for java.
did you just put the folder into jars/bin/minecraft.jar? Because that is were it is suppose to be. also: make sure that you have the right caps, as java is case sensitive.
Hey tech guy, I'm having a small issue. SO any way Im trying to make a new mob that has the same model as a chicken. Anyway when i go in game, they spawn, but they are invisible.
Here is my mod_grooslingMob.java
public void addRenderer(Map map)
{
map.put(EntityGroosling.class, new RenderGroosling(new ModelGroosling(), 0.5F));
}
public String getVersion()
{
return "1.2.5";
}
}
Here is my ModelGroosling.java
package net.minecraft.src;
import org.lwjgl.opengl.GL11;
public class ModelGroosling extends ModelBase
{
public ModelRenderer head;
public ModelRenderer body;
public ModelRenderer rightLeg;
public ModelRenderer leftLeg;
public ModelRenderer rightWing;
public ModelRenderer leftWing;
public ModelRenderer bill;
public ModelRenderer chin;
public ModelGroosling()
{
int i = 16;
head = new ModelRenderer(this, 0, 0);
head.addBox(-2F, -6F, -2F, 4, 6, 3, 0.0F);
head.setRotationPoint(0.0F, -1 + i, -4F);
bill = new ModelRenderer(this, 14, 0);
bill.addBox(-2F, -4F, -4F, 4, 2, 2, 0.0F);
bill.setRotationPoint(0.0F, -1 + i, -4F);
chin = new ModelRenderer(this, 14, 4);
chin.addBox(-1F, -2F, -3F, 2, 2, 2, 0.0F);
chin.setRotationPoint(0.0F, -1 + i, -4F);
body = new ModelRenderer(this, 0, 9);
body.addBox(-3F, -4F, -3F, 6, 8, 6, 0.0F);
body.setRotationPoint(0.0F, i, 0.0F);
rightLeg = new ModelRenderer(this, 26, 0);
rightLeg.addBox(-1F, 0.0F, -3F, 3, 5, 3);
rightLeg.setRotationPoint(-2F, 3 + i, 1.0F);
leftLeg = new ModelRenderer(this, 26, 0);
leftLeg.addBox(-1F, 0.0F, -3F, 3, 5, 3);
leftLeg.setRotationPoint(1.0F, 3 + i, 1.0F);
rightWing = new ModelRenderer(this, 24, 13);
rightWing.addBox(0.0F, 0.0F, -3F, 1, 4, 6);
rightWing.setRotationPoint(-4F, -3 + i, 0.0F);
leftWing = new ModelRenderer(this, 24, 13);
leftWing.addBox(-1F, 0.0F, -3F, 1, 4, 6);
leftWing.setRotationPoint(4F, -3 + i, 0.0F);
}
Can you tell me what's wrong? I believe it to be in the ModelGroosling class but I can't seem to find the problem. Is it my texture? I am trying to use a Chicken texture renamed to groosling.png until i can reach my texture guy.
Thanks in advance
Rollback Post to RevisionRollBack
How do I put my Youtube Channel in my Signature?? Message me If you know!
Hey tech guy, I'm having a small issue. SO any way Im trying to make a new mob that has the same model as a chicken. Anyway when i go in game, they spawn, but they are invisible.
Here is my mod_grooslingMob.java
public void addRenderer(Map map)
{
map.put(EntityGroosling.class, new RenderGroosling(new ModelGroosling(), 0.5F));
}
public String getVersion()
{
return "1.2.5";
}
}
Here is my ModelGroosling.java
package net.minecraft.src;
import org.lwjgl.opengl.GL11;
public class ModelGroosling extends ModelBase
{
public ModelRenderer head;
public ModelRenderer body;
public ModelRenderer rightLeg;
public ModelRenderer leftLeg;
public ModelRenderer rightWing;
public ModelRenderer leftWing;
public ModelRenderer bill;
public ModelRenderer chin;
public ModelGroosling()
{
int i = 16;
head = new ModelRenderer(this, 0, 0);
head.addBox(-2F, -6F, -2F, 4, 6, 3, 0.0F);
head.setRotationPoint(0.0F, -1 + i, -4F);
bill = new ModelRenderer(this, 14, 0);
bill.addBox(-2F, -4F, -4F, 4, 2, 2, 0.0F);
bill.setRotationPoint(0.0F, -1 + i, -4F);
chin = new ModelRenderer(this, 14, 4);
chin.addBox(-1F, -2F, -3F, 2, 2, 2, 0.0F);
chin.setRotationPoint(0.0F, -1 + i, -4F);
body = new ModelRenderer(this, 0, 9);
body.addBox(-3F, -4F, -3F, 6, 8, 6, 0.0F);
body.setRotationPoint(0.0F, i, 0.0F);
rightLeg = new ModelRenderer(this, 26, 0);
rightLeg.addBox(-1F, 0.0F, -3F, 3, 5, 3);
rightLeg.setRotationPoint(-2F, 3 + i, 1.0F);
leftLeg = new ModelRenderer(this, 26, 0);
leftLeg.addBox(-1F, 0.0F, -3F, 3, 5, 3);
leftLeg.setRotationPoint(1.0F, 3 + i, 1.0F);
rightWing = new ModelRenderer(this, 24, 13);
rightWing.addBox(0.0F, 0.0F, -3F, 1, 4, 6);
rightWing.setRotationPoint(-4F, -3 + i, 0.0F);
leftWing = new ModelRenderer(this, 24, 13);
leftWing.addBox(-1F, 0.0F, -3F, 1, 4, 6);
leftWing.setRotationPoint(4F, -3 + i, 0.0F);
}
Can you tell me what's wrong? I believe it to be in the ModelGroosling class but I can't seem to find the problem. Is it my texture? I am trying to use a Chicken texture renamed to groosling.png until i can reach my texture guy.
Thanks in advance
Can you redo the render class spoiler please, I can't seem to open it.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I was looking at the Achievement Tutorial, and I've got a question with it.
You're example just shows the situation of getting an item with crafting. What if I want to achieve an achievement from farming, or smelting, or in a certain condition(like the "Overkill")?
I resolved the path issue, I just put /stoneskin.png and it worked without extra folders.
Now I'm having trouble getting a crafting/smelting recipe to work for it.
package net.minecraft.src;
import java.util.Random;
public class BlockSpeedstone extends Block
{
public BlockSpeedstone(int i, int j)
{
super(i, j, Material.wood);
}
public int idDropped(int i, Random random, int j)
{
return mod_Speedstone.Speedstone.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
/**
* Called whenever an entity is walking on top of this block. Args: world, x, y, z, entity
*/
public void onEntityWalking(World world, int i, int j, int k, Entity entity)
{
entity.addVelocity(2, 2, 2);
}
{
ModLoader.addSmelting(Block.dirt.blockID, new ItemStack(Speedstone, 1));
}
{
ModLoader.addRecipe(new ItemStack(Speedstone, 64), new Object [] {"@@@", "@@@", "@@@", Character.valueOf('@'), Block.dirt});
}
}
In Eclipse "Speedstone" is shown as an error in both recipes. I've tried adding Block. and .blockID and nothing. In the tutorial it shows just the name of the object, but I keep getting the error for doing that.
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT d98c2e87 --------
Generated 4/15/12 7:00 AM
Minecraft: Minecraft 1.2.5
OS: Mac OS X (x86_64) version 10.7.3
Java: 1.6.0_29, Apple Inc.
VM: Java HotSpotâ„¢ 64-Bit Server VM (mixed mode), Apple Inc.
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 2600 PRO OpenGL Engine version 2.1 ATI-7.18.11, ATI Technologies Inc.
java.lang.ClassCastException: net.minecraft.src.EntityGroosling cannot be cast to net.minecraft.src.EntityChicken
at net.minecraft.src.RenderChicken.doRender(RenderChicken.java:43)
at net.minecraft.src.RenderManager.renderEntityWithPosYaw(RenderManager.java:185)
at net.minecraft.src.RenderManager.renderEntity(RenderManager.java:172)
at net.minecraft.src.RenderGlobal.renderEntities(RenderGlobal.java:440)
at net.minecraft.src.EntityRenderer.renderWorld(EntityRenderer.java:1129)
at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:939)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:20)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:922)
at net.minecraft.client.Minecraft.run(Minecraft.java:801)
at java.lang.Thread.run(Thread.java:680)
--- END ERROR REPORT a0dd67fe ----------
Thanks in advance!
Rollback Post to RevisionRollBack
How do I put my Youtube Channel in my Signature?? Message me If you know!
Hey techguy, Can you explain how to make an item spawn in a mob in a gui? I asked this question a really long time, but I didn't get an answer :S..
I know your not taking any suggestions... But please?
Thanks
I resolved the path issue, I just put /stoneskin.png and it worked without extra folders.
Now I'm having trouble getting a crafting/smelting recipe to work for it.
package net.minecraft.src;
import java.util.Random;
public class BlockSpeedstone extends Block
{
public BlockSpeedstone(int i, int j)
{
super(i, j, Material.wood);
}
public int idDropped(int i, Random random, int j)
{
return mod_Speedstone.Speedstone.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
/**
* Called whenever an entity is walking on top of this block. Args: world, x, y, z, entity
*/
public void onEntityWalking(World world, int i, int j, int k, Entity entity)
{
entity.addVelocity(2, 2, 2);
}
{
ModLoader.addSmelting(Block.dirt.blockID, new ItemStack(Speedstone, 1));
}
{
ModLoader.addRecipe(new ItemStack(Speedstone, 64), new Object [] {"@@@", "@@@", "@@@", Character.valueOf('@'), Block.dirt});
}
}
In Eclipse "Speedstone" is shown as an error in both recipes. I've tried adding Block. and .blockID and nothing. In the tutorial it shows just the name of the object, but I keep getting the error for doing that.
the recipes don't go in the block file... They go in the mod_ file, just look at the tutorial.
I was looking at the Achievement Tutorial, and I've got a question with it.
You're example just shows the situation of getting an item with crafting. What if I want to achieve an achievement from farming, or smelting, or in a certain condition(like the "Overkill")?
Have a look in the EntityLiving class or something like that, I'm not sure where the code for that is kept.
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT d98c2e87 --------
Generated 4/15/12 7:00 AM
Minecraft: Minecraft 1.2.5
OS: Mac OS X (x86_64) version 10.7.3
Java: 1.6.0_29, Apple Inc.
VM: Java HotSpotâ„¢ 64-Bit Server VM (mixed mode), Apple Inc.
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 2600 PRO OpenGL Engine version 2.1 ATI-7.18.11, ATI Technologies Inc.
java.lang.ClassCastException: net.minecraft.src.EntityGroosling cannot be cast to net.minecraft.src.EntityChicken
at net.minecraft.src.RenderChicken.doRender(RenderChicken.java:43)
at net.minecraft.src.RenderManager.renderEntityWithPosYaw(RenderManager.java:185)
at net.minecraft.src.RenderManager.renderEntity(RenderManager.java:172)
at net.minecraft.src.RenderGlobal.renderEntities(RenderGlobal.java:440)
at net.minecraft.src.EntityRenderer.renderWorld(EntityRenderer.java:1129)
at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:939)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:20)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:922)
at net.minecraft.client.Minecraft.run(Minecraft.java:801)
at java.lang.Thread.run(Thread.java:680)
--- END ERROR REPORT a0dd67fe ----------
Hey techguy, Can you explain how to make an item spawn in a mob in a gui? I asked this question a really long time, but I didn't get an answer :S..
I know your not taking any suggestions... But please?
Thanks
-lolydodo123
I'll PM you my code tomorrow if I remember, I don't want to post it as I wrote it for my mod myself.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Edit2: How would I stop the TNT from going through entities?
Edit3: Never mind I fixed that too, I took part of the code from the boat.
Edit4: When I try to make a custom recipe or try to use my item for something it tells me I have to put a field in Item.java. That fixes it but wouldn't it make my mod less compatible? How do I fix it?
Thanks for all of your help so far, just one last thing..
public void onEntityWalking(World world, int i, int j, int k, Entity entity)
{
entity.addVelocity(2, 0, 0);
}
I'm using that to get this block to accelerate entities when it's walked on. The problem is that it only works in one direction in each axis, how do I get it too accelerate me in whichever direction i'm initially walking?
The 2 value for the x axis sends me only in the positive direction of the x axis, -2 would send me in the negative etc.
Thanks for all of your help so far, just one last thing..
public void onEntityWalking(World world, int i, int j, int k, Entity entity)
{
entity.addVelocity(2, 0, 0);
}
I'm using that to get this block to accelerate entities when it's walked on. The problem is that it only works in one direction in each axis, how do I get it too accelerate me in whichever direction i'm initially walking?
The 2 value for the x axis sends me only in the positive direction of the x axis, -2 would send me in the negative etc.
I would try taking out what you have and doing this:
add this to the blocknamehere.java
slipperiness = 1.0F;
so that it fits in like this
public BlockNamehere(int i, int j)
{
super(i, j, Material.ground);
slipperiness = 1.0F;
}
if you set the "slipperiness" to a higher value then it will make you go faster
Thanks for all of your help so far, just one last thing..
public void onEntityWalking(World world, int i, int j, int k, Entity entity)
{
entity.addVelocity(2, 0, 0);
}
I'm using that to get this block to accelerate entities when it's walked on. The problem is that it only works in one direction in each axis, how do I get it too accelerate me in whichever direction i'm initially walking?
The 2 value for the x axis sends me only in the positive direction of the x axis, -2 would send me in the negative etc.
Try looking at the code for exp orbs, it's called EntityXPOrb.java
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I put it in a new folder, renamed it, and still the same error. tried a few combinations of renaming/new folder and still nothing..
my current path is /mymod/stoneskin.png and that folder is inside the same folder as Terrain.png.
Haha, this is my 3rd programming language and starting to learn one is always the same. Many little problems which usually have very obvious solutions when you notice them. I guess I still need to get my eye for java.
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumdid you just put the folder into jars/bin/minecraft.jar? Because that is were it is suppose to be. also: make sure that you have the right caps, as java is case sensitive.
Here is my mod_grooslingMob.java
package net.minecraft.src;
import java.util.Map;
public class mod_grooslingMob extends BaseMod
{
public void load()
{
ModLoader.registerEntityID(EntityGroosling.class, "Groosling", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(EntityGroosling.class, 10, 20, 30, EnumCreatureType.creature);
}
public void addRenderer(Map map)
{
map.put(EntityGroosling.class, new RenderGroosling(new ModelGroosling(), 0.5F));
}
public String getVersion()
{
return "1.2.5";
}
}
Here is my ModelGroosling.java
package net.minecraft.src;
import org.lwjgl.opengl.GL11;
public class ModelGroosling extends ModelBase
{
public ModelRenderer head;
public ModelRenderer body;
public ModelRenderer rightLeg;
public ModelRenderer leftLeg;
public ModelRenderer rightWing;
public ModelRenderer leftWing;
public ModelRenderer bill;
public ModelRenderer chin;
public ModelGroosling()
{
int i = 16;
head = new ModelRenderer(this, 0, 0);
head.addBox(-2F, -6F, -2F, 4, 6, 3, 0.0F);
head.setRotationPoint(0.0F, -1 + i, -4F);
bill = new ModelRenderer(this, 14, 0);
bill.addBox(-2F, -4F, -4F, 4, 2, 2, 0.0F);
bill.setRotationPoint(0.0F, -1 + i, -4F);
chin = new ModelRenderer(this, 14, 4);
chin.addBox(-1F, -2F, -3F, 2, 2, 2, 0.0F);
chin.setRotationPoint(0.0F, -1 + i, -4F);
body = new ModelRenderer(this, 0, 9);
body.addBox(-3F, -4F, -3F, 6, 8, 6, 0.0F);
body.setRotationPoint(0.0F, i, 0.0F);
rightLeg = new ModelRenderer(this, 26, 0);
rightLeg.addBox(-1F, 0.0F, -3F, 3, 5, 3);
rightLeg.setRotationPoint(-2F, 3 + i, 1.0F);
leftLeg = new ModelRenderer(this, 26, 0);
leftLeg.addBox(-1F, 0.0F, -3F, 3, 5, 3);
leftLeg.setRotationPoint(1.0F, 3 + i, 1.0F);
rightWing = new ModelRenderer(this, 24, 13);
rightWing.addBox(0.0F, 0.0F, -3F, 1, 4, 6);
rightWing.setRotationPoint(-4F, -3 + i, 0.0F);
leftWing = new ModelRenderer(this, 24, 13);
leftWing.addBox(-1F, 0.0F, -3F, 1, 4, 6);
leftWing.setRotationPoint(4F, -3 + i, 0.0F);
}
/**
* Sets the models various rotation angles.
*/
public void setRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6)
{
head.rotateAngleX = -(par5 / (180F / (float)Math.PI));
head.rotateAngleY = par4 / (180F / (float)Math.PI);
bill.rotateAngleX = head.rotateAngleX;
bill.rotateAngleY = head.rotateAngleY;
chin.rotateAngleX = head.rotateAngleX;
chin.rotateAngleY = head.rotateAngleY;
body.rotateAngleX = ((float)Math.PI / 2F);
rightLeg.rotateAngleX = MathHelper.cos(par1 * 0.6662F) * 1.4F * par2;
leftLeg.rotateAngleX = MathHelper.cos(par1 * 0.6662F + (float)Math.PI) * 1.4F * par2;
rightWing.rotateAngleZ = par3;
leftWing.rotateAngleZ = -par3;
}
}
Here is my EntityGroosling.java
package net.minecraft.src;
import java.util.Random;
public class EntityGroosling extends EntityMob
{
public EntityGroosling(World world)
{
super(world);
texture = "/groosling.png";
moveSpeed = 0.5F;
isImmuneToFire = false;
}
public int getMaxHealth()
{
return 2;
}
protected String getLivingSound()
{
return "mob.chicken.default";
}
protected String getHurtSound()
{
return "mob.chicken.defaulthurt";
}
protected String getDeathSound()
{
return "mob.chicken.defaultdeath";
}
protected int getDropItemId()
{
return mod_hungerGamesFoodNWeapons.rawgroosling.shiftedIndex;
}
protected boolean canDespawn()
{
return false;
}
}
And finally here is my RenderGroosling.java
package net.minecraft.src;
import org.lwjgl.opengl.GL11;
public class RenderGroosling extends RenderLiving
{
protected ModelGroosling modelGrooslingMain;
protected float field_40296_d;
public RenderGroosling(ModelGroosling par1ModelGroosling, float par2)
{
this(par1ModelGroosling, par2, 1.0F);
modelGrooslingMain = par1ModelGroosling;
}
public RenderGroosling(ModelGroosling par1ModelGroosling, float par2, float par3)
{
super(par1ModelGroosling, par2);
modelGrooslingMain = par1ModelGroosling;
field_40296_d = par3;
}
}
Can you tell me what's wrong? I believe it to be in the ModelGroosling class but I can't seem to find the problem. Is it my texture? I am trying to use a Chicken texture renamed to groosling.png until i can reach my texture guy.
Thanks in advance
Can you redo the render class spoiler please, I can't seem to open it.
together they are powerful beyond imagination."
okay here it is::::
package net.minecraft.src;
import org.lwjgl.opengl.GL11;
public class RenderGroosling extends RenderLiving
{
protected ModelGroosling modelGrooslingMain;
protected float field_40296_d;
public RenderGroosling(ModelGroosling par1ModelGroosling, float par2)
{
this(par1ModelGroosling, par2, 1.0F);
modelGrooslingMain = par1ModelGroosling;
}
public RenderGroosling(ModelGroosling par1ModelGroosling, float par2, float par3)
{
super(par1ModelGroosling, par2);
modelGrooslingMain = par1ModelGroosling;
field_40296_d = par3;
}
}
Try using RenderChicken instead.
together they are powerful beyond imagination."
You're example just shows the situation of getting an item with crafting. What if I want to achieve an achievement from farming, or smelting, or in a certain condition(like the "Overkill")?
Now I'm having trouble getting a crafting/smelting recipe to work for it.
package net.minecraft.src; import java.util.Random; public class BlockSpeedstone extends Block { public BlockSpeedstone(int i, int j) { super(i, j, Material.wood); } public int idDropped(int i, Random random, int j) { return mod_Speedstone.Speedstone.blockID; } public int quantityDropped(Random random) { return 1; } /** * Called whenever an entity is walking on top of this block. Args: world, x, y, z, entity */ public void onEntityWalking(World world, int i, int j, int k, Entity entity) { entity.addVelocity(2, 2, 2); } { ModLoader.addSmelting(Block.dirt.blockID, new ItemStack(Speedstone, 1)); } { ModLoader.addRecipe(new ItemStack(Speedstone, 64), new Object [] {"@@@", "@@@", "@@@", Character.valueOf('@'), Block.dirt}); } }In Eclipse "Speedstone" is shown as an error in both recipes. I've tried adding Block. and .blockID and nothing. In the tutorial it shows just the name of the object, but I keep getting the error for doing that.
If you ant them to appear in creative, you need to have your mod_whatever and the blockwhatever
(see my post from before)
Mods loaded: 12
ModLoader 1.2.5
mod_careertribute 1.2.5
mod_grooslingMob 1.2.5
mod_HardObsidian 1.2.5
mod_hungerGamesFoodNWeapons 1.2.5
mod_Obsidianacheivement 1.2.5
mod_ObsidianBrick 1.2.5
mod_Obsidiancraft 1.2.5 Dtroll
mod_obsidiannitrate 1.2.5
mod_Obsidianpressureplate 1.2.4 Dtroll
mod_Obsidianslab 1.2.5
mod_Obsidianstairs 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT d98c2e87 --------
Generated 4/15/12 7:00 AM
Minecraft: Minecraft 1.2.5
OS: Mac OS X (x86_64) version 10.7.3
Java: 1.6.0_29, Apple Inc.
VM: Java HotSpotâ„¢ 64-Bit Server VM (mixed mode), Apple Inc.
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 2600 PRO OpenGL Engine version 2.1 ATI-7.18.11, ATI Technologies Inc.
java.lang.ClassCastException: net.minecraft.src.EntityGroosling cannot be cast to net.minecraft.src.EntityChicken
at net.minecraft.src.RenderChicken.doRender(RenderChicken.java:43)
at net.minecraft.src.RenderManager.renderEntityWithPosYaw(RenderManager.java:185)
at net.minecraft.src.RenderManager.renderEntity(RenderManager.java:172)
at net.minecraft.src.RenderGlobal.renderEntities(RenderGlobal.java:440)
at net.minecraft.src.EntityRenderer.renderWorld(EntityRenderer.java:1129)
at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:939)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:20)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:922)
at net.minecraft.client.Minecraft.run(Minecraft.java:801)
at java.lang.Thread.run(Thread.java:680)
--- END ERROR REPORT a0dd67fe ----------
Thanks in advance!
I know your not taking any suggestions... But please?
Thanks
-lolydodo123
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumthe recipes don't go in the block file... They go in the mod_ file, just look at the tutorial.
Here
Have a look in the EntityLiving class or something like that, I'm not sure where the code for that is kept.
Post the render class and addRenderer method.
I'll PM you my code tomorrow if I remember, I don't want to post it as I wrote it for my mod myself.
together they are powerful beyond imagination."
Edit3: Never mind I fixed that too, I took part of the code from the boat.
Edit4: When I try to make a custom recipe or try to use my item for something it tells me I have to put a field in Item.java. That fixes it but wouldn't it make my mod less compatible? How do I fix it?
public void onEntityWalking(World world, int i, int j, int k, Entity entity) { entity.addVelocity(2, 0, 0); }I'm using that to get this block to accelerate entities when it's walked on. The problem is that it only works in one direction in each axis, how do I get it too accelerate me in whichever direction i'm initially walking?
The 2 value for the x axis sends me only in the positive direction of the x axis, -2 would send me in the negative etc.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI would try taking out what you have and doing this:
add this to the blocknamehere.java
so that it fits in like this
public BlockNamehere(int i, int j) { super(i, j, Material.ground); slipperiness = 1.0F; }if you set the "slipperiness" to a higher value then it will make you go faster
If anyone can help me, that would be greatly appreciated!
Try looking at the code for exp orbs, it's called EntityXPOrb.java