Skip to content

Instantly share code, notes, and snippets.

View cosrnic's full-sized avatar

Cosmic cosrnic

View GitHub Profile
@cosrnic
cosrnic / custom-player-nametags-minestom.md
Last active September 28, 2024 18:12
Minestom Custom Entity Names

Minestom Custom Nametags


Credits to Owen1212055 for their NMS guide, please read it as this is just a simple port!

The NameTagEntity Class

public class NametagEntity extends Entity {

    public static final Tag<NametagEntity> NAMETAG_TAG = Tag.Transient("nametag"); // for deleting the entity on leave