I am writing my first mod (yeay!) but I am really having trouble with my Entity.
I am extending EntityHorse with EntityPony. I would like to add one random integer variable in that class to use it as an index to get the name and texture for the Pony.
I first tried just making it a class member, but quickly saw it was different on the client and the server for the same entity! I have tried implementing IExtendedEntityProperties, but I got the same behavior. I also tried adding the int to dataWatcher, but that set ALL instances of my object to the same random int, which is not what I want.
I'm good with Java but very new to Minecraft sourcecode so any help there would really be appreciated.