Go to file
MrMicky 8d0b7b11c7 Allow NPC without Skin + despawn on destroy + optimisations 2018-04-16 04:10:30 +02:00
src Allow NPC without Skin + despawn on destroy + optimisations 2018-04-16 04:10:30 +02:00
.gitignore Add .gitignore 2018-04-16 04:08:23 +02:00
README.md Introduction change in README. 2018-04-15 19:59:56 +02:00

README.md

NPCLib Basic non-player character library.
Release JDK Versions

This is an API made specifically for spigot servers (Minecraft). Current supported versions: 1.8 - 1.12. Lightweight replacement for Citizens. NPCLib only uses packets instead of registering the entity in the actual Minecraft server.

Donate

PayPal

Alternatively, you can help the project by starring the repository or telling others about NPCLib 😄

Code Example

    // First we define our (global) library variable.
    // This is usually done in the onEnable method.
    NPCLib lib = new NPCLib(plugin);

   // Creating an NPC.
   NPC npc = lib.createNPC(skin, lines);

   // The generate the packets for the NPC.
   npc.create(location);

   // Then *finally* you can show/hide it to/from players.
   npc.show(player);
   npc.hide(player);

   // If you don't use the NPC anymore, destroy the NPC accordingly.
   npc.destroy();

Usable events: NPCSpawnEvent, NPCDestroyEvent and NPCInteractEvent.

Usage

Developers are only allowed to use NPCLib if they acknowledge the author of NPCLib (JitseB) with a link to this repository in the description of their resource. NPCLib comes without warranty. I (JitseB) cannot be held responsible for any damage. You may open an issue if you are experiencing issues with NPCLib.

You (the developer) can also contact me if you wish to be added to the list below.

Plugin(s) using NPCLib:

Copyright (c) Jitse Boonstra 2018 All rights reserved.