Skip to content

Library that allows spawning of NPCs with either citizens or through nms

License

Notifications You must be signed in to change notification settings

TechzoneMC/NPCLib

Repository files navigation

NPCLib Build Status

Easy spawning of npcs

##Supported Versions

  • 1.8
  • fake 1.8
  • 1.7.10
  • 1.7.9
  • 1.7.8
  • Citizens
    • Allows spawning on any version of minecraft

##Maven

###Repository

<repository>
  <id>techcable-repo</id>
  <url>http://repo.techcable.net/content/groups/public/</url>
</repository>

###Dependency

<dependency>
  <groupId>net.techcable</groupId>
  <artifactId>npclib</artifactId>
  <version>LATEST</version>
</dependency>

##Usage Javadocs

Example:

public void spawn() {
    if (!NPCLib.isSupported()) return;
    NPCRegistry registry = NPCLib.getNPCRegistry("awesome-registry", getPlugin());
    NPC npc = registry.createNPC(EntityType.PLAYER, "jack");
    npc.setName("greeter");
    npc.setProtected(true); //Makes invincible
    npc.setSkin(lookupId("Techcable")); //Gives the npc my troll skin
    npc.spawn(getSpawn()); //Spawns at server spawn
}

About

Library that allows spawning of NPCs with either citizens or through nms

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages