-
[Solved] Different variable values for each player
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.
-
[1.7.10]Player lookup from UUID returns null
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?
-
[1.7.10]Player lookup from UUID returns null
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.
-
[1.7.10]Player lookup from UUID returns null
Forgive my ignorance, but I'm not sure what you mean. Is it in two places?
-
[1.7.10]Player lookup from UUID returns null
In the Entity's readFromNBT(NBTTagCompound), line 196. m_FollowAI.SetOwner(m_OwnerID, m_OwnerDimension);
-
[1.7.10]Player lookup from UUID returns null
Here's the Entity: http://pastebin.com/QVCgMT4A And here's the following AI, where the owner is being set: http://pastebin.com/gDmMyiqa
-
[1.7.10]Player lookup from UUID returns null
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.
-
[1.7.10]Player lookup from UUID returns null
How do I go about doing those things?
-
[1.7.10]Player lookup from UUID returns null
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?
-
[1.8][SOLVED] Attribute Modifier Help
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.
-
[1.7.10][SOLVED]Changing model at runtime
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!
-
[1.7.10][SOLVED]Changing model at runtime
[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.
-
[1.7.10][SOLVED]Changing model at runtime
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.
-
[1.7.10][SOLVED]Changing model at runtime
My super class is RenderLiving.
-
[1.7.10][SOLVED]Changing model at runtime
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?
IPS spam blocked by CleanTalk.