Best way to set an animals name

Discussion in 'Plugin Development' started by Fiddy_percent, Mar 16, 2013.

Thread Status:
Not open for further replies.
  1. Offline


    I'm trying to figure out how to make it so players can name there animals having trouble in a few parts

    one I'm not sure how I would make it so when players do a command its that animal that they are changing since I'm using the listener class to do so

    another I'm wondering is if there is a simple way to do this with the new object name change thing
  2. Offline


    The docs are not updated yet, so I don't believe there are methods to set the tag. You will need to use reflection.

    "What is reflection"

    You might need to do a bit of research
  3. Offline


    There are methods for this in the LivingEntity class. I got this all working editing the nbt without even checking for api since they're usually so slow, lol.


    I've not tested it, tho.
Thread Status:
Not open for further replies.

Share This Page