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

Hi all! I have been having some trouble recently with my entities rendering. In the method I have where the entities render (com.nathodood.miscmod.util.registry.Entities.registerRenders) I have four separate statements declaring a separate render handler for each of my entities. However, all my entities use only the renderer (com.nathodood.miscmod.entity.render.RenderTenTNTPrimed) referred to in the first of the statements even though I specifically say in the other render statements to use the other renders, which is of course what I don't want to happen. As a side note, in the getEntityTexture method in each renderer class I have it returning null because it is never called in the first place (I had to get rid of this.bindEntityTexture in all of the doRender methods because that rendered a super zoomed-in version of what I wanted to be rendered). Here's my github repo for you to browse to help me find possible issues. I added comments only in places that seemed relevant to my issues. If you have any further questions regarding anything I will do my best to answer them as best as possible. Thanks!

Edited by nathodood

  • Author
3 hours ago, diesieben07 said:

Various notes:

  • Code style, issue 1, 3.
  • Problematic code, issue 10 (here), 13.
  • No, you can't put this here. ModelRegistryEvent is implicitly a client-only class. It can only be referenced from client only classes, such as your client proxy.
  • No. This completely defeats the point of a client proxy.
  • Why are you doing this string-concatenation-dance? Construct a ResourceLocation and use the EntityEntryBuilder#id method that takes one. Also you are giving all your entities the same ID. An ID must be unique.

Okay I have no clue how I missed me giving them all the same ID. What a trivial thing to do lol. Thank you though! I fixed my issue. Now do I mark this solved or do you do that?

Edited by nathodood

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.