Skip to content

A multi-platform server-side implementation of HUD in Minecraft, supporting Bukkit(with Folia), Velocity, and Fabric.

License

Notifications You must be signed in to change notification settings

toxicity188/BetterHud

Repository files navigation

-0001-export

Welcome to BetterHud!

SpigotMC | Hangar | Modrinth | Github

GitHub Release Discord GitHub Issues or Pull Requests Static Badge CodeFactor Grade

Multi-platform server-side HUD implementation of Minecraft.

This project implements a server-side HUD.

  • Supports auto-generating resource pack.
  • Supports display image(include png sequence), display, head.
  • Supports animation.

Platform

  • Bukkit(including Folia) 1.18.2-1.21.3
  • Velocity 3.3-3.4
  • Fabric server 1.21.3

Library

Dependency

  • Bukkit: No
  • Velocity: No
  • Fabric server: Fabric API

Build

Requires Java 17, 21 Eclipse Adoptium.

  • Build all available jar: ./gradlew build
  • Build Bukkit plugin: ./gradlew pluginJar
  • Build Velocity plugin: ./gradlew velocityJar
  • Build Fabric server side mod: ./gradlew fabricJar
  • Build source code jar: ./gradlew sourceJar
  • Build dokka-based docs jar: ./gradlew dokkaJar

API

repositories {
    mavenCentral()
    maven("https://jitpack.io")
}

dependencies {
    compileOnly("net.kyori:adventure-api:VERSION") //Adventure api.
    compileOnly("com.github.toxicity188:BetterHud:VERSION") //BetterHud.
    compileOnly("com.github.toxicity188:BetterCommand:VERSION") //BetterCommand library.
}

Use BetterHud with Skript

Go to download Skript

command /pointadd:
    trigger:
        #compass marker add
        point add location at 0, 0, 0 in world "world" named "test1" to player
        point add location at 10, 0, 0 in world "world" named "test2" with icon "other" to player

command /pointremove:
    trigger:
        #compass marker remove
        point remove "test1" to player
        point remove "test2" to player

command /popup:
    trigger:
        #show popup with custom event
        set {_o::rand} to random integer between 1 to 100
        show popup "test_popup" to player with variable of {_o::*}