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

Solved How to spawn mobs and Item entity?

Comments in 'Plugin Development' started by Rspuds, Aug 9, 2015.

  1. Rspuds
    Offline

    Rspuds New Member

    Joined:
    Aug 4, 2015
    Posts:
    53
    Just need to know what you do to spawn mobs and items as entitys. searched through the pocketmine code and couldn't fine anything to do with spawning either of this. It is possible isn't it? Thanks for any help
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Look at the spawn egg code.
    Rspuds and iksaku like this.
  3. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    And remember to declare the Network_ID constant, so the client can render the mob correctly :3
    Rspuds likes this.
  4. Rspuds
    Offline

    Rspuds New Member

    Joined:
    Aug 4, 2015
    Posts:
    53
    K thx guys
  5. Rspuds
    Offline

    Rspuds New Member

    Joined:
    Aug 4, 2015
    Posts:
    53
    @iksaku OK tried looking at other plugins and couldn't find what you mean by declare network_ID. Can you give me an example. I love examples :)
    Last edited: Aug 10, 2015

Share This Page

Advertisement