Posted November 15, 201311 yr Hello guys, I feel pretty newbie asking this, but I'm not sure what's the best way to do it. I have a mob that has got the custom field "species". Depending on this value, the client must render a different model. So how can I sync this value between server and the clients? I don't want to use the dataWatcher for this so small and "easy" thing. Do you know any better way? Of course "species" value is set only when the mob is created the first time, then it's saved in the NBT but it will never change. Thanks in advance, Axel
November 15, 201311 yr Hi Three ideas- (1) turn your single entity into two entities that share all the same code except for that one field (2) datawatcher (to be honest this is actually not so bad) (3) custom data packet I'd recommend the datawatcher myself, or splitting into two entities. -TGG
November 16, 201311 yr Author Thanks TGG, but I solved using IEntityAdditionalData interface. Nice ideas anyway, but remember that DataWatcher has a limit and my mod is already using 3 values of it. Bye, Axel
November 16, 201311 yr Hi Keen, never noticed that one myself before since it's not vanilla, will add it to my box of tricks. -TGG
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.