Simple Nametag

A comprehensive nametag system for Minecraft Bedrock Edition that displays AFK status, health, XP, coordinates, and more!
Example

Example

Description

# Cool Nametag Addon for Minecraft Bedrock

 

A comprehensive nametag system for Minecraft Bedrock Edition that displays AFK status, health, XP, coordinates, and more!

 

## Features

 

### ๐ŸŽฏ AFK Detection
- Automatically detects when players are idle
- Configurable threshold (default: 60 seconds)
- Visual indicator with customizable tag text
- Instant removal when player moves

 

### โค๏ธ Health Display
- Shows current health above player names
- Option to display as hearts (โค) or percentage
- Color-coded for easy visibility

 

### โญ XP Level Display
- Shows player's current XP level
- Customizable color and format

 

### ๐Ÿ“ Coordinates Display (Optional)
- Show player coordinates in nametag
- Short format (X: 10 Y: 64 Z: -20) or full format with decimals
- Useful for multiplayer coordination

 

### ๐ŸŒ Dimension Display (Optional)
- Shows which dimension the player is in
- Short names (Overworld, Nether, The End) or full IDs

 

### ๐ŸŽฎ Gamemode Display (Optional)
- Shows current gamemode
- Short format (S, C, A) or full names

 

### ๐Ÿ“ถ Ping Display (Optional)
- Simulated ping/latency indicator
- Note: Real ping data not available in Bedrock scripting API

 

## Performance Tips

 

1. **Update Interval**: Higher values (e.g., 20 ticks) reduce lag but update less frequently
2. **Disable Unused Features**: Turn off coordinates, dimension, etc. if not needed
3. **AFK Check Interval**: Increase this if you have many players

 

## Troubleshooting

 

### Script errors
- Ensure you're using Minecraft Bedrock 1.20.0 or higher
- Check the content log for specific errors

 

### Players not marked as AFK
- Check the `thresholdSeconds` setting
- Ensure `afk.enabled` is set to `true`
- Very small movements (like head rotation) don't count as movement

 

## Technical Details

 

- **Module**: `@minecraft/server` v1.9.0
- **Format Version**: 2
- **Min Engine**: 1.20.0
- **Update Method**: Scheduled intervals using `system.runInterval()`

 

## Edge Cases Handled

 

โœ… Players joining/leaving - Data is properly initialized and cleaned up
โœ… Dimension changes - Nametags update correctly
โœ… Death/respawn - Nametag maintained through respawn
โœ… Gamemode changes - Detected and updated
โœ… Health changes - Updates in real-time
โœ… Memory management - Stale player data cleaned every 5 minutes

 

## Credits

 

Created by AAAmiBotok for the Minecraft Bedrock community!

 

## License

 

All Rights Reserved

The Simple Nametag Team

profile avatar
  • 2
    Projects
  • 1.6K
    Downloads
Donate

More from lostsharkofficial

  • AmiSpectator project image

    AmiSpectator

    • 166
    • Addons

    A simple Minecraft Bedrock spectator addon similar to other multiplayer video game

    • 166
    • April 30, 2026
    • Addons
    • +4
  • AmiSpectator project image

    AmiSpectator

    • 166
    • Addons

    A simple Minecraft Bedrock spectator addon similar to other multiplayer video game

    • 166
    • April 30, 2026
    • Addons
    • +4