Skip to content

brrock/teams-stars

Repository files navigation

BedWars Team Stars

A Weave mod for Lunar Client 1.8.9 that adds BedWars star info to the BedWars Teams UI.

What it does

This mod patches Lunar Client's BedWars team display so teammate rows can show:

  • each teammate's BedWars star value
  • an MST marker for the most-starred recently seen teammate

It uses Lunar's existing LevelHead/BedWars level data and only changes the local UI rendering.

What it does not do

  • no packet editing
  • no combat or movement changes
  • no server-side interaction
  • no stat fetching from external APIs

How it works

At startup, the mod installs a Java instrumentation transformer and patches specific Lunar Client classes at runtime.

Current hooks do two main things:

  1. capture Lunar's cached BedWars level data
  2. inject extra text into the BedWars Teams overlay rows

Obfuscated Lunar targets are generated by the shared resolver tool.

Compatibility

  • Minecraft: 1.8.9
  • Loader: Weave
  • Target client: Lunar Client

This project is built against Weave 1.3.3.

Build

./gradlew build

Output:

build/libs/bedwars-team-stars-0.1.0.jar

Install

Manual

  1. Build the jar.
  2. Put it in:
~/.weave/mods/

Helper script

./build.sh

That builds the mod and copies the jar into ~/.weave/mods/.

Lunar updates

Check whether the generated targets still match Lunar:

/Volumes/SSD/projects/lc-mod-tools/check.sh

Resolve new targets, rebuild both mods, and overwrite both installed jars:

/Volumes/SSD/projects/lc-mod-tools/refresh.sh

Notes and limitations

  • A major Lunar UI rewrite can still require resolver updates.
  • The repo contains debug/discovery scaffolding, but DebugLog is currently a no-op, so no discovery log file is written right now.
  • Star parsing is based on the numeric content of Lunar's cached level text.

Tunables

These JVM properties are currently used by runtime logic:

-DbedwarsStarsDebug.teammateWindowMs=3500

How long a teammate stays in the recent comparison window for the MST marker.

-DbedwarsStarsDebug.teamViewLogIntervalMs=5000

Present in code for throttled debug logging, but with the current no-op logger it has no visible effect.

Project layout

  • src/main/java/dev/codex/bedwarsstars/BedwarsTeamStarsMod.java — Weave entrypoint
  • src/main/java/dev/codex/bedwarsstars/TeamViewDiscoveryTransformer.java — runtime bytecode patches
  • src/main/java/dev/codex/bedwarsstars/TeamViewRuntimeHooks.java — star lookup and UI text logic
  • src/main/java/dev/codex/bedwarsstars/LunarTargets.java — generated Lunar identifiers
  • src/main/java/dev/codex/bedwarsstars/DebugLog.java — currently disabled logger

About

Weave mod to show your team mates stars in the teams hud in bedwars in lunar client

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages