All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Hologram API

Hologram API

by tricube • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Hologram API

A simple API for supporting in-world text rendering on the client side. This mod was created to simplify the creation process of my mods. Feel free to use this mod for your projects if it suits your needs.

List of my mods using this API:

Modrinth Curseforge
Holo Damage Indicator Holo Damage Indicator
Holo Health Indicator Holo Health Indicator
Holo Items Holo Items

demo

For developers

Setup

Download a version of the mod that is suitable for your version. Add this to dependencies

modApi files("<your file path>")
should be replaced to where your downloaded mod is.

Note: use double \\ instead of \ in your path to avoid formatting. Example:

modApi files("C:\\Users\\UserName\\Documents\\hologram_api-fabric-1.0.0 1.21.1.jar")

Example Usage

Component component = Component.literal("Hello World!").withStyle(ChatFormatting.GREEN); //create a minecraft component 
Hologram hologram = HologramAPI.create(comp, 0,80,0).lifetime(40).shadow(true).scale(2).renderDistance(20); //creating the hologram
hologram.onUpdate(h -> { //setting the animation (updates 20 times a second)
  h.y += 0.05f; //example animation to rise one block up every tick.
});

This creates a hologram with text "Hello World!" at coordinates 0, 80 ,0. It lasts for a total of 40 seconds and has a scale of 2. Additionally, it will only render when the player is within 20 blocks of radius.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.x
Fabric
5mo ago 1
1.21.5
Fabric
5mo ago 1
1.21.x
Fabric
5mo ago 1
1.21.1
Fabric
5mo ago 1
1.20.1
Fabric
5mo ago 1
1.21.11
Fabric
5mo ago 1
1.21.10
Fabric
5mo ago 1
26.1.x
Fabric
5mo ago 1
1.21.1
Neoforge
5mo ago 1
1.20.1
Forge
5mo ago 1
1.20.1
Forge
5mo ago 1
26.1.x
Fabric
6mo ago 1
1.21.x
Fabric
6mo ago 1
1.21.5
Fabric
6mo ago 1
1.21.11
Fabric
6mo ago 1
1.20.1
Fabric
6mo ago 1
1.21.1
Fabric
6mo ago 1
1.21.x
Fabric
6mo ago 1
1.21.10
Fabric
6mo ago 1
1.21.1
Neoforge
6mo ago 1
1.20.1
Forge
6mo ago 1
26.1.x
Fabric
7mo ago 1
1.21.1
Neoforge
7mo ago 1
1.20.1
Forge
7mo ago 1
1.20.1
Fabric
7mo ago 1
1.20.1
Fabric
7mo ago 1
1.21.10
Fabric
7mo ago 1
1.21.5
Fabric
7mo ago 1
1.21.11
Fabric
7mo ago 1
1.21.x
Fabric
7mo ago 1
1.21.x
Fabric
7mo ago 1
26.1
Fabric
7mo ago 1
1.21.1
Fabric
7mo ago 1
26.1
Fabric
7mo ago 1
1.21.11
Neoforge
7mo ago 1
1.21.11
Fabric
7mo ago 1
1.21.1
Neoforge
9mo ago 1
1.20.1
Forge
9mo ago 1
1.21.x
Fabric
9mo ago 1
1.21.5
Fabric
9mo ago 1
1.21.x
Fabric
9mo ago 1
1.21.1
Fabric
9mo ago 1
1.20.1
Fabric
9mo ago 1
1.21.11
Fabric
9mo ago 1
1.21.10
Fabric
9mo ago 1
1.21.1
Neoforge
9mo ago 1
1.20.1
Fabric
9mo ago 1
1.21.1
Fabric
9mo ago 1
1.21.10
Fabric
9mo ago 1
1.21.11
Fabric
9mo ago 1
1.20.1
Fabric
9mo ago 1
1.20.1
Forge
9mo ago 1
1.20.1
Fabric
9mo ago 1
1.21.1
Neoforge
9mo ago 1
1.21.11
Fabric
9mo ago 1
1.21.10
Fabric
9mo ago 1
1.21.x
Fabric
9mo ago 1
1.21.5
Fabric
9mo ago 1
1.21.x
Fabric
9mo ago 1
1.21.1
Fabric
9mo ago 1
1.20.1
Fabric
9mo ago 1
1.21.1
Fabric
9mo ago 1
fix dependency issues


fix dependency issues


fix dependency issues


fix dependency issues


fix dependency issues


fix dependency issues


fix dependency issues


fix dependency issues


fix dependency issues


fix dependency issues


fix dependency issues


fix dependency issues


fix dependency issues


fix dependency issues


fix dependency issues


fix dependency issues


fix dependency issues


fix dependency issues


fix dependency issues


fix dependency issues


fix dependency issues


update all to version 2.0.0


update all to version 2.0.0


update all to version 2.0.0


update all to version 2.0.0


update all to version 2.0.0


update all to version 2.0.0


update all to version 2.0.0


update all to version 2.0.0


update all to version 2.0.0


Hologram API Icon
Download Hologram API
Select game version
Select platform