kenny2810 Posted January 12, 2014 Posted January 12, 2014 I am trying to add a new mob called a LavaCreeper yet when I come to register the textures it spams this error report: Also in the same class I am getting an error in this line of coding: this.tasks.addTask(2, new EntityAICreeperSwell(this)); [The error says: The constructor EntityAICreeperSwell(LavaCreeperClass) is undefined] UPDATE: Thanks ninja for helping me sort out the issue regarding the texture rendering but I still cannot understand what I must do regarding the this.tasks.addTask(2, new EntityAICreeperSwell(this)); Could you please be a bit more clear coolboy? Also I moved the code to a gist for easier reading and have removed the original error I was getting and have pasted the new error I am getting. Again thank you both of you for your help https://gist.github.com/anonymous/8383622 If I need to post any other classes just tell me and thanks for the help in advance Quote
coolboy4531 Posted January 12, 2014 Posted January 12, 2014 1 Are you sure your texture is compatible with the TextureManager? If not, then it can't load the texture correctly. 2- You have to create an new instance of EntityAICreeperSwell as EntityAICreeperSwell (inside the class) verifies the methods are owned by EntityCreeper. Also, please put your code into pastebin/in spoilers/code, it swallows the whole entire page... Quote
ninjapancakes87 Posted January 12, 2014 Posted January 12, 2014 Well, your error log says it can't load the texture. If you look at your code, you have your getEntityTexture method returning null. Have that method return your LavaCreeper, or whatever your ResourceLocation is. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.