package net.minecraft.src;
import java.util.Map;
import java.util.Random;
public class mod_Blasphemy extends BaseMod
{
public mod_Suctioncup()
{
ModLoader.RegisterEntityID(EntityDrone.class, "Drone", ModLoader.getUniqueEntityId());
ModLoader.AddSpawn(EntityDrone.class, 3, EnumCreatureType.creature);
public void AddRenderer(Map map)
{
map.put(EntityDrone.class, new RenderDrone(new ModelDrone(), 0.5F));
}
}
public void AddRenderer(Map map)
{
}
public String Version()
{
return "1.6.6";
}
}
I get errors on "AddRenderer" and the ")" at the end of the same line.
Error Report:
Mods loaded: 1
ModLoader Beta 1.6.6
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT 72687359 --------
Generated 5/06/11 1:44 PM
Minecraft: Minecraft Beta 1.6.6
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_25, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode, sharing), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: GeForce 9500 GT/PCI/SSE2 version 3.2.0, NVIDIA Corporation
java.lang.Error: Unresolved compilation problems:
void is an invalid type for the variable AddRenderer
Syntax error on token "(", ; expected
Syntax error on token ")", ; expected
at net.minecraft.src.mod_Blasphemy.<init>(mod_Blasphemy.java:16)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:215)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1179)
at net.minecraft.src.ModLoader.init(ModLoader.java:785)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:112)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:65)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:158)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:138)
at net.minecraft.client.Minecraft.run(Minecraft.java:435)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 6641f4cc ----------
Please help!
- Suctioncup
Rollback Post to RevisionRollBack
My pet dragon (Egg) needs to hatch! Click on it and let it live!
My pet dragon (Egg) needs to hatch! Click on it and let it live!
[Sheep] Would YOU want to be hurt for you hair? No? Join us...
package net.minecraft.src;
import java.util.Map;
import java.util.Random;
public class mod_Blasphemy extends BaseMod
{
public mod_Suctioncup()
{
ModLoader.RegisterEntityID(EntityDrone.class, "Drone", ModLoader.getUniqueEntityId());
ModLoader.AddSpawn(EntityDrone.class, 3, EnumCreatureType.creature);
public void AddRenderer(Map map)
{
map.put(EntityDrone.class, new RenderDrone(new ModelDrone(), 0.5F));
}
}
public void AddRenderer(Map map)
{
}
public String Version()
{
return "1.6.6";
}
}
I get errors on "AddRenderer" and the ")" at the end of the same line.
Error Report:
Mods loaded: 1
ModLoader Beta 1.6.6
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT 72687359 --------
Generated 5/06/11 1:44 PM
Minecraft: Minecraft Beta 1.6.6
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_25, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode, sharing), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: GeForce 9500 GT/PCI/SSE2 version 3.2.0, NVIDIA Corporation
java.lang.Error: Unresolved compilation problems:
void is an invalid type for the variable AddRenderer
Syntax error on token "(", ; expected
Syntax error on token ")", ; expected
at net.minecraft.src.mod_Blasphemy.<init>(mod_Blasphemy.java:16)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:215)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1179)
at net.minecraft.src.ModLoader.init(ModLoader.java:785)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:112)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:65)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:158)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:138)
at net.minecraft.client.Minecraft.run(Minecraft.java:435)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 6641f4cc ----------
i made a hippo and i don't know where to put the first text document, mod_Hippo, that is necessary to have it spawn. it doesn't work in src. so where does it go? i don't get errors or anything it's just nowhere to be found. Please help me?
other than the beginning textdoc's location the tutorial was good
Rollback Post to RevisionRollBack
I made it. Take a look. actually pmc took it down and gave me no reason as to why. if you do know why please pm me with the answer.
hmmmm i did this in mcp 43 and fixed all my errors but then i load up the startclient.bat file and it works fine then after a bit my mob spawns and sudenly :blink.gif: this is what i see so naturaly im like what the.....
and here is a top downish i dont think i did something right
here is the texture overide code
src/minecraft/net/minecraft/src/ModelKitten.java:15: cannot find symbol
symbol : method setPosition(float,float,float)
location: class net.minecraft.src.ModelRenderer
face.setPosition(0F, -4F, 0F);
^
src/minecraft/net/minecraft/src/ModelKitten.java:19: cannot find symbol
symbol : method setPosition(float,float,float)
location: class net.minecraft.src.ModelRenderer
arm1.setPosition(0F, -2F, 16F);
^
src/minecraft/net/minecraft/src/ModelKitten.java:23: cannot find symbol
symbol : method setPosition(float,float,float)
location: class net.minecraft.src.ModelRenderer
arm2.setPosition(0F, -2F, -8F);
^
src/minecraft/net/minecraft/src/ModelKitten.java:27: cannot find symbol
symbol : method setPosition(float,float,float)
location: class net.minecraft.src.ModelRenderer
leg1.setPosition(0F, 14F, 0F);
^
src/minecraft/net/minecraft/src/ModelKitten.java:31: cannot find symbol
symbol : method setPosition(float,float,float)
location: class net.minecraft.src.ModelRenderer
leg2.setPosition(0F, 14F, 8F);
^
5 errors
==================
and heres my model thing
package net.minecraft.src;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
public class ModelKitten extends ModelBase
{
public ModelKitten()
{
float scale = 0F;
face = new ModelRenderer(0, 0);
face.addBox(0F, 0F, 0F, 8, 18, 16, scale);
face.setPosition(0F, -4F, 0F);
public void render(float f, float f1, float f2, float f3, float f4, float f5)
{
super.render(f, f1, f2, f3, f4, f5);
face.render(f5); // all the things that isnt in the EXTEND , should be putting here , or it will not show up!
arm1.render(f5);
arm2.render(f5);
leg1.render(f5);
leg2.render(f5);
}
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5)
{
super.setRotationAngles(f, f1, f2, f3, f4, f5); // this adds animations of parts of the body , if you want to know how to animate use mob maker and my tutorial in the other thread
}
So I agree awesome tutorial, so during the course of using your tutorial/ getting the mcp to not wig out on me in the creation of a boomer mob, I got a few types of errors. The first being that the name of the folder my custom sounds are in are not being recognized and the error its self is can't find symbol:
src/minecraft/net/minecraft/src/EntityBoomer.java:50: cannot find symbol
symbol : variable leftfordeadmobs
location: class net.minecraft.src.EntityBoomer
return leftfordeadmobs.boomerhurt;
I did add the folder to the sounds folder in the mods folder in the resource folder, so I am not quite sure why it doesn't recognize it.
Edit: I was able to get rid of about 50ish errors, which all related to one small patch of code, now the only thing left is the folder location of the custom sounds not being recognized.
Edit: Ok was able to figure out why the thing hated the pathway for the custom sounds folder, seems like I forgot the quotes around the pathname...... so it ended up being "yourmobsoundfolder.mobsoundogg". I seemed to for some reason not notice that the comments for that line of code also had the return value being encased in "".
I did everything the tutorial said but im getting these errors:
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_Sessomaru.java:21: cannot find symbol
symbol : class RenderSessomaru
location: class net.minecraft.src.mod_Sessomaru
map.put(EntitySessomaru.class, new RenderSessomaru(new ModelSessomaru(), 0.5F));
// this one just assign the mob to your game and make it readable, just like Re
nderManager , the 0.5f is the shadow size of the mob you can make it bigger like
0.8f or smaller like 0.2f
^
src\minecraft\net\minecraft\src\mod_Sessomaru.java:21: cannot find symbol
symbol : class ModelSessomaru
location: class net.minecraft.src.mod_Sessomaru
map.put(EntitySessomaru.class, new RenderSessomaru(new ModelSessomaru(), 0.5F));
// this one just assign the mob to your game and make it readable, just like Re
nderManager , the 0.5f is the shadow size of the mob you can make it bigger like
0.8f or smaller like 0.2f
^
2 errors
And heres my code:
package net.minecraft.src;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
import java.util.*;
import java.util.Map;
public class mod_Sessomaru extends BaseMod
{
public mod_Sessomaru()
{
ModLoader.RegisterEntityID(EntitySessomaru.class, "Sessomaru", ModLoader.getUniqueEntityId()); // without this code , your mob wont spawn !
ModLoader.AddSpawn(EntitySessomaru.class, 3, EnumCreatureType.creature); // this is the spawn rate for exmaple if you put 3 the mobs is very rare to spawn,The EnumCreatureType is what type of mob it is , mobs that you want to spawn in water are "waterCreature", enemies are "monster", and animals are "creature".
}
// RENDERERS
public void AddRenderer(Map map)
{
map.put(EntitySessomaru.class, new RenderSessomaru(new ModelSessomaru(), 0.5F)); // this one just assign the mob to your game and make it readable, just like RenderManager , the 0.5f is the shadow size of the mob you can make it bigger like 0.8f or smaller like 0.2f
}
public String Version()
{
return "| [1.7.3] Begginers Mob Making Tutorial 2 The Modloader Way!"; // Put here anything you like after that it will show up in the modloader logs.
}
}
you can pm me the files and ill see whats wrong if you want
<!-- l -->List of all my other mods,creations,maps,etc..:
viewtopic.php?f=1039&t=325080&p=4488802#p4488802
<!-- l -->A 32x32 texture pack that keeps faithful to the original textures, items, and gui.
or i have to edit the type EnumCreatureType.java for health change?
You should say you just need to add the line "health = 20;" .-. its easier :tongue.gif:
I get errors on "AddRenderer" and the ")" at the end of the same line.
Error Report:
Please help!
- Suctioncup
My pet dragon (Egg) needs to hatch! Click on it and let it live!
My pet dragon (Egg) needs to hatch! Click on it and let it live!
[Sheep] Would YOU want to be hurt for you hair? No? Join us...
Join SDU NOW!
you need to add animations in modelyourmobname.java
<!-- l -->List of all my other mods,creations,maps,etc..:
viewtopic.php?f=1039&t=325080&p=4488802#p4488802
<!-- l -->i think it in entityyourmob , or mod_yourmob ...
<!-- l -->List of all my other mods,creations,maps,etc..:
viewtopic.php?f=1039&t=325080&p=4488802#p4488802
<!-- l -->which version of mcp did you use?
<!-- l -->List of all my other mods,creations,maps,etc..:
viewtopic.php?f=1039&t=325080&p=4488802#p4488802
<!-- l -->X10
Pikapika! You have the right to think your opinion, but I have the right to think your stupid. (i love play on words)
EntityDragon.java
RenderDragon.java
mod_Dragon.java
that is all of my code and it apearse in game but i cant see it it hurts me and i can hear it but is is invisible can you please help me?
other than the beginning textdoc's location the tutorial was good
I made it. Take a look.actually pmc took it down and gave me no reason as to why. if you do know why please pm me with the answer.Also, how could I make a mob lay special eggs that spawn more of that mob?
and here is a top downish i dont think i did something right
here is the texture overide code
oh by the way epic guide dude
EDIT: oh nvm i fixed it but it was funny while it lasted
lol
== ERRORS FOUND ==
src/minecraft/net/minecraft/src/ModelKitten.java:15: cannot find symbol
symbol : method setPosition(float,float,float)
location: class net.minecraft.src.ModelRenderer
face.setPosition(0F, -4F, 0F);
^
src/minecraft/net/minecraft/src/ModelKitten.java:19: cannot find symbol
symbol : method setPosition(float,float,float)
location: class net.minecraft.src.ModelRenderer
arm1.setPosition(0F, -2F, 16F);
^
src/minecraft/net/minecraft/src/ModelKitten.java:23: cannot find symbol
symbol : method setPosition(float,float,float)
location: class net.minecraft.src.ModelRenderer
arm2.setPosition(0F, -2F, -8F);
^
src/minecraft/net/minecraft/src/ModelKitten.java:27: cannot find symbol
symbol : method setPosition(float,float,float)
location: class net.minecraft.src.ModelRenderer
leg1.setPosition(0F, 14F, 0F);
^
src/minecraft/net/minecraft/src/ModelKitten.java:31: cannot find symbol
symbol : method setPosition(float,float,float)
location: class net.minecraft.src.ModelRenderer
leg2.setPosition(0F, 14F, 8F);
^
5 errors
==================
and heres my model thing
package net.minecraft.src;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
public class ModelKitten extends ModelBase
{
public ModelKitten()
{
float scale = 0F;
face = new ModelRenderer(0, 0);
face.addBox(0F, 0F, 0F, 8, 18, 16, scale);
face.setPosition(0F, -4F, 0F);
arm1 = new ModelRenderer(0, 34);
arm1.addBox(0F, 0F, 0F, 8, 18, 8, scale);
arm1.setPosition(0F, -2F, 16F);
arm2 = new ModelRenderer(32, 34);
arm2.addBox(0F, 0F, 0F, 8, 18, 8, scale);
arm2.setPosition(0F, -2F, -8F);
leg1 = new ModelRenderer(80, 0);
leg1.addBox(0F, 0F, 0F, 8, 10, 8, scale);
leg1.setPosition(0F, 14F, 0F);
leg2 = new ModelRenderer(48, 0);
leg2.addBox(0F, 0F, 0F, 8, 10, 8, scale);
leg2.setPosition(0F, 14F, 8F);
}
public void render(float f, float f1, float f2, float f3, float f4, float f5)
{
super.render(f, f1, f2, f3, f4, f5);
face.render(f5); // all the things that isnt in the EXTEND , should be putting here , or it will not show up!
arm1.render(f5);
arm2.render(f5);
leg1.render(f5);
leg2.render(f5);
}
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5)
{
super.setRotationAngles(f, f1, f2, f3, f4, f5); // this adds animations of parts of the body , if you want to know how to animate use mob maker and my tutorial in the other thread
}
ModelRenderer face;
ModelRenderer arm1;
ModelRenderer arm2;
ModelRenderer leg1;
ModelRenderer leg2;
}
I did add the folder to the sounds folder in the mods folder in the resource folder, so I am not quite sure why it doesn't recognize it.
Edit: I was able to get rid of about 50ish errors, which all related to one small patch of code, now the only thing left is the folder location of the custom sounds not being recognized.
Edit: Ok was able to figure out why the thing hated the pathway for the custom sounds folder, seems like I forgot the quotes around the pathname...... so it ended up being "yourmobsoundfolder.mobsoundogg". I seemed to for some reason not notice that the comments for that line of code also had the return value being encased in "".
And heres my code:
but its your style, so great job :smile.gif:
I made this map! Please check it out! It's a really awesome map that took me over a year to make! :3