Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Avatar for NgLoader
Report NPCSystem-API?
This is a **full customisable** npc system wich allow you to create custom npc's.

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

[Coming soon]**

ProtocolLib Open

**
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
**
events
  • NPCCreatedEvent

  • NPCDeletedEvent

  • NPCInteractEvent

  • NPCVisibilityChangeEvent **

Information

CategoryDeveloper Tools
Published onApril 22, 2023
LicenseUnspecified
Downloads37
Stars0
Watchers0

Pinned Versions

Members