How can i spawn entityHuman

Discussion in 'Spigot Plugin Development' started by LucGamesHD, Jan 20, 2018.

  1. How i can spawn a entityHuman in spigot 1.12 ?

    sry my english
  2. Just to start you off this is the basic code to spawn one but you may want to look up a tutorial as it can be a complex process depending on what you want it to do.

    EntityPlayer npc = new EntityPlayer(nmsServer, nmsWorld, gameProfile, new PlayerInteractManager(nmsWorld));
    Player npcPlayer = npc.getBukkitEntity().getPlayer();
    npc.setLocation(location.getX(), location.getY(), location.getZ(), player.getLocation().getYaw(), player.getLocation().getPitch());