I can currently change my mobs texture the same way I can change the name, I have to type "/mob/mobtexture.png" but instead I want to be able to just type "mobtexture". I have already tried:
I am getting some errors with modloader, I think it changed the function params, before it was:
AddSpawn(Class class1, int i, EnumCreatureType enumcreaturetype)
But now it's:
AddSpawn(Class class1, int i, int j, int k, EnumCreatureType enumcreaturetype)
What do the two extra ints do? Is it now coordinates? If so what does it use for spawnrate? And how do I make it work, because just sticking in any old number results in a crash.
I just checked, and there's no other kind of AddSpawn, they all want what i'm assuming is coordinates.
EDIT: follwing modloader code i'm led to this:
public class SpawnListEntry extends WeightedRandomChoice
{
public SpawnListEntry(Class class1, int i, int j, int k)
{
super(i);
entityClass = class1;
field_35591_b = j;
field_35592_c = k;
}
public Class entityClass;
public int field_35591_b;
public int field_35592_c;
}
in SpawnListEntry.java. Naturally everything is obfuscated but at least I know it's not coordinates.
I am getting some errors with modloader, I think it changed the function params, before it was:
AddSpawn(Class class1, int i, EnumCreatureType enumcreaturetype)
But now it's:
AddSpawn(Class class1, int i, int j, int k, EnumCreatureType enumcreaturetype)
What do the two extra ints do? Is it now coordinates? If so what does it use for spawnrate? And how do I make it work, because just sticking in any old number results in a crash.
I just checked, and there's no other kind of AddSpawn, they all want what i'm assuming is coordinates.
EDIT: follwing modloader code i'm led to this:
public class SpawnListEntry extends WeightedRandomChoice
{
public SpawnListEntry(Class class1, int i, int j, int k)
{
super(i);
entityClass = class1;
field_35591_b = j;
field_35592_c = k;
}
public Class entityClass;
public int field_35591_b;
public int field_35592_c;
}
in SpawnListEntry.java. Naturally everything is obfuscated but at least I know it's not coordinates.
Don't forget your friend the Java Docs:
static void AddSpawn(java.lang.String entityName, int weightedProb, int min, int max, vw spawnList)
Add entity to spawn list for all biomes except Hell.
Better than nothing.... I would be nice for the docs to have samples, but well... Anyway, still got the weightedProb (the chance). Don't know what the max and min is... sorry.
static String textured = "/gui/items.png";
public static Block Foundation = (new ILN_BlockFoundation(200, ModLoader.addOverride("/terrain.png", textured))).setHardness(900.0F).setResistance(6000.0F).setBlockName("Foundation");
Just make sure that you define the texture (can't leave it as String S; needs to be defined like String S = "/path/texture.png":wink.gif:. In other languages undefined vars push out null and are readable as null, but in Java there needs to be a value. You defined the value "" after the check on the variable.
public String myName;
public String newTexture = "";
public EntityTest(World world)
{
super(world);
health = 10;
texture = new StringBuilder().append("/mob/").append(newTexture).append(".png").toString();
myName = "";
}
What exactly are you expecting to happen with this code? if I read it right you are setting your texture to "/mob/.png". Do you expect something to happen when you do that? Are you experiencing an error when you play the game? Does no texture show (white box)?
The above code I used I threw together quickly. I'm working on shifting to 1.8.1 and am adjusting to the changes (which will problably carry over to 1.9.x or what ever since 1.9 is out). Give us more on what the actual problem you are having is. If you are trying to hide you ideas, well, I can only help with what I see.
As the title of this thread states, these tutorials are for 1.7.3. They can be addapted to 1.8, but as you can see above, some of the methods in both the vanilla and ModLoader have changed.
The problem I'm have is that when you open the mob's gui I should be able to change or add a texture to the mob the same way I can change or add a name above the mob's head. Now I can currently do this by having 'texture = "";' and creating a gui textfield like so:
Which allows me to change the mob's texture ingame via the mob's gui by typing the following in the blank text field '/mob/human.png' and then pressing the following button
Which then updates the current texture to the new texture that has been input via the text field. Now what I want to be able to do is instead of typing '/mob/human.png' I should be able to just type 'human' and get the same result as if I hade typed '/mob/human.png'. Now when I added
texture = new StringBuilder().append("/mob/").append(newTexture).append(".png").toString();
I also made sure to change 'themob.texture', to 'themob.newTexture'. Now the problem I'm having is that when I type 'human' in the blank text field and then click the button to change/add the new texture nothing happens, the mob doesn't change it's texture it just stays white. Now I tried removing = ""; from 'public String newTexture;' and adding newTexture = ""; to the constructor but that didn't work. I hope that clears up any confusing if not feel free tell me if they is anything else confusing or I haven't added.
ok, this is a bit better. Well, first thing I would do is to get a good look at what your output string looks like. I just skimmed your code, but I am giving a suggestion based on how I usually trouble shoot these type of issues. I would make a header text box for your GUI. Have it display what the current themob.texture is. So when you open the GUI, if themob.texture is "/mob/char.png" you should see this in that text field. Next I would have 2 buttons. An apply button (unless the field updateds when you change focus) and an OK button. The apply button would change themob.texture to the text of your input text field. The OK button would close the GUI. This way you can see what themob.texture should look like, and also see what you are changing it to. Could just be a mess up in the string combining.
Alright, I'm confused. I added Eagle's into my animal thing. I have all the same classes as my other mobs, but unlike those, the eagle is invisible. I know it's there because I copied the Ghast entity so it shoots at me. It's there, but it's invisible. I've triple checked the textures and that's correct, so I have no clue what's wrong. My fish does the same thing too. Any help?
Alright, I'm confused. I added Eagle's into my animal thing. I have all the same classes as my other mobs, but unlike those, the eagle is invisible. I know it's there because I copied the Ghast entity so it shoots at me. It's there, but it's invisible. I've triple checked the textures and that's correct, so I have no clue what's wrong. My fish does the same thing too. Any help?
Triple checking your own code doesn't help as much as when someone else looks at it. Proof reading is a hard art. In anycase, the only time I see this happening is when the texture is set to "", or a non-path. Post the line where you set the texture for your eagle. If you look at the conversations above, you can see the format that is needed:
== 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\EntityTurtle.java:16: cannot find symbol
symbol : variable ironingot
location: class net.minecraft.src.Item
return Item.ironingot.shiftedIndex;
^
src\minecraft\net\minecraft\src\mod_Turtle.java:12: cannot find symbol
symbol : method AddSpawn(java.lang.Class<net.minecraft.src.EntityTurtle>,int,ne
t.minecraft.src.EnumCreatureType)
location: class net.minecraft.src.ModLoader
ModLoader.AddSpawn(EntityTurtle.class, 250, EnumCreatureType.creature);
^
src\minecraft\net\minecraft\src\mod_Turtle.java:17: cannot find symbol
symbol : constructor RenderTurtle(net.minecraft.src.ModelTurtle,float)
location: class net.minecraft.src.RenderTurtle
map.put(EntityTurtle.class, new RenderTurtle(new ModelTurtle(), 0.5F));
^
src\minecraft\net\minecraft\src\ModelTurtle.java:8: cannot find symbol
symbol : constructor ModelRenderer(int,int)
location: class net.minecraft.src.ModelRenderer
New_Shape1 = new ModelRenderer(13, 0);
^
src\minecraft\net\minecraft\src\ModelTurtle.java:15: cannot find symbol
symbol : constructor ModelRenderer(int,int)
location: class net.minecraft.src.ModelRenderer
New_Shape11 = new ModelRenderer(13, 0);
^
src\minecraft\net\minecraft\src\ModelTurtle.java:22: cannot find symbol
symbol : constructor ModelRenderer(int,int)
location: class net.minecraft.src.ModelRenderer
New_Shape111 = new ModelRenderer(13, 0);
^
src\minecraft\net\minecraft\src\ModelTurtle.java:29: cannot find symbol
symbol : constructor ModelRenderer(int,int)
location: class net.minecraft.src.ModelRenderer
New_Shape112 = new ModelRenderer(13, 0);
^
src\minecraft\net\minecraft\src\ModelTurtle.java:36: cannot find symbol
symbol : constructor ModelRenderer(int,int)
location: class net.minecraft.src.ModelRenderer
New_Shape2 = new ModelRenderer(38, 0);
^
src\minecraft\net\minecraft\src\ModelTurtle.java:43: cannot find symbol
symbol : constructor ModelRenderer(int,int)
location: class net.minecraft.src.ModelRenderer
New_Shape3 = new ModelRenderer(23, 0);
^
src\minecraft\net\minecraft\src\ModelTurtle.java:54: cannot find symbol
symbol : method render(float,float,float,float,float,float)
location: class net.minecraft.src.ModelQuadruped
super.render(f, f1, f2, f3, f4, f5);
^
src\minecraft\net\minecraft\src\RenderTurtle.java:37: cannot find symbol
symbol : method getTurtleSize()
location: class net.minecraft.src.EntityTurtle
int i = entityTurtle.getTurtleSize();
^
src\minecraft\net\minecraft\src\RenderTurtle.java:38: cannot find symbol
symbol : variable field_767_b
location: class net.minecraft.src.EntityTurtle
float f1 = (entityTurtle.field_767_b + (entityTurtle.field_768_a - entityTurtle.
field_767_:cool.gif: * f) / ((float)i * 0.5F + 1.0F);
^
src\minecraft\net\minecraft\src\RenderTurtle.java:38: cannot find symbol
symbol : variable field_768_a
location: class net.minecraft.src.EntityTurtle
float f1 = (entityTurtle.field_767_b + (entityTurtle.field_768_a - entityTurtle.
field_767_:cool.gif: * f) / ((float)i * 0.5F + 1.0F);
^
src\minecraft\net\minecraft\src\RenderTurtle.java:38: cannot find symbol
symbol : variable field_767_b
location: class net.minecraft.src.EntityTurtle
float f1 = (entityTurtle.field_767_b + (entityTurtle.field_768_a - entityTurtle.
field_767_:cool.gif: * f) / ((float)i * 0.5F + 1.0F);
^
src\minecraft\net\minecraft\src\RenderTurtle.java:38: operator / cannot be appli
ed to <nulltype>,float
float f1 = (entityTurtle.field_767_b + (entityTurtle.field_768_a - entityTurtle.
field_767_:cool.gif: * f) / ((float)i * 0.5F + 1.0F);
^
15 errors
==================
> Done in 12.08 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
2 things. First off, as the title of the thread states, this is for 1.7.3. Second, it looks as if this is not done with Eclipse (glaring syntax errors).
In 1.8 they have changed the model files a bit (more variables in the object created). I would first suggest using Eclipse. Second, look at one of the existing model files (like ModelCow.java) and see what the other variables are.
For all others, I will most likely take some time and either update these tutorials, or create a new thread for 1.8.1, though I may wait on 1.9.x since it is supposed to be around the corner.
I fixed some things but can someone help me fix these other errors?
== 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\ModelTurtle.java:11: cannot find symbol
symbol : constructor ModelQuadruped()
location: class net.minecraft.src.ModelQuadruped
{
^
src\minecraft\net\minecraft\src\ModelTurtle.java:12: cannot find symbol
symbol : constructor ModelRenderer(int,int)
location: class net.minecraft.src.ModelRenderer
New_Shape1 = new ModelRenderer(13, 0);
^
src\minecraft\net\minecraft\src\ModelTurtle.java:19: cannot find symbol
symbol : constructor ModelRenderer(int,int)
location: class net.minecraft.src.ModelRenderer
New_Shape11 = new ModelRenderer(13, 0);
^
src\minecraft\net\minecraft\src\ModelTurtle.java:26: cannot find symbol
symbol : constructor ModelRenderer(int,int)
location: class net.minecraft.src.ModelRenderer
New_Shape111 = new ModelRenderer(13, 0);
^
src\minecraft\net\minecraft\src\ModelTurtle.java:33: cannot find symbol
symbol : constructor ModelRenderer(int,int)
location: class net.minecraft.src.ModelRenderer
New_Shape112 = new ModelRenderer(13, 0);
^
src\minecraft\net\minecraft\src\ModelTurtle.java:40: cannot find symbol
symbol : constructor ModelRenderer(int,int)
location: class net.minecraft.src.ModelRenderer
New_Shape2 = new ModelRenderer(38, 0);
^
src\minecraft\net\minecraft\src\ModelTurtle.java:47: cannot find symbol
symbol : constructor ModelRenderer(int,int)
location: class net.minecraft.src.ModelRenderer
New_Shape3 = new ModelRenderer(23, 0);
^
src\minecraft\net\minecraft\src\ModelTurtle.java:58: cannot find symbol
symbol : method render(float,float,float,float,float,float)
location: class net.minecraft.src.ModelQuadruped
super.render(f, f1, f2, f3, f4, f5);
^
8 errors
==================
> Done in 12.90 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
All this is my coding.
This is my mod_Turtle:
package net.minecraft.src;
import java.lang.reflect.Method;
import java.util.Map;
public class mod_Turtle extends BaseMod
{
public mod_Turtle()
{
ModLoader.RegisterEntityID(EntityTurtle.class, "Turtle", ModLoader.getUniqueEntityId());
ModLoader.AddSpawn(EntityTurtle.class, 250, 1, 1, EnumCreatureType.creature);
}
public void AddRenderer(Map map)
{
map.put(EntityTurtle.class, new RenderTurtle(new ModelTurtle(), 0.5F));
}
public String Version()
{
return "1.8.1";
}
}
This is my EntityTurtle:
package net.minecraft.src;
public class EntityTurtle extends EntityCreature
{
public EntityTurtle(World world)
{
super(world);
texture = "/Turtle.png";
moveSpeed = 0.2F;
isImmuneToFire = false;
}
protected int getDropItemId()
{
return Item.diamond.shiftedIndex;
}
public boolean canBreatheUnderwater()
{
return true;
}
protected boolean canDespawn()
{
return true;
}
public void onEntityDeath()
{
//If you know what you're doing, you can make it
//do cool things. e.g. explode like creeper.
}
}
I fixed some things but can someone help me fix these other errors?
== 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_Turtle.java:17: cannot find symbol
symbol : constructor RenderTurtle(net.minecraft.src.ModelTurtle,float)
location: class net.minecraft.src.RenderTurtle
map.put(EntityTurtle.class, new RenderTurtle(new ModelTurtle(), 0.5F));
^
src\minecraft\net\minecraft\src\ModelTurtle.java:8: cannot find symbol
symbol : constructor ModelRenderer(int,int)
location: class net.minecraft.src.ModelRenderer
New_Shape1 = new ModelRenderer(13, 0);
^
src\minecraft\net\minecraft\src\ModelTurtle.java:15: cannot find symbol
symbol : constructor ModelRenderer(int,int)
location: class net.minecraft.src.ModelRenderer
New_Shape11 = new ModelRenderer(13, 0);
^
src\minecraft\net\minecraft\src\ModelTurtle.java:22: cannot find symbol
symbol : constructor ModelRenderer(int,int)
location: class net.minecraft.src.ModelRenderer
New_Shape111 = new ModelRenderer(13, 0);
^
src\minecraft\net\minecraft\src\ModelTurtle.java:29: cannot find symbol
symbol : constructor ModelRenderer(int,int)
location: class net.minecraft.src.ModelRenderer
New_Shape112 = new ModelRenderer(13, 0);
^
src\minecraft\net\minecraft\src\ModelTurtle.java:36: cannot find symbol
symbol : constructor ModelRenderer(int,int)
location: class net.minecraft.src.ModelRenderer
New_Shape2 = new ModelRenderer(38, 0);
^
src\minecraft\net\minecraft\src\ModelTurtle.java:43: cannot find symbol
symbol : constructor ModelRenderer(int,int)
location: class net.minecraft.src.ModelRenderer
New_Shape3 = new ModelRenderer(23, 0);
^
src\minecraft\net\minecraft\src\ModelTurtle.java:54: cannot find symbol
symbol : method render(float,float,float,float,float,float)
location: class net.minecraft.src.ModelQuadruped
super.render(f, f1, f2, f3, f4, f5);
^
src\minecraft\net\minecraft\src\RenderTurtle.java:37: cannot find symbol
symbol : method getTurtleSize()
location: class net.minecraft.src.EntityTurtle
int i = entityTurtle.getTurtleSize();
^
src\minecraft\net\minecraft\src\RenderTurtle.java:38: cannot find symbol
symbol : variable field_767_b
location: class net.minecraft.src.EntityTurtle
float f1 = (entityTurtle.field_767_b + (entityTurtle.field_768_a - entityTurtle.
field_767_:cool.gif: * f) / ((float)i * 0.5F + 1.0F);
^
src\minecraft\net\minecraft\src\RenderTurtle.java:38: cannot find symbol
symbol : variable field_768_a
location: class net.minecraft.src.EntityTurtle
float f1 = (entityTurtle.field_767_b + (entityTurtle.field_768_a - entityTurtle.
field_767_:cool.gif: * f) / ((float)i * 0.5F + 1.0F);
^
src\minecraft\net\minecraft\src\RenderTurtle.java:38: cannot find symbol
symbol : variable field_767_b
location: class net.minecraft.src.EntityTurtle
float f1 = (entityTurtle.field_767_b + (entityTurtle.field_768_a - entityTurtle.
field_767_:cool.gif: * f) / ((float)i * 0.5F + 1.0F);
^
src\minecraft\net\minecraft\src\RenderTurtle.java:38: operator / cannot be appli
ed to <nulltype>,float
float f1 = (entityTurtle.field_767_b + (entityTurtle.field_768_a - entityTurtle.
field_767_:cool.gif: * f) / ((float)i * 0.5F + 1.0F);
^
13 errors
==================
> Done in 37.32 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
All this is my coding.
This is my mod_Turtle:
package net.minecraft.src;
import java.lang.reflect.Method;
import java.util.Map;
public class mod_Turtle extends BaseMod
{
public mod_Turtle()
{
ModLoader.RegisterEntityID(EntityTurtle.class, "Turtle", ModLoader.getUniqueEntityId());
ModLoader.AddSpawn(EntityTurtle.class, 250, 1, 1, EnumCreatureType.creature);
}
public void AddRenderer(Map map)
{
map.put(EntityTurtle.class, new RenderTurtle(new ModelTurtle(), 0.5F));
}
public String Version()
{
return "1.8.1";
}
}
This is my EntityTurtle:
package net.minecraft.src;
public class EntityTurtle extends EntityCreature
{
public EntityTurtle(World world)
{
super(world);
texture = "/Turtle.png";
moveSpeed = 0.2F;
isImmuneToFire = false;
}
protected int getDropItemId()
{
return Item.diamond.shiftedIndex;
}
public boolean canBreatheUnderwater()
{
return true;
}
protected boolean canDespawn()
{
return true;
}
public void onEntityDeath()
{
//If you know what you're doing, you can make it
//do cool things. e.g. explode like creeper.
}
}
If you want to be helped please read the help that is offered:
head = new ModelRenderer(this, 0, 0);
This was taken (quite easily) from ModelCow.java. Notice the inclusion of this in the object creation. Again, use Eclipse. it will tell you where these type of errors are, as well as often offer a valid fix.
Tried that and still getting the same result, maybe I'm forgetting something or doing something wrong in the entity preventing the texture from being accepted/permanent once I close the gui.
Ok, well, I'm about to finish up my new fruit trees test, I will try this out in a bit and post what I am able to do. Who's texture are you attempting to change?
If you want to be helped please read the help that is offered:
head = new ModelRenderer(this, 0, 0);
This was taken (quite easily) from ModelCow.java. Notice the inclusion of this in the object creation. Again, use Eclipse. it will tell you where these type of errors are, as well as often offer a valid fix.
Uh, yeah, about Eclipse, I got it, but it doesn't show me any errors. Maybe It's because I'm using a different version? *is confused* Well, I fixed that problem but there's 2 errors I can figure out:
== 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\ModelTurtle.java:11: cannot find symbol
symbol : constructor ModelQuadruped()
location: class net.minecraft.src.ModelQuadruped
{
^
src\minecraft\net\minecraft\src\ModelTurtle.java:58: cannot find symbol
symbol : method render(float,float,float,float,float,float)
location: class net.minecraft.src.ModelQuadruped
super.render(f, f1, f2, f3, f4, f5);
^
2 errors
==================
> Done in 13.44 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
you need to use a StringBuilder for that:
texture = new StringBuilder().append("/mob/").append(newTexture).append(".png").toString();
I don't cheat; I just conveniently write the rules.
Oops, did I steal your mod? Well, I'm lazy, so if I found the motivation to do so, you did something wrong as a developer.
Additional Buildcraft Objects: http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2310397
I'm currently also working on Remain in Motion. http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2104611
I can't advertise the others....
My Patreon: https://www.patreon.com/DA3DSOUL
But now it's:
What do the two extra ints do? Is it now coordinates? If so what does it use for spawnrate? And how do I make it work, because just sticking in any old number results in a crash.
I just checked, and there's no other kind of AddSpawn, they all want what i'm assuming is coordinates.
EDIT: follwing modloader code i'm led to this:
in SpawnListEntry.java. Naturally everything is obfuscated but at least I know it's not coordinates.
Don't forget your friend the Java Docs:
Better than nothing.... I would be nice for the docs to have samples, but well... Anyway, still got the weightedProb (the chance). Don't know what the max and min is... sorry.
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
Worked for me:
Just make sure that you define the texture (can't leave it as String S; needs to be defined like String S = "/path/texture.png":wink.gif:. In other languages undefined vars push out null and are readable as null, but in Java there needs to be a value. You defined the value "" after the check on the variable.
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
1. it never loads it's texture.
2. it spawns for a split second then disappears.
code:
gui for block:
What exactly are you expecting to happen with this code? if I read it right you are setting your texture to "/mob/.png". Do you expect something to happen when you do that? Are you experiencing an error when you play the game? Does no texture show (white box)?
The above code I used I threw together quickly. I'm working on shifting to 1.8.1 and am adjusting to the changes (which will problably carry over to 1.9.x or what ever since 1.9 is out). Give us more on what the actual problem you are having is. If you are trying to hide you ideas, well, I can only help with what I see.
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
As the title of this thread states, these tutorials are for 1.7.3. They can be addapted to 1.8, but as you can see above, some of the methods in both the vanilla and ModLoader have changed.
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
ok, this is a bit better. Well, first thing I would do is to get a good look at what your output string looks like. I just skimmed your code, but I am giving a suggestion based on how I usually trouble shoot these type of issues. I would make a header text box for your GUI. Have it display what the current themob.texture is. So when you open the GUI, if themob.texture is "/mob/char.png" you should see this in that text field. Next I would have 2 buttons. An apply button (unless the field updateds when you change focus) and an OK button. The apply button would change themob.texture to the text of your input text field. The OK button would close the GUI. This way you can see what themob.texture should look like, and also see what you are changing it to. Could just be a mess up in the string combining.
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
Well, try going back to:
texture = "/mob/"+newTexture+".png";
I haven't really played with string manipulation in Java. Go with the basics first and see how the output looks.
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
I don't cheat; I just conveniently write the rules.
Oops, did I steal your mod? Well, I'm lazy, so if I found the motivation to do so, you did something wrong as a developer.
Additional Buildcraft Objects: http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2310397
I'm currently also working on Remain in Motion. http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2104611
I can't advertise the others....
My Patreon: https://www.patreon.com/DA3DSOUL
Triple checking your own code doesn't help as much as when someone else looks at it. Proof reading is a hard art. In anycase, the only time I see this happening is when the texture is set to "", or a non-path. Post the line where you set the texture for your eagle. If you look at the conversations above, you can see the format that is needed:
"/path/pingname.png"
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
I would assign the string bulider to a variable then set texture to that variable... um like this:
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
2 things. First off, as the title of the thread states, this is for 1.7.3. Second, it looks as if this is not done with Eclipse (glaring syntax errors).
In 1.8 they have changed the model files a bit (more variables in the object created). I would first suggest using Eclipse. Second, look at one of the existing model files (like ModelCow.java) and see what the other variables are.
For all others, I will most likely take some time and either update these tutorials, or create a new thread for 1.8.1, though I may wait on 1.9.x since it is supposed to be around the corner.
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
All this is my coding.
This is my EntityTurtle:
This is my RenderTurtle:
And this is my ModelTurtle:
If you want to be helped please read the help that is offered:
This was taken (quite easily) from ModelCow.java. Notice the inclusion of this in the object creation. Again, use Eclipse. it will tell you where these type of errors are, as well as often offer a valid fix.
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
Ok, well, I'm about to finish up my new fruit trees test, I will try this out in a bit and post what I am able to do. Who's texture are you attempting to change?
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
Uh, yeah, about Eclipse, I got it, but it doesn't show me any errors. Maybe It's because I'm using a different version? *is confused* Well, I fixed that problem but there's 2 errors I can figure out:
This is the changed ModelTurtle: