How widz-a/gamemodedetector works
Gamemode Detector is a Fabric client mod that watches online players’ game modes and notifies the user when a change is observed. Its main workflow runs on client ticks: it compares each player’s current mode with remembered state, applies the enabled setting, formats a configured message, and displays it in chat or the action bar. Users can also query a mode with a client command and configure notification behavior through the keybind or ModMenu. The source excerpts show the main runtime and UI wiring; other resource metadata was not sampled.
Main entry points: GamemodeDetectorClient.java Tick monitor · CheckGamemodeCommand.java Mode query command · TheConfig.java Notification settings · ModMenu.java ModMenu settings entry
Components 10
Detection and messaging
- Tick monitor
src/main/java/withicality/gamemodedetector/GamemodeDetectorClient.java - Mode state
src/main/java/withicality/gamemodedetector/GamemodeDetectorClient.java - Message formatting
src/main/java/withicality/gamemodedetector/GamemodeDetectorClient.java - Color codes
src/main/java/withicality/gamemodedetector/ChatColor.java
User controls
- Mode query command
src/main/java/withicality/gamemodedetector/commands/CheckGamemodeCommand.java - Notification settings
src/main/java/withicality/gamemodedetector/menu/TheConfig.java - ModMenu settings entry
src/main/java/withicality/gamemodedetector/menu/ModMenu.java
Other components
- Minecraft player
- Minecraft client
- Chat and action bar
Connections 14
- Minecraft client → Tick monitor: runs ticks
src/main/java/withicality/gamemodedetector/GamemodeDetectorClient.java - Tick monitor → Minecraft player: reads online modes
src/main/java/withicality/gamemodedetector/GamemodeDetectorClient.java - Tick monitor → Mode state: compares and updates
src/main/java/withicality/gamemodedetector/GamemodeDetectorClient.java - Tick monitor → Notification settings: checks settings
src/main/java/withicality/gamemodedetector/GamemodeDetectorClient.java - Tick monitor → Message formatting: builds notification
src/main/java/withicality/gamemodedetector/GamemodeDetectorClient.java - Message formatting → Color codes: translates colors
src/main/java/withicality/gamemodedetector/GamemodeDetectorClient.java - Tick monitor → Chat and action bar: displays notification
src/main/java/withicality/gamemodedetector/GamemodeDetectorClient.java - Minecraft client → Mode query command: registers command
- Mode query command → Mode state: queries mode
src/main/java/withicality/gamemodedetector/commands/CheckGamemodeCommand.java - Mode query command → Message formatting: builds query text
src/main/java/withicality/gamemodedetector/commands/CheckGamemodeCommand.java - Mode query command → Chat and action bar: sends response
src/main/java/withicality/gamemodedetector/commands/CheckGamemodeCommand.java - Minecraft client → Notification settings: registers settings
- Minecraft client → Notification settings: opens settings
- ModMenu settings entry → Notification settings: opens settings
src/main/java/withicality/gamemodedetector/menu/ModMenu.java