Sueta

[MOVABLE NPCS] Seocraft NPC-API

1.4

This is one of the tools used by the Seocraft Network to manage NPC's in its different services. Thi

·Plugin

NPC-API
API for create NPCs in Spigot/Bukkit

If you are going to use this api, please read this first.

Donate us
If you like our work please consider donating for improving our network
By clicking here

Functionalities

  • Creation - Create a NPC in anytime by using:
    NpcAPI.createNPC(String name, String value, String signature, Location location, Boolean name_visible, Player receiver)
  • NameTag visibility - Hide NPC NameTag by changing name_visible to false
  • Animation and Status - Play an animation or an status such as SWING_ARM using
    npc.playAnimation(Animation animation)
    or
    npc.playStatus(Status status)
  • Equipment - Equip the npc with an ItemStack in different positions such as HELMET, CHESTPLATE etc... using
    npc.setEquipment(EquipmentAction action, ItemStack itemStack)
  • Teleportation - Teleport the NPC in different locations using
    npc.teleport(Location location)
  • Removing - Delete the NPC using
    NpcAPI.removeNPC(NPC npc)
  • Event - Detect when the player interacts with a NPC using the NPCInteractEvent, you can also detect the type of interaction by getting the EventAction
  • Tablist - Remove or add the npc to the tablist by using
    npc.setAction(Action action)
  • Movement - Move the npc to a specified location using
    npc.setTarget(Location target, Float speed, Double distance_stop)
    or
    npc.setTarget(Entity entity, Float speed, Double distance_stop)

Value and Signature (Skins related)
As you just read, the npc needs a value and a signature to be created.
Those 2 can be filled by following these two instructions

Enter https://api.mojang.com/users/profiles/minecraft/USERNAME (Replace USERNAME with the username of the deserved skin) and copy the id

Enter http://sessionserver.mojang.com/session/minecraft/profile/ID?unsigned=false (Replace ID with the copied id) and copy value and signature

TO DO

  • Implement reflection for other versions in their classes

Similar projects

Plugin →