Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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 :)

 

 

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...

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.

 

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.