Skip to content

Instantly share code, notes, and snippets.

@yungtechboy1
Forked from NiclasOlofsson/hologram.cs
Created January 30, 2016 04:48
Show Gist options
  • Save yungtechboy1/7f3c29b265ef8a1ecdad to your computer and use it in GitHub Desktop.
Save yungtechboy1/7f3c29b265ef8a1ecdad to your computer and use it in GitHub Desktop.
public class TextEntity : Entity
{
public TextEntity(Level level, string text, Vector3 pos) : base(64, level)
{
NameTag = text;
KnownPosition = new PlayerLocation(pos);
HealthManager = new NoDamageHealthManager(this);
}
public override void OnTick()
{
}
public override MetadataDictionary GetMetadata()
{
var metadata = base.GetMetadata();
metadata[15] = new MetadataByte(1);
return metadata;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment