
Tiertagger Command
Create a client-side Minecraft mod that adds a command /tier <player>. When the command is executed, the mod should retrieve and display all tier information...
00—fabricServer1.21.1mod
What it does
- Adds a client-only
/tier <player>command that works on any server and prints the selected player's tier info into chat with clear formatting. - Supports two tier sources: MC Tiers and PvP Tiers. Data is requested directly from the chosen site's API and parsed for category, tier name, rank, and points when available.
- Handles missing players, empty data, network failures, and invalid responses with friendly error messages instead of crashing or hanging.
Settings and saving
- Integrates with Mod Menu to provide a simple settings screen where you pick the active tier provider.
- The chosen provider is saved to the game's config directory and automatically reused on the next launch.
Implementation notes / limitations
- Tier lookups hit
https://mctiers.com/api/player/<name>orhttps://pvptiers.com/api/player/<name>over HTTPS and expect JSON that includes either atiersarray or basictier/rankfields; if the real API differs, results may be incomplete. - The command runs lookups asynchronously so the client stays responsive, but it still depends on network connectivity and the selected site being reachable.