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

Name tags on zombie

Comments in 'Plugin Development' started by CookieSteve, May 17, 2015.

  1. CookieSteve
    Offline

    CookieSteve Active Member

    Joined:
    Apr 22, 2014
    Posts:
    132
    Minecraft User:
    iStrqfeChris
    It is possible to make a plugin where zombies can have name tags?
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    It is possible to do so by spawning FloatingTextParticle that moves with zombies. But it may not work in the same way anyways.
    TigerHix likes this.
  3. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    Or use simple entity flags ;)
  4. CookieSteve
    Offline

    CookieSteve Active Member

    Joined:
    Apr 22, 2014
    Posts:
    132
    Minecraft User:
    iStrqfeChris
    What's the code for that?
  5. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    A work in progress secret :3
    Samueljh1, Falk and Legoboy0215 like this.
  6. Xenturio
    Offline

    Xenturio Active Member

    Joined:
    Sep 19, 2014
    Posts:
    333
    Minecraft User:
    Xenturio
    PHP:
      protected $dataProperties = [
         
    self::DATA_FLAGS => [self::DATA_TYPE_BYTE0],
         
    self::DATA_AIR => [self::DATA_TYPE_SHORT300],
         
    self::DATA_NAMETAG => [self::DATA_TYPE_STRING""],
         
    self::DATA_SHOW_NAMETAG => [self::DATA_TYPE_BYTE1],
         
    self::DATA_SILENT => [self::DATA_TYPE_BYTE0],
         
    self::DATA_NO_AI => [self::DATA_TYPE_BYTE0],
       ];
    Creeperface and jojoe77777 like this.
  7. EvolSoft
    Offline

    EvolSoft Notable Member Plugin Developer

    Joined:
    Sep 10, 2014
    Posts:
    821
    Plugins:
    15
    Minecraft User:
    Flavius12
    hoyinm14mc, iksaku and Tethered_ like this.
  8. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
  9. Xenturio
    Offline

    Xenturio Active Member

    Joined:
    Sep 19, 2014
    Posts:
    333
    Minecraft User:
    Xenturio
    Floating text and other particle lets get the server goes lag...
    Better for floating text is to creater human entity and set him to invisible. this works much better for me
  10. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    You should use the setnametag method. Other methods except FloatingTextParticle are not part of the backwards-compatible API that may break with version changes.
    hoyinm14mc and EvolSoft like this.
  11. SM11
    Offline

    SM11 Active Member

    Joined:
    Jun 21, 2015
    Posts:
    117
    Minecraft User:
    SM11
    I don't understand where would I do that anyways like which file or whatever
  12. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    The place you want to enable the nametag at.
  13. SM11
    Offline

    SM11 Active Member

    Joined:
    Jun 21, 2015
    Posts:
    117
    Minecraft User:
    SM11
    Would that be in the Pocketmine files or would I have to make a file, and how would I make it so that the mob didn't get hurt from other players
  14. CookieSteve
    Offline

    CookieSteve Active Member

    Joined:
    Apr 22, 2014
    Posts:
    132
    Minecraft User:
    iStrqfeChris
    I believe it's $event->setCancelled();
  15. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    And depends on what registered event you use that code xD

Share This Page

Advertisement