Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
**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
Category | Developer Tools |
---|---|
Published on | April 22, 2023 |
License | Unspecified |
Downloads | 37 |
Stars | 0 |
Watchers | 0 |
Pinned Versions
Pages
Members
Owner