Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

librarian villager ID

Comments in 'Plugin Development' started by TheDeibo, Feb 3, 2016.

  1. TheDeibo
    Offline

    TheDeibo Notable Member

    Joined:
    Sep 8, 2014
    Posts:
    693
    Minecraft User:
    TheDeibo
    Im making a plugin, and it includes one mob ID. I need a librarian villager ID, or something I can do to make a villager a librarian. I searched Google... Nothing.

    Many thanks,
    TheDeibo
  2. Yosshi999
    Offline

    Yosshi999 New Member Plugin Developer

    Joined:
    Mar 13, 2014
    Posts:
    29
    Plugins:
    1
    Minecraft User:
    Yosshi999
    pocketmine\entity\Villager.php

    You can use Villager->setProfession()
    PocketKiller likes this.
  3. TheDeibo
    Offline

    TheDeibo Notable Member

    Joined:
    Sep 8, 2014
    Posts:
    693
    Minecraft User:
    TheDeibo
    hmm. So they is no ID then?
  4. Driesboy1
    Offline

    Driesboy1 Active Member

    Joined:
    Oct 28, 2015
    Posts:
    102
    Minecraft User:
    Driesboy
    PROFESSION_LIBRARIAN = 1
    NETWORK_ID = 15
  5. Yosshi999
    Offline

    Yosshi999 New Member Plugin Developer

    Joined:
    Mar 13, 2014
    Posts:
    29
    Plugins:
    1
    Minecraft User:
    Yosshi999
    villager's network_id=15
    librarian's $namedtag->Profession=1

    profession is in NBT, so I think there is no id.
    PEMapModder likes this.
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    It is an ID. Just that it isn't a unique entity ID, just like a dropped diamond has the same ID as a dropped dirt.
    PocketKiller likes this.

Share This Page

Advertisement