Jump to content

Jedigurl

Members
  • Posts

    4
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Jedigurl's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Ok, ExtenedPony is removed. Correct, ponyId is a enum mapped to a string name and string texture location. I looked up how to use IEntityAdditionalSpawnData and someone said it was just like EntityVilliger. I read that class and realized I should not be keeping a copy of the int locally in the method at all. I should just used getPonyId() and setPonyId() methods to access the datawatcher for my value. Thanks for the help everyone! This code works:
  2. Oh, that makes sense.
  3. I agree. This is the code where I try to use dataWrapper. ponyId is the int value that I cannot get to work the way I want. My main mod class common proxy clientproxy entity render eventhandler (not used currently, but was correctly printing debug statements, so I was getting the events) also unused, extended impl
  4. 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.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.