[API] TruenoNPC | Creates easy NPCs [1.8-1.12] 1.1

Simple API to create NPCs with skin and without nametag

  1. el_trueno
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    Source Code:
    https://github.com/eltrueno/TruenoNPC
    Contributors:
    aadnk, Yonas
    TruenoNPC
    API for create NPCs without nametags in Spigot/Bukkit. It's compatible with 1.8 to 1.12 versions

    Please if you are going to use this api, give me credits. Just a simple mention is welcome c:

    Donate me
    If you like my work, please, consider donating

    [​IMG]

    Features:
    • 1.8-1.12 support.
    • NPCs with skin (and with second layer).
    • Automatic render/unrender system. Create the npc and will be visible for all the players incluided incoming players.
    • NPCs without nametag, so you can create an hologram obove without character restriction.
    • Incluided packetlistening and events:
      • Spawn Event
      • Despawn Event
      • Interact Event
    Usage:
    1. Clone the repo and integrate it in your proyect.
    2. Remove nms classes that you don't be using from .nms package and TruenoNPCApi (If your plugin is not compatible 1.8 - 1.12).
    3. Create your npcs!
    Plugins using it:
    Servers using it:
    • (Official) mc.bauxitenetwork.net
    • mc.comugamers.com


    Examples:
    • Create NPC:
      Code (Text):

      //First create the skin
      TruenoNPCSkin skin = TruenoNPCSkinBuilder.fromUsername(this.plugin, p.getName());
      TruenoNPCSkin skin = TruenoNPCSkinBuilder.fromUUID(this.plugin, p.getUniqueId().toString());
      TruenoNPCSkin skin = TruenoNPCSkinBuilder.fromMineskin(this.plugin, 131234);

      //Now create the NPC ussing the skin
      TruenoNPC npc = TruenoNPCApi.createNPC(main.getPlugin(), p.getLocation(), skin);
       
    • NPC methods:
      Code (Text):
      TruenoNPC npc = TruenoNPCApi.createNPC(main.getPlugin(), p.getLocation(), "el_trueno");
      npc.delete(); // Delete the npc
      npc.getLocation(); // Returns npc location
      npc.getEntityID(); // Return entity id (int)
      npc.isDeleted(); // Returns if the npc has been deleted;
    • NPC Events Listening:
      Code (Text):
          @EventHandler
          public void OnInteract(TruenoNPCInteractEvent ev){
              TruenoNPC npc = ev.getNPC();
              Player player = ev.getPlayer();
          }

          @EventHandler
          public void onSpawn(TruenoNPCSpawnEvent ev){
              TruenoNPC npc = ev.getNPC();
              Player player = ev.getPlayer();
          }

          @EventHandler
          public void onDespawn(TruenoNPCDespawnEvent ev){
              TruenoNPC npc = ev.getNPC();
              Player player = ev.getPlayer();
          }

    Screenshots:
    [​IMG]

    Thanks to:

    Donate me
    If you like my work, please, consider donating

    [​IMG]

    Contact me

    [​IMG]

    Bitbucket fallback repository: https://bitbucket.org/el_trueno/truenonpc

Recent Updates

  1. Update 1.1
  2. Update 1.0.3
  3. Update 1.0.2

Recent Reviews

  1. JimmyFPE
    JimmyFPE
    5/5,
    Version: 1.1
    No entendi, debo descargar el .rar de "ElTrueno" y meter el src dentro del plugin Citizens ¿que tengo? o como, si me pudieras explicar te lo agradeceria bastante! :D
  2. passwords
    passwords
    5/5,
    Version: 1.1
    How to download this plugiin? Please help me!
  3. hugogaymer
    hugogaymer
    5/5,
    Version: 1.1
    ---------------------------------------------------------
    gr8 update! :>>>>
    ---------------------------------------------------------
  4. MartinGamer_Es
    MartinGamer_Es
    5/5,
    Version: 1.1
    una delicia como siempre xd
    1. el_trueno
  5. Sprax2013
    Sprax2013
    5/5,
    Version: 1.0.3
    Greate API! I would like to see more features like
    - Custom-Displayname
    - Teleport the NPC
    - Change Equipment of the NPC
    - etc.

    But it's Open Source, so it's fine ;) I can add it myselfe
    1. el_trueno
      Author's Response
      Thanks :). This API is done for my own requierments, but i share it :)
  6. ElSheriff
    ElSheriff
    5/5,
    Version: 1.0.3
    Realmente util! Sin duda alguna, me atrevería a decir que es mejor que el propio "CITIZENS"

    Para cuando:

    [API] TruenoHologram | Creates easy Holograms [1.8-1.12]
    1. el_trueno
      Author's Response
      Gracias!

      Realmente con que este en github, vale. No es de tanta calidad como para postearlo aqui
  7. MartinGamer_Es
    MartinGamer_Es
    5/5,
    Version: 1.0.3
    Epico :v
    :D
    1. el_trueno
  8. MartinGamer_Es
    MartinGamer_Es
    5/5,
    Version: 1.0.2
    Grande :v
    :P
  9. Esyui
    Esyui
    5/5,
    Version: 1.0.1
    Buenisima API! Funciona perfectamente y no tiene fallas! :) Gracias por compartir!
    1. el_trueno
      Author's Response
      Gracias! Y de nada :)
  10. hugogaymer
    hugogaymer
    5/5,
    Version: 1.0.1
    Wow, released less than 24h ago and there is a new update! Awesome! Working fine, lagless and active developer. What else can you ask for?
    1. el_trueno
      Author's Response
      Thank you :3