Now for a limited time you can try Mirkwood for free for a month. Mirkwood is not for everyone, especially children, women who are pregnant, or may become pregnant. Side effects include: nausea, vomiting, loss of bowel control, urges to speak German at random moments, explosive radiation poisoning, mutation, itchy, watery eyes, protein denaturalization, high fever, gooifying, potty-mouth, loss of charisma, and death. You must be 18 or over to be eligible to take Mirkwood. Ask your doctor if Mirkwood is right for you.
Now for a limited time you can try Mirkwood for free for a month. Mirkwood is not for everyone, especially children, women who are pregnant, or may become pregnant. Side effects include: nausea, vomiting, loss of bowel control, urges to speak German at random moments, explosive radiation poisoning, mutation, itchy, watery eyes, protein denaturalization, high fever, gooifying, potty-mouth, loss of charisma, and death. You must be 18 or over to be eligible to take Mirkwood. Ask your doctor if Mirkwood is right for you.
...the only difference I see with code that I have for my own model is including "static" there at the beginning.
-needed to be, without getting technical in my description. I'm very new to Java coding. I assumed that when you saw what I wrote, that it would direct you to the very first instance of the word which you wrote in the little bit of code that you provided.
I suppose I could have suggested for you to "remove the word static from between the word 'public' and the word 'class'.
Although, like I said, I am very new to modding, and based on how little information was provided about your problem, I couldn't be sure that would fix the issue you were having. So instead I merely looked through my own custom mob's model class and told you the only significant difference I could see, thinking that it might possibly be of help.
How about instead of suggesting that I work on my precision of replies, you adjust the politeness, and increase the gratitude of yours.
The Meaning of Life, the Universe, and Everything.
Join Date:
10/9/2012
Posts:
274
Location:
The City of New Townsville
Minecraft:
SyntaxError73
Member Details
I managed to fix it.
in case anyone else has this problem, DON'T make folders in Techne!
The folder causes the problem, so if you edit the code a bit, do what I did.
This line here is the erroring one.
Model.addChildModelRenderer(Head1);
"Model" is the name of the folder. not the actual model itself.
So if you remove this line, the error is fixed.
Rollback Post to RevisionRollBack
Now for a limited time you can try Mirkwood for free for a month. Mirkwood is not for everyone, especially children, women who are pregnant, or may become pregnant. Side effects include: nausea, vomiting, loss of bowel control, urges to speak German at random moments, explosive radiation poisoning, mutation, itchy, watery eyes, protein denaturalization, high fever, gooifying, potty-mouth, loss of charisma, and death. You must be 18 or over to be eligible to take Mirkwood. Ask your doctor if Mirkwood is right for you.
I think this has something to do with there being no variable named "Model".
take a look at the Java model code, I made the model in Techne.
The error says this:
error: cannot find symbol
Model.addChildModelRenderer(Head1);
^
symbol: variable Model
location: class ModelPintharHunter
1 error
And the code for the Techne model
public static class ModelPintharHunter extends ModelBase
{
//fields
ModelRenderer Head1;
ModelRenderer Thorax1;
ModelRenderer Thorax2;
ModelRenderer Abdomen1;
ModelRenderer Abdomen2;
ModelRenderer Abdomen3;
ModelRenderer Ovipositor;
ModelRenderer LegsL;
ModelRenderer LegsR;
ModelRenderer Fin;
ModelRenderer WingL;
ModelRenderer WingR;
public ModelPintharHunter()
{
textureWidth = 64;
textureHeight = 64;
Head1 = new ModelRenderer(this, "Head1");
Head1.setRotationPoint(0F, 6F, -2F);
setRotation(Head1, -0.0743572F, 0F, 0F);
Head1.mirror = true;
Head1.addBox("Head", -1.5F, -1F, -2F, 3, 3, 2);
Head1.addBox("Jaw", -0.5F, 0.5F, -7F, 1, 1, 6);
Head1.addBox("Jaw2", -0.5F, 0.5F, -7F, 1, 1, 6);
Head1.addBox("Jaw3", -0.5F, -0.5F, -5F, 1, 1, 5);
Head1.addBox("antennae", -2.5F, -6F, -1F, 5, 5, 0);
Model.addChildModelRenderer(Head1);
Thorax1 = new ModelRenderer(this, 19, 0);
Thorax1.addBox(-2F, -2F, -2F, 4, 4, 6);
Thorax1.setRotationPoint(0F, 6F, 0F);
Thorax1.setTextureSize(64, 64);
Thorax1.mirror = true;
setRotation(Thorax1, -0.3717861F, 0F, 0F);
Thorax2 = new ModelRenderer(this, 35, 0);
Thorax2.addBox(-1F, -1F, 0F, 2, 2, 3);
Thorax2.setRotationPoint(0F, 7F, 3F);
Thorax2.setTextureSize(64, 64);
Thorax2.mirror = true;
setRotation(Thorax2, 0.0743572F, 0F, 0F);
Abdomen1 = new ModelRenderer(this, 42, 1);
Abdomen1.addBox(-2.5F, -1.5F, -1F, 5, 4, 5);
Abdomen1.setRotationPoint(0F, 7F, 6F);
Abdomen1.setTextureSize(64, 64);
Abdomen1.mirror = true;
setRotation(Abdomen1, -0.4461433F, 0F, 0F);
Abdomen2 = new ModelRenderer(this, 44, 11);
Abdomen2.addBox(-2F, -1.5F, 0F, 4, 3, 4);
Abdomen2.setRotationPoint(0F, 8F, 8F);
Abdomen2.setTextureSize(64, 64);
Abdomen2.mirror = true;
setRotation(Abdomen2, -0.7807508F, 0F, 0F);
Abdomen3 = new ModelRenderer(this, 46, 19);
Abdomen3.addBox(-1.5F, -2F, 3F, 3, 2, 3);
Abdomen3.setRotationPoint(0F, 8F, 8F);
Abdomen3.setTextureSize(64, 64);
Abdomen3.mirror = true;
setRotation(Abdomen3, -1.115358F, 0F, 0F);
Ovipositor = new ModelRenderer(this, 35, 19);
Ovipositor.addBox(-0.5F, -0.5F, 5F, 1, 1, 8);
Ovipositor.setRotationPoint(0F, 8F, 8F);
Ovipositor.setTextureSize(64, 64);
Ovipositor.mirror = true;
setRotation(Ovipositor, -0.8551081F, 0F, 0F);
LegsL = new ModelRenderer(this, 23, 26);
LegsL.addBox(1F, 1F, -2.4F, 0, 6, 6);
LegsL.setRotationPoint(0F, 7F, 0F);
LegsL.setTextureSize(64, 64);
LegsL.mirror = true;
setRotation(LegsL, -0.5205006F, -0.4833219F, -0.7063936F);
LegsR = new ModelRenderer(this, 23, 26);
LegsR.addBox(-1F, 1F, -2.4F, 0, 6, 6);
LegsR.setRotationPoint(0F, 7F, 0F);
LegsR.setTextureSize(64, 64);
LegsR.mirror = true;
setRotation(LegsR, -0.5204921F, 0.4833166F, 0.7063871F);
Fin = new ModelRenderer(this, 45, 27);
Fin.addBox(0F, -5F, -1F, 0, 6, 8);
Fin.setRotationPoint(0F, 7F, 7F);
Fin.setTextureSize(64, 64);
Fin.mirror = true;
setRotation(Fin, -0.8551081F, 0F, 0F);
WingL = new ModelRenderer(this, 0, 9);
WingL.addBox(0F, -15F, 0F, 9, 16, 0);
WingL.setRotationPoint(2F, 4F, 0F);
WingL.setTextureSize(64, 64);
WingL.mirror = true;
setRotation(WingL, 1.226889F, -1.301093F, 0.2230728F);
WingR = new ModelRenderer(this, 0, 9);
WingR.addBox(0F, -15F, 0F, 9, 16, 0);
WingR.setRotationPoint(-2F, 4F, 0F);
WingR.setTextureSize(64, 64);
WingR.mirror = true;
setRotation(WingR, -1.226889F, -1.896114F, 0.223065F);
}
How do I define the variable "Model" properly so that it works?
Now for a limited time you can try Mirkwood for free for a month. Mirkwood is not for everyone, especially children, women who are pregnant, or may become pregnant. Side effects include: nausea, vomiting, loss of bowel control, urges to speak German at random moments, explosive radiation poisoning, mutation, itchy, watery eyes, protein denaturalization, high fever, gooifying, potty-mouth, loss of charisma, and death. You must be 18 or over to be eligible to take Mirkwood. Ask your doctor if Mirkwood is right for you.
Based on the bit of code you provided, the only difference I see with code that I have for my own model is including "static" there at the beginning.
So Lemme see if that fixes it.
I will edit this if it works.
[EDIT]: that created more errors, the variables set were non static.
I am a beginner, does it have something to do with the fields set?
OH WAIT... You meant for me to remove "static" from the way top?
you should really word your sentences clearer.
Now for a limited time you can try Mirkwood for free for a month. Mirkwood is not for everyone, especially children, women who are pregnant, or may become pregnant. Side effects include: nausea, vomiting, loss of bowel control, urges to speak German at random moments, explosive radiation poisoning, mutation, itchy, watery eyes, protein denaturalization, high fever, gooifying, potty-mouth, loss of charisma, and death. You must be 18 or over to be eligible to take Mirkwood. Ask your doctor if Mirkwood is right for you.
Really?!?!?
You mean to say that I should be more precise in my directions? I don't know how much more clear -
-needed to be, without getting technical in my description. I'm very new to Java coding. I assumed that when you saw what I wrote, that it would direct you to the very first instance of the word which you wrote in the little bit of code that you provided.
I suppose I could have suggested for you to "remove the word static from between the word 'public' and the word 'class'.
Although, like I said, I am very new to modding, and based on how little information was provided about your problem, I couldn't be sure that would fix the issue you were having. So instead I merely looked through my own custom mob's model class and told you the only significant difference I could see, thinking that it might possibly be of help.
How about instead of suggesting that I work on my precision of replies, you adjust the politeness, and increase the gratitude of yours.
I managed to fix it.
in case anyone else has this problem, DON'T make folders in Techne!
The folder causes the problem, so if you edit the code a bit, do what I did.
This line here is the erroring one.
"Model" is the name of the folder. not the actual model itself.
So if you remove this line, the error is fixed.
Now for a limited time you can try Mirkwood for free for a month. Mirkwood is not for everyone, especially children, women who are pregnant, or may become pregnant. Side effects include: nausea, vomiting, loss of bowel control, urges to speak German at random moments, explosive radiation poisoning, mutation, itchy, watery eyes, protein denaturalization, high fever, gooifying, potty-mouth, loss of charisma, and death. You must be 18 or over to be eligible to take Mirkwood. Ask your doctor if Mirkwood is right for you.