juliarn / npc-lib

Asynchronous, high-performance Minecraft NPC library for 1.8-1.21 servers.
MIT License
320 stars 50 forks source link

Multiple lines #56

Closed unldenis closed 2 months ago

unldenis commented 2 years ago

Hi, I had in mind to add the availability of having an NPC name with more lines.

So I initially forked the project and started working on it. After that I realized that maybe it was better to have it in a different repository so that I can use it myself as a library in my plugins.

So I made Hologram-Lib, a library that allows you to create holograms (even with items and animations) with packets using ProtocolLib.

If interested I can do a PR to implement my library to create the npcs.

lbirkert commented 2 years ago

You cannot make the player name longer then 16 characters or the clients will disconnect

unldenis commented 2 years ago

It has nothing to do with the title or even with what I wrote

You cannot make the player name longer then 16 characters or the clients will disconnect

juliarn commented 2 years ago

Hey, very cool project! Altough it isn't really related to npcs, I still think that it might be useful if it is directly implemented into the lib. But I'm not exactly sure yet about the best way it could be integrated.

unldenis commented 2 years ago

Yes I had started thinking about it, and the first thing is that I myself use a method in the HologramPool that every 2 ticks does the same job as NpcPool and should share same seeing players etc. So I had in mind to implement the holograms for each npc without the pool, and make public the 'show' and 'hide' methods of the holograms since they are protected at the moment.