This is a plugin that enables you to create lightweight NPCs.
- Publish the plugin to your local maven repo using
gradle publish - Install the plugin to your Spigot server.
- Add the plugin as a dependency to your Spigot plugin.
- The aim of this plugin is to provide a lightweght NPC solution.
- This plugin will NOT support AI logic, it is up to you to implement.
- In the future, newer versions may be supported.
// Get the NPC API NpcsApi npcsApi = NpcsPlugin.getApi() // Create a global NPC Npc npc = npcsApi.createNpc("Test", location, true); // Run an asynchronous task to prevent blocking the main thread Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> { // Get a skin from the Mojang API Skin skin = SkinUtil.getSkin("Notch"); // Set the NPC's skin npc.setSkin(skin); });