1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Npc code

Discussion in 'Development' started by MrGalletaYTPM, Dec 18, 2019.

  1. MrGalletaYTPM

    MrGalletaYTPM Spider

    Messages:
    9
    Anyone know what the code is to create an npc?
     
  2. MC ATECH

    MC ATECH Baby Zombie

    Messages:
    117
    GitHub:
    mcpeatech
    Take a look at how slapper does it.
    Or:
    Use the human entity. Do this by extending it with the name of your NPC for example:
    PHP:
    class Noneplayercharacter extends Human{
    If you are still stuck you need to call your extended class in your main file of your plugin and send it to all the players online or in a level..
    Hope this helped.
     
  3. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    sure, but if you've read the development section rules you know that you have to make an attempt yourself first and show the code you have. We do not give out 100% free code here to script kiddies. Try making the code yourself using the API provided in pocketmine first, then we can help correct it.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.