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 created a custom mob, but for some reason the model renders completely black.
Textures are definitely in the correct directory.
Is this usually a shader issue, or am I missing a registration step?

Still learning Forge, so any explanation helps.
Thanks!
M.M. Abdeljawwad aka (Myroslav Mokhammad Abdeljawwad)

Hey man!

I noticed you've made quite a number of posts very quickly. Just make sure to provide more details in these posts. For example, with this particular post, it may be difficult to help you as you have not provided any code. Because there is no code, many people that are to respond to your post would only be able to be guided by the examples of what is going wrong that you suggest. Generally, this is not ideal, as it is best to allow those answering your questions to come in with an open mind. Although, I'm probably not a good follower of this rule, so don't start lookin' through my posts.

Side tangents aside, these missing details do make it a bit difficult to track down the exact issue at hand. Regardless, I will still try my best to spit-ball here and see if anything sticks for ya'.

You seem to mention that your entity is being rendered as a "black cube". If your definition of cube here is the same as mine, and your entity is not supposed to be a cube, then there is a chance that when establishing your model renderer for your entity, you extended the wrong class. This might also make sense in explaining why it is "black". From everything I can tell, if you supplied the correct texture but extended the wrong model renderer class, then the texture mappings will leave blank spaces that will render black from the entity model renderers being updated. That is to say, when the game applies this "cube" UV layer mapping to the texture file provided, because the texture is not constructed for the cube, the images pulled for the cube from the texture will obviously not end up matching. There is a slim chance that this can make your entire entity render as black.

That last thing that I can think of as to the cause of your issue here would have to be that you MIGHT have forgotten to register your entity renderer. As for registering it, there is plenty of documentation of this on the Forge Docs, so be sure to check it out, but do make sure you register these for clients only if you haven't already.

If all of the above suggested issues have already been checked, then my next and final best guess would have to be that the game isn't able to get your textures for whatever reason. Try searching your latest.log file for text like "missing texture" and see if anything seems familiar.

If none of the above suggestions are applicable to your situation, then it would likely be pertinent to provide more information. The suggestions above are the most probable causes. If it isn't them, then the chances of somebody coming to a solution from the provided info is going to, unfortunately, be very slim.

I would like to provide further help to you, but I do not have enough information to work with here. Here is some info you could provide that would help us get to the bottom of this:

A latest.log file would give further information as to warnings or errors your game could be generating. If you do not feel comfortable with providing this log file, then you could use a CTRL+F search through the file to replace all occurrences of your PC Username with something else. There won't be much more identifiable info in the log file except for that and your minecraft username.

Your source code would also give anybody attempting to answer your question a lot of ease for very pronounced reasons.

Please get back to this thread with more; I would like to help you figure out what's going on here!

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.