Wiki 9Minecraft Wiki 9Minecraft
Hologram Api Wiki › Guides › Make Text Rise and Disappear Smoothly

Make Text Rise and Disappear Smoothly

Configuring Lifetime and Animation

Smooth rising text requires coordinating position updates with visibility fade.

1. Spawn your hologram at ground level or entity position

2. Set the lifetime value—this determines how many ticks before auto-removal (typically 40-80 ticks for noticeable animation)

3. Create an update function that runs every tick during the hologram's existence

Implementing the Rise Effect

Inside the update loop:

  • Increment Y position by a small amount each tick (0.05-0.15 blocks per tick works well)
  • Optionally reduce text scale gradually to create a shrinking effect
  • Consider decreasing opacity or alpha value as lifetime decreases
  • Adjust render distance so the text remains visible throughout its rise

The hologram will automatically remove itself when lifetime reaches zero. Test the speed of rise and fade timing to match your desired visual feel—faster rises work for combat numbers, slower rises suit ambient labels.