I have been trying to create a new mob(a new type of wolf) , the code is pretty much what you have in your tutorial because I have not been able to get the mob to spawn, when it tries to spawn I get an error.
the code:
import java.util.Map;
public class mod_AlphaDireWolf extends BaseMod
{
public void load()
{
ModLoader.registerEntityID(mod_AlphaDireWolf.class, "AlphaDireWolf", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(mod_AlphaDireWolf.class, 12, 14, 18, EnumCreatureType.monster);
}
public void addRenderer(Map map)
{
map.put(mod_AlphaDireWolf.class, new RenderWolf(new ModelWolf(), 0.5F));
}
public String getVersion()
{
return "1.2.4";
}
}
package net.minecraft.src;
import java.util.Random;
public class mod_EntityAlphaDireWolf extends EntityMob
{
public mod_EntityAlphaDireWolf(World world)
{
super(world);
texture = "/mob/wolf.png";
moveSpeed = 0.5F;
attackStrength = 4; //take this line out if this class doesn't extend EntityMob.
}
public int getMaxHealth()
{
return 20;
}
protected String getLivingSound()
{
return "mob.wolf.default";
}
protected String getHurtSound()
{
return "mob.wolf.defaulthurt";
}
protected String getDeathSound()
{
return "mob.wolf.defaultdeath";
}
protected int getDropItemId()
{
return Item.leather.shiftedIndex;
}
protected boolean canDespawn()
{
return true;
}
}
The error message:
java.lang.NoSuchMethodException: net.minecraft.src.mod_AlphaDireWolf.<init>(net.minecraft.src.World)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.getConstructor(Unknown Source)
at net.minecraft.src.SpawnerAnimals.performSpawning(SpawnerAnimals.java:147)
at net.minecraft.src.World.tick(World.java:2851)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1923)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:890)
at net.minecraft.client.Minecraft.run(Minecraft.java:798)
at java.lang.Thread.run(Unknown Source)
EDIT Nevermind, I found the problem after reading about 30 pages of posts
now I just have the issue that the wolves are walking on tow feet which screws up the textures, any idea how to fix that?
I have been trying to create a new mob(a new type of wolf) , the code is pretty much what you have in your tutorial because I have not been able to get the mob to spawn, when it tries to spawn I get an error.
the code:
import java.util.Map;
public class mod_AlphaDireWolf extends BaseMod
{
public void load()
{
ModLoader.registerEntityID(mod_AlphaDireWolf.class, "AlphaDireWolf", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(mod_AlphaDireWolf.class, 12, 14, 18, EnumCreatureType.monster);
}
public void addRenderer(Map map)
{
map.put(mod_AlphaDireWolf.class, new RenderWolf(new ModelWolf(), 0.5F));
}
public String getVersion()
{
return "1.2.4";
}
}
package net.minecraft.src;
import java.util.Random;
public class mod_EntityAlphaDireWolf extends EntityMob
{
public mod_EntityAlphaDireWolf(World world)
{
super(world);
texture = "/mob/wolf.png";
moveSpeed = 0.5F;
attackStrength = 4; //take this line out if this class doesn't extend EntityMob.
}
public int getMaxHealth()
{
return 20;
}
protected String getLivingSound()
{
return "mob.wolf.default";
}
protected String getHurtSound()
{
return "mob.wolf.defaulthurt";
}
protected String getDeathSound()
{
return "mob.wolf.defaultdeath";
}
protected int getDropItemId()
{
return Item.leather.shiftedIndex;
}
protected boolean canDespawn()
{
return true;
}
}
The error message:
java.lang.NoSuchMethodException: net.minecraft.src.mod_AlphaDireWolf.<init>(net.minecraft.src.World)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.getConstructor(Unknown Source)
at net.minecraft.src.SpawnerAnimals.performSpawning(SpawnerAnimals.java:147)
at net.minecraft.src.World.tick(World.java:2851)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1923)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:890)
at net.minecraft.client.Minecraft.run(Minecraft.java:798)
at java.lang.Thread.run(Unknown Source)
EDIT Nevermind, I found the problem after reading about 30 pages of posts
now I just have the issue that the wolves are walking on tow feet which screws up the textures, any idea how to fix that?
I would create my own versions of ModelWolf and RenderWolf and use them instead.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
What do you mean? As I said before, I have had no modding experience at all before.
It isn't a modding thing, its a Java thing. I suggest you go look at the page I have linked at the bottom of the OP. Now that I look over your code though, you do have it written that you want it in the net.minecraft.src package. Make sure you have the class in mcp/src/net/minecraft/src folder with the rest of the classes from the game.
About the armour, can you make an advanced armour tutorial? The kind of advanced I'm thinking of is a toggle sprint only when the armour is on (boots). Also, I would like a pumpkin-like helmet with a custom HUD. If you can, help me. If you can't, direct me to someone who can please.
When I get to the armour, I'll decide what to do. I'll take your suggestion into consideration though.
I figured it out. I had the Pyre set as an Animal in EntityPyre but as a Monster in BiomeGenBase.
I don't like using ModLoader.
Is there any reason in particular you don't like using ModLoader? Not using ModLoader basically makes your mod incomptaible with every other mod that does use it. Especially when adding biomes, as ModLoader also edit BiomeGenBase. You get A LOT MORE downloads if you do use ModLoader. It makes it easier for you anyway.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Just after I have added that post (actually, it was just before), I have only really found my problem. I have been running the real MC on my machine, not the MCP Minecraft. After I got it to work, I was on top of the world! Thanks heaps though. All I need now is a way to compile my java files into class files.
Just after I have added that post (actually, it was just before), I have only really found my problem. I have been running the real MC on my machine, not the MCP Minecraft. After I got it to work, I was on top of the world! Thanks heaps though. All I need now is a way to compile my java files into class files.
Run recompile.bat/sh then reobfuscate.bat/sh, then you will have your class files in mcp/reobf/minecraft.
Hey TechGuy543, want better banners? Click on the banner in my sig.
Sorry for off-topic.
I stumbled across your shop just before actually. I must say that they are very good banners. I was thinking of getting a banner made for the users of the mod in my signature. I'll talk to the rest of my team then post the request. Thanks
“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."
Thanks so much for helping for the plant problem but now I have another problem.
I'm sorry for giving so much work to you.
I know this is obviously something to do with my textures. but i have the texture
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT cd1b8e96 --------
Generated 4/4/12 10:46 AM
Minecraft: Minecraft 1.2.4
OS: Windows 7 (x86) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 3200 Graphics version 2.1.8794, ATI Technologies Inc.
java.lang.RuntimeException: java.lang.Exception: Image not found: ColdSausagePizzaSlice.png
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1450)
at net.minecraft.src.ModLoader.onTick(ModLoader.java:1103)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:942)
at net.minecraft.client.Minecraft.run(Minecraft.java:798)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Exception: Image not found: ColdSausagePizzaSlice.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1023)
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1442)
... 5 more
--- END ERROR REPORT f1260b1 ----------
If you know whats wrong please help! I got no errors i just get a crash report about not having the picture when i do.
Is it possible to have too many items in one file when combining blocks or items?
Thanks!
I'm spending the rest of the night tonight, and the whole day tomorrow writing tutorials, so expect some new ones!
Awesome! Even though I am new, I would love to see the throw-able items tutorial!
Edit: Thanks so much! I have now made my first MC Mod! Thank you, thank you, thank you!
I have the feeling I'm missing something really obvious... I just can't figure out what.
You shouldn't have mod_ before the name of every file. Just call the classes EntityAlphaDireWolf, ModelAlphaDireWolf and RenderAlphaDireWolf. ModLoader is probably trying to read those files and that might be causing your problems. Only leave the main class with mod_ at the beginning of its name(the class with the load() method)
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
You shouldn't have mod_ before the name of every file. Just call the classes EntityAlphaDireWolf, ModelAlphaDireWolf and RenderAlphaDireWolf. ModLoader is probably trying to read those files and that might be causing your problems. Only leave the main class with mod_ at the beginning of its name(the class with the load() method)
Tried it, didn't work.
I also just commented out
map.put(EntityDireWolf.class, new RenderDireWolf(new ModelDireWolf(), 0.5F));
and it didn't even give me an error message, I don't think it is even looking at it.
Got any ideas as to why that would be?
Help me please! I keep having this error:
src\minecraft\net\minecraft\src\mod_darkmatter.java:18: error: reached end of file while parsing
}
^
PLEASE PLEASE HELP ME WITH THIS!
Help me please! I keep having this error:
src\minecraft\net\minecraft\src\mod_darkmatter.java:5: error: <identifier> expected
public static final mod_darkmatter = new darkmatter(i have tried darkmatter and Block)(160,
^
src\minecraft\net\minecraft\src\mod_darkmatter.java:18: error: reached end of file while parsing
}
^
PLEASE PLEASE HELP ME WITH THIS!
You have two errors:
this means that it doesn't know what to do with this line:
public static final mod_darkmatter = new darkmatter(160,
and it is because you have the "mod_" in a "public static final" line, to fix this you should take out the "mod_" form that line of code, if that doesn't work please look more carefully at the tutorial on blocks
This means that you need to add a "}" to the file, I would put it at the end first, and if that doesn't work I would rewrite the class.
Also: in the future please use the code tags and a spoilers, and post ALL of your code along with the error report. Spoilers and code tags can be made like so:
[spoiler] your text here[/spoiler]
for spoilers, and code can be made in the same way, just with "code" instead of the brackets instead of "spoiler"
this means that it doesn't know what to do with this line:
public static final mod_darkmatter = new darkmatter(160,
and it is because you have the "mod_" in a "public static final" line, to fix this you should take out the "mod_" form that line of code, if that doesn't work please look more carefully at the tutorial on blocks
This means that you need to add a "}" to the file, I would put it at the end first, and if that doesn't work I would rewrite the class.
Also: in the future please use the code tags and a spoilers, and post ALL of your code along with the error report. Spoilers and code tags can be made like so:
[spoiler] your text here[/spoiler]
for spoilers, and code can be made in the same way, just with "code" instead of the brackets instead of "spoiler"
k i fixed that and it now only has one more error. it is my class is this. please see if it is something i did wrong
src\minecraft\net\minecraft\src\mod_darkmatter.java:18: error: reached end of file while parsing
{
^
please look at my class for something wrong!
package net.minecraft.src;
public class mod_darkmatter extends BaseMod
{
public static final Block darkmatter = new Block(160,
0).setBlockName("darkmatter").setHardness(3F).setResistance(4F).setLightValue(1F);
public void load()
{
darkmatter.blockIndexInTexture = ModLoader.addOverride("/terrain.png",
"/mcp62/eclipse/Client/bin/darkmatter.png");
ModLoader.registerBlock(darkmatter);
ModLoader.addName(darkmatter, "darkmatter");
}
public String getVersion()
{
return "1.2.5";
}
k i fixed that and it now only has one more error. it is my class is this. please see if it is something i did wrong src\minecraft\net\minecraft\src\mod_darkmatter.java:18: error: reached end of file while parsing } ^
package net.minecraft.src;
public class mod_darkmatter extends BaseMod
{
public static final Block darkmatter = new Block(160,
0).setBlockName("darkmatter").setHardness(3F).setResistance(4F).setLightValue(1F);
public void load()
{
darkmatter.blockIndexInTexture = ModLoader.addOverride("/terrain.png",
"/mcp62/eclipse/Client/bin/darkmatter.png");
ModLoader.registerBlock(darkmatter);
ModLoader.addName(darkmatter, "darkmatter");
}
public String getVersion()
{
return "1.2.5";
}
firstly you need a "/" in the second set of brackets for the tags to work. In relation to your error, it was caused by the game looking for more code in your file, but not finding any, parameters ( } ) are used to stop the game from trying to go further. this means that you need to put another "}" at the end of your file.
I have a question except this time not about modding! Since i'm a noob and just made an account i need to know how to make my own topic and how to make a download link to get my mod. It's not finished yet but still it would be good to get ready. Thanks!
And Thanks TechGuy for the awesome tutorial. You ar an Epic modder!
I was just wondering, is there a list of the item and block names used with MCP? I'm trying to create a new block but I don't know what some of the items are called.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I figured it out. I had the Pyre set as an Animal in EntityPyre but as a Monster in BiomeGenBase.
I don't like using ModLoader.
the code:
import java.util.Map; public class mod_AlphaDireWolf extends BaseMod { public void load() { ModLoader.registerEntityID(mod_AlphaDireWolf.class, "AlphaDireWolf", ModLoader.getUniqueEntityId()); ModLoader.addSpawn(mod_AlphaDireWolf.class, 12, 14, 18, EnumCreatureType.monster); } public void addRenderer(Map map) { map.put(mod_AlphaDireWolf.class, new RenderWolf(new ModelWolf(), 0.5F)); } public String getVersion() { return "1.2.4"; } }package net.minecraft.src; import java.util.Random; public class mod_EntityAlphaDireWolf extends EntityMob { public mod_EntityAlphaDireWolf(World world) { super(world); texture = "/mob/wolf.png"; moveSpeed = 0.5F; attackStrength = 4; //take this line out if this class doesn't extend EntityMob. } public int getMaxHealth() { return 20; } protected String getLivingSound() { return "mob.wolf.default"; } protected String getHurtSound() { return "mob.wolf.defaulthurt"; } protected String getDeathSound() { return "mob.wolf.defaultdeath"; } protected int getDropItemId() { return Item.leather.shiftedIndex; } protected boolean canDespawn() { return true; } }The error message:
EDIT Nevermind, I found the problem after reading about 30 pages of posts
now I just have the issue that the wolves are walking on tow feet which screws up the textures, any idea how to fix that?
I would create my own versions of ModelWolf and RenderWolf and use them instead.
together they are powerful beyond imagination."
It isn't a modding thing, its a Java thing. I suggest you go look at the page I have linked at the bottom of the OP. Now that I look over your code though, you do have it written that you want it in the net.minecraft.src package. Make sure you have the class in mcp/src/net/minecraft/src folder with the rest of the classes from the game.
When I get to the armour, I'll decide what to do. I'll take your suggestion into consideration though.
Is there any reason in particular you don't like using ModLoader? Not using ModLoader basically makes your mod incomptaible with every other mod that does use it. Especially when adding biomes, as ModLoader also edit BiomeGenBase. You get A LOT MORE downloads if you do use ModLoader. It makes it easier for you anyway.
together they are powerful beyond imagination."
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumRun recompile.bat/sh then reobfuscate.bat/sh, then you will have your class files in mcp/reobf/minecraft.
I stumbled across your shop just before actually. I must say that they are very good banners. I was thinking of getting a banner made for the users of the mod in my signature. I'll talk to the rest of my team then post the request. Thanks
together they are powerful beyond imagination."
together they are powerful beyond imagination."
I tried this just now and for some reason the game doesn't seem to care what model I want to use, the normal player model always gets used.
mod_AlphaDireWolf:
package net.minecraft.src; import java.util.Map; public class mod_AlphaDireWolf extends BaseMod { public void load() { ModLoader.registerEntityID(mod_AlphaDireWolf.class, "AlphaDireWolf", ModLoader.getUniqueEntityId()); ModLoader.addSpawn(mod_EntityAlphaDireWolf.class, 12, 14, 18, EnumCreatureType.creature); } public void addRenderer(Map map) { map.put(mod_AlphaDireWolf.class, new mod_RenderAlphaDireWolf(new mod_ModelAlphaDireWolf(), 0.5F)); } public String getVersion() { return "1.2.4"; } }mod_EntityAlphaDireWolf
package net.minecraft.src; import java.util.Random; public class mod_EntityAlphaDireWolf extends EntityCreature { public mod_EntityAlphaDireWolf(World world) { super(world); texture = "/mob/wolf.png"; moveSpeed = 0.5F; } public int getMaxHealth() { return 10; } protected String getLivingSound() { return "mob.wolf.default"; } protected String getHurtSound() { return "mob.wolf.defaulthurt"; } protected String getDeathSound() { return "mob.wolf.defaultdeath"; } protected int getDropItemId() { return Item.leather.shiftedIndex; } protected boolean canDespawn() { return false; } }mod_ModelAlphaDireWolf:
package net.minecraft.src; public class mod_ModelAlphaDireWolf extends ModelBase { public ModelRenderer wolfHeadMain; public ModelRenderer wolfBody; public ModelRenderer wolfLeg1; public ModelRenderer wolfLeg2; public ModelRenderer wolfLeg3; public ModelRenderer wolfLeg4; ModelRenderer wolfTail; ModelRenderer wolfMane; public mod_ModelAlphaDireWolf() { textureWidth = 64; textureHeight = 32; float f = 0.0F; float f1 = 13.5F; wolfHeadMain = new ModelRenderer(this, 0, 0); wolfHeadMain.addBox(-3F, -3F, -2F, 6, 6, 4, f); wolfHeadMain.setRotationPoint(-1F, f1, -7F); wolfBody = new ModelRenderer(this, 18, 14); wolfBody.addBox(-4F, -2F, -3F, 6, 9, 6, f); wolfBody.setRotationPoint(0.0F, 14F, 2.0F); wolfMane = new ModelRenderer(this, 21, 0); wolfMane.addBox(-4F, -3F, -3F, 8, 6, 7, f); wolfMane.setRotationPoint(-1F, 14F, 2.0F); wolfLeg1 = new ModelRenderer(this, 0, 18); wolfLeg1.addBox(-1F, 0.0F, -1F, 2, 8, 2, f); wolfLeg1.setRotationPoint(-2.5F, 16F, 7F); wolfLeg2 = new ModelRenderer(this, 0, 18); wolfLeg2.addBox(-1F, 0.0F, -1F, 2, 8, 2, f); wolfLeg2.setRotationPoint(0.5F, 16F, 7F); wolfLeg3 = new ModelRenderer(this, 0, 18); wolfLeg3.addBox(-1F, 0.0F, -1F, 2, 8, 2, f); wolfLeg3.setRotationPoint(-2.5F, 16F, -4F); wolfLeg4 = new ModelRenderer(this, 0, 18); wolfLeg4.addBox(-1F, 0.0F, -1F, 2, 8, 2, f); wolfLeg4.setRotationPoint(0.5F, 16F, -4F); wolfTail = new ModelRenderer(this, 9, 18); wolfTail.addBox(-1F, 0.0F, -1F, 2, 8, 2, f); wolfTail.setRotationPoint(-1F, 12F, 8F); wolfHeadMain.setTextureOffset(16, 14).addBox(-3F, -5F, 0.0F, 2, 2, 1, f); wolfHeadMain.setTextureOffset(16, 14).addBox(1.0F, -5F, 0.0F, 2, 2, 1, f); wolfHeadMain.setTextureOffset(0, 10).addBox(-1.5F, 0.0F, -5F, 3, 3, 4, f); } 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); wolfHeadMain.renderWithRotation(f5); wolfBody.render(f5); wolfLeg1.render(f5); wolfLeg2.render(f5); wolfLeg3.render(f5); wolfLeg4.render(f5); wolfTail.renderWithRotation(f5); wolfMane.render(f5); } private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5) { super.setRotationAngles(f, f1, f2, f3, f4, f5); } }mod_RenderAlphaDireWolf :
package net.minecraft.src; public class mod_RenderAlphaDireWolf extends RenderLiving { protected mod_ModelAlphaDireWolf mod_ModelAlphaDireWolf; protected float field_40296_d; public mod_RenderAlphaDireWolf(mod_ModelAlphaDireWolf par1ModelNamehere, float par2) { this(par1ModelNamehere, par2, 1.0F); mod_ModelAlphaDireWolf = par1ModelNamehere; } public mod_RenderAlphaDireWolf(mod_ModelAlphaDireWolf par1ModelNamehere, float par2, float par3) { super(par1ModelNamehere, par2); mod_ModelAlphaDireWolf = par1ModelNamehere; field_40296_d = par3; } }I have the feeling I'm missing something really obvious... I just can't figure out what.
I'm sorry for giving so much work to you.
I know this is obviously something to do with my textures. but i have the texture
Mods loaded: 8
ModLoader 1.2.4
mod_Flower 1.2.4
mod_House 1.2.4
mod_Items 1.2.3
mod_ManaOre 1.2.4
mod_Person 1.2.3
mod_Person2 1.2.3
mod_TurkeyCooked 1.2.4
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT cd1b8e96 --------
Generated 4/4/12 10:46 AM
Minecraft: Minecraft 1.2.4
OS: Windows 7 (x86) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 3200 Graphics version 2.1.8794, ATI Technologies Inc.
java.lang.RuntimeException: java.lang.Exception: Image not found: ColdSausagePizzaSlice.png
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1450)
at net.minecraft.src.ModLoader.onTick(ModLoader.java:1103)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:942)
at net.minecraft.client.Minecraft.run(Minecraft.java:798)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Exception: Image not found: ColdSausagePizzaSlice.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1023)
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1442)
... 5 more
--- END ERROR REPORT f1260b1 ----------
If you know whats wrong please help! I got no errors i just get a crash report about not having the picture when i do.
Is it possible to have too many items in one file when combining blocks or items?
Thanks!
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumThanks. Just trying it out now.
Awesome! Even though I am new, I would love to see the throw-able items tutorial!
Edit: Thanks so much! I have now made my first MC Mod! Thank you, thank you, thank you!
Awesome! Looking forward to block modeling!....and armour, if you teach us how to load a custom armour model! (instead of just a new itemArmor)
Thanks for helping with that!
Your the best THANKS!
I've spent like 3 hours looking at the code!
I'll add it into the OP under the Other NPC Information section.
You shouldn't have mod_ before the name of every file. Just call the classes EntityAlphaDireWolf, ModelAlphaDireWolf and RenderAlphaDireWolf. ModLoader is probably trying to read those files and that might be causing your problems. Only leave the main class with mod_ at the beginning of its name(the class with the load() method)
together they are powerful beyond imagination."
Tried it, didn't work.
I also just commented out
and it didn't even give me an error message, I don't think it is even looking at it.
Got any ideas as to why that would be?
src\minecraft\net\minecraft\src\mod_darkmatter.java:18: error: reached end of file while parsing
}
^
PLEASE PLEASE HELP ME WITH THIS!
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumYou have two errors:
this means that it doesn't know what to do with this line:
and it is because you have the "mod_" in a "public static final" line, to fix this you should take out the "mod_" form that line of code, if that doesn't work please look more carefully at the tutorial on blocks
This means that you need to add a "}" to the file, I would put it at the end first, and if that doesn't work I would rewrite the class.
Also: in the future please use the code tags and a spoilers, and post ALL of your code along with the error report. Spoilers and code tags can be made like so:
for spoilers, and code can be made in the same way, just with "code" instead of the brackets instead of "spoiler"
src\minecraft\net\minecraft\src\mod_darkmatter.java:18: error: reached end of file while parsing { ^please look at my class for something wrong!package net.minecraft.src; public class mod_darkmatter extends BaseMod { public static final Block darkmatter = new Block(160, 0).setBlockName("darkmatter").setHardness(3F).setResistance(4F).setLightValue(1F); public void load() { darkmatter.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mcp62/eclipse/Client/bin/darkmatter.png"); ModLoader.registerBlock(darkmatter); ModLoader.addName(darkmatter, "darkmatter"); } public String getVersion() { return "1.2.5"; }-
View User Profile
-
View Posts
-
Send Message
Curse Premiumfirstly you need a "/" in the second set of brackets for the tags to work. In relation to your error, it was caused by the game looking for more code in your file, but not finding any, parameters ( } ) are used to stop the game from trying to go further. this means that you need to put another "}" at the end of your file.
And Thanks TechGuy for the awesome tutorial. You ar an Epic modder!
-
View User Profile
-
View Posts
-
Send Message
Curse Premium