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.

nosrick

Members
  • Joined

  • Last visited

  1. This sounds a lot like a Java question, and it also sounds like you might be using the static keyword. Post some code, I'll take a look.
  2. Has anyone got any idea why this might be happening? Should I try switching the Entity to inherit from EntityTameable, and use the vanilla EntityAIFollowOwner? If I did, how would I set the owner the moment the egg hatched, rather than when it was fed a certain item?
  3. Oh, right! Now I get it. Thanks for clearing that up. I pretty much copied the way EntityAIFollowOwner does it, except I don't use data watchers because I am not familiar with them. A UUID is used in the Entity, because it is passed in from the egg it hatches from. An EntityPlayer is used in the AI, because otherwise I'd be calling worldObj.func_152378_a(UUID) all the time to get one for the information required to move towards it.
  4. Forgive my ignorance, but I'm not sure what you mean. Is it in two places?
  5. In the Entity's readFromNBT(NBTTagCompound), line 196. m_FollowAI.SetOwner(m_OwnerID, m_OwnerDimension);
  6. Here's the Entity: http://pastebin.com/QVCgMT4A And here's the following AI, where the owner is being set: http://pastebin.com/gDmMyiqa
  7. I'm not sure I can, since the loading occurs in the entity class. Is there a way for me to check when the player logs in, inside of that class? Just did the dimension saving thing; it made no difference, still returns null.
  8. How do I go about doing those things?
  9. World.func_152378_a(UUID) is supposed to return an EntityPlayer, but when I try to call it with a saved player ID (at world load, using NBT tags), it returns null. Does anyone know what I'm doing wrong?
  10. You shouldn't be storing the player, store their UUID, like so: protected UUID m_ownerID; Save it to NBT by writing it to a string, then load it from string and use UUID.fromString(string) to get it back.
  11. I'll elaborate: I realise there's one renderer for all entities, yes. What I'm doing is saving the age within the entity, then when the entity changes life stages, it sets a static ModelBase in the renderer to the new model, then changes the model field at the start of every render call. Feels pretty hacky, but it gets the job done. ...I also get the feeling this shouldn't work. But it does, so yay!
  12. [move]TRIPLE COMBO POST[/move] So I solved it. I just set the super's mainModel to the static model I have in my renderer, which can be changed by calling a function. It seems to work just fine.
  13. Are there any good, 1.7.10 tutorials on custom mob rendering? I'm utterly useless when it comes to graphics programming, so I could use all the help I can get. Sorry for the double post.
  14. My super class is RenderLiving.
  15. My graphics programming skills are awful, so I call super.doRender and leave it at that. That's going to stop me changing my model, isn't it?

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.