How to start an NPC plugin?

Discussion in 'Plugin Development' started by Minecraft Server Network, Jun 15, 2015.

Thread Status:
Not open for further replies.

    Hello! I want to make an NPC plugin but I don't know how to start it! All I want to know is:

    • How to freeze an entity
    • How to change the entity's name
    • How to log the npc's from a different class
    Thank you!
  2. Offline


    Wrong section. Meant for resources, such as Tutorials/Libraries.
  3. Offline


    You would have to work with ProtocolLib to send packets to all the players which spawns a PlayerEntitiy at a fixed location, with a fixed name/UUID.
  4. Offline

    timtower Administrator Administrator Moderator

    Moved to plugin development.
    @AzureDev Please use the report button for that next time.
  5. @timtower @AzureDev Sorry, still new to forums... not very good at it too!

    @Zombie_Striker Is there anyway that I could make it without ProtocolLib?

    Please anyone?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jun 12, 2016
  6. Offline

    I Al Istannen

    @Minecraft Server Network If you want a fake Player ProtocolLib is the easist way. You could do it yourself though. I think the packet would be PlayOutNamedEntitySpawn. But because it uses net minecraft server it would be only for one version. ProtocolLib avoids this (mostly).
  7. Offline


    ProtocolLib is not the only option, you can spawn a real entity and then simply strip off it's AI pathfinders, or create a custom entity with overridden update functions and spawn that in.
Thread Status:
Not open for further replies.

Share This Page