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.

DragonessAtHeart

Members
  • Joined

  • Last visited

Everything posted by DragonessAtHeart

  1. Okay I tried that but the compiler is mad at the RenderNewMob::new part. I just give it the render class I made for the mob correct? No?
  2. I did, but I'm still having problems with it. Thank you!
  3. But where do I start it? The game is crashing when I started the Id at 0 and then incremented it in the register call. Do I need to override the id numbers for all Entities or something?
  4. diesieben07, I'm sorry, I meant that I am having the exact same problem. And theOriginalByte, I don't have an account for that... Should I make one? I'm having trouble figuring out how to register and then render an entity.
  5. I am trying to target Java 8, but thank you for mentioning both. "you can use a method reference to pass your Render class's constructor (RenderMyEntity::new) as an IRenderFactory instead." The render class here we are talking about is the new mob's render class? I feel like I want to do something like this, registerEntityRenderingHandler(EntityNewMob.class, IRenderFactory (RenderNewMob::new)); but that isn't how you do it. Also oh my goodness RANKSHANK there is so much going on there! I'll have to study that code to see if I can't figure out what is going on. Can you tell me where I need to start researching to figure it out or try to explain it a bit more? If you don't feel like it, that's cool. I can probably figure it out eventually.
  6. Hello everyone! I've been trying to figure out how to register and render a new mob. The method EntityRegistry.registerModEntity() seems to be okay, but I'm not sure how to get the id for it. I would like to use the one that gives a spawn egg as well. I know the method findGlobalUniqueEntityId() is depreciated, and that I should initialize the id to 0 and just increment it in the method call. I'm just not sure where to initialize it so that it works for all entities and not just the ones I create. Should I initialize it in one of the mob classes or just in the client proxy? Or somewhere else entirely? Thank you so much!
  7. Could you maybe give an example of how to use it?
  8. Can anyone give more information on how to do this? I'm still confused about it. Thank you!
  9. Hello everyone. I'm pretty new to modding with Forge and forums and I apologize if this is in the wrong place or anything. I'm pulling my hair out trying to figure out how to properly register and render a new entity in 1.8.9. I have no idea what the IRenderFactory is or how to use it and I'm not even really sure rendering is my only problem. I have the entity class and the model class for the mob and a render class but I'm hitting a wall trying to find examples of how to do it properly with the new update. Everyone is just saying "use the registerEntityRenderingHandler" thing but I really have no idea specifically how to do this. This is my first mod. Could someone out there help me out? Thank you!! I have seen this topic: [1.8]Error Spawning in Entities, and this one, [1.8.9] Entity rendering registering recently changed?, but I need more information about how to actually do what they talk about. Also I'm not sure how to link a post. >> Sorry.... Please be gentle...

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.