-
Notifications
You must be signed in to change notification settings - Fork 0
For Developers
fj_goncalves edited this page Sep 11, 2026
·
1 revision
Requires JDK 21.
./gradlew build
The compiled jar is written to build/libs/alertmod-1.0.0.jar.
./gradlew runClient
| Package | Contents |
|---|---|
com.alertmod |
Mod entry point (AlertMod), sound registration (ModSounds) |
com.alertmod.command |
The /alert command |
com.alertmod.network |
The three network payloads and their registration (AlertPayloads) |
com.alertmod.client |
The alert screen (AlertScreen), the on-screen banner renderer (AlertOverlay), and the client-side packet handlers |
-
/alert→ server sendsOpenAlertGuiPayloadto the player who ran it. - The client opens
AlertScreenand, on submit, sendsAlertRequestPayloadback to the server. - The server checks permission, then sends
ShowAlertPayloadto every targeted player. - Each client's
AlertOverlaypicks that up and renders the banner during the nextRenderGuiEvent.Post.
Language files live in src/main/resources/assets/alertmod/lang/. To add a language, copy en_us.json to <locale>.json (e.g. es_es.json) and translate the values — the keys must stay identical.
MIT — see LICENSE.