Sueta

✨NPCSystem API ✨Support for all entities ✨ Create your own c

2.0.0

NPC

·Plugin

title.png
This is a full customisable npc system wich allow you to create custom npc's.

features.png
Full customisable
Full NPC support
Overriedable NPC's
Add custom NPC's
And much more...

images.png
[Coming soon]

requirements.png
ProtocolLib Open

usage.png

Maven import
<repositories>
       <repository>
           <id>ngloader-repo</id>
           <url>https://nexus.wuffy.eu/repository/maven-releases</url>
       </repository>
      </repositories>

      <dependency>
           <groupId>de.ngloader</groupId>
           <artifactId>npcsystem</artifactId>
           <version>LATEST</version>
      </dependency>
Create a player
NPCSystem npcSystem = Bukkit.getServicesManager().getRegistration(NPCSystem.class).getProvider();
NPCPlayer npc = new NPCPlayer(npcSystem.getDefaultRegistry(), "NgLoader", location);
npc.create();
Create own NPC

Watch Entity_metadata for the extends class and implementable methods

public class NPCSheep extends NPCAnimal {

    public NPCSheep(NPCRegistry registry, Location location) {
        super(registry, 0.62d, location, WrappedEntityId.SHEEP);
    }

    public void setSheared(boolean sheared) {
        this.setFlag(EntityFlag.SHEEP_IS_SHEARED, sheared);
    }

    public void setColor(WrappedEnumColor color) {
        this.setMetadata(EntityFlag.SHEEP_COLOR_ID.getIndex(), Byte.class, color.getColorIndex());
    }
}
Events

    • NPCCreatedEvent
    • NPCDeletedEvent
    • NPCInteractEvent
    • NPCVisibilityChangeEvent

Similar projects

Plugin →