Overview
The Minecraft Web Client includes a built-in minimap that displays your current position, nearby terrain, and allows quick navigation. The minimap can be toggled between compact circular view and fullscreen map mode.Features
- Circular Minimap: Compact view in the top-right corner
- Full Map View: Expandable fullscreen map
- Real-time Updates: Shows terrain as you explore
- Player Position: Displays current coordinates
- Rotation: Map rotates with player view
- Warp Points: Mark and display important locations
Enabling the Minimap
The minimap can be configured to show in different scenarios:From the README: “Enable Minimap: Always” is a recommended setting for the best experience.
Display Modes
- Minimap Only
- Fullmap View
Compact circular view
- Located in top-right corner
- 80x80 pixel circular display
- Shows coordinates below
- Click to toggle fullscreen
src/react/Minimap.tsx:86-118:Using the Minimap
Enable Minimap
Set
showMinimap option to 'always' or 'singleplayer':Settings → Interface → Enable Minimap → AlwaysView Current Position
Look at the top-right corner. You’ll see:
- Circular map of nearby terrain
- Coordinates below the map (X Y Z)
Toggle Full Map
Option 1: Click the minimapOption 2: Press the
J key (default toggle map binding)From src/controls.ts:85:Map Updates
The minimap updates in real-time with throttling for performance. Fromsrc/react/Minimap.tsx:28-53:
Update Frequency
- Throttled to 20 FPS (updates every 50ms)
- Chunk cleanup every 300 ticks to free memory
- Idle optimization using
requestIdleCallbackwhen available
Map Rotation
The minimap rotates to match your viewing direction:Minimap Settings
Show Minimap
Fromsrc/defaultOptions.ts:118:
Minimap Optimizations
- Chunks are cached efficiently
- Old chunks are cleared from memory
- Canvas updates use requestIdleCallback
Display Conditions
Fromsrc/react/Minimap.tsx:80-85:
showMinimapis'always', ORshowMinimapis'singleplayer'AND you’re in singleplayer mode
Warp Points
The minimap can display warp points (marked locations):Technical Details
Canvas Rendering
The minimap uses HTML5 Canvas:Map Drawer Adapter
TheDrawerAdapter interface provides:
playerPosition: Current player coordinatesyaw: Player rotation anglemapDrawer: Canvas rendering instancedraw(position): Render terraindrawPlayerPos(): Draw player markerdrawWarps(): Draw warp pointsclearChunksStore(): Free memory
Events
The adapter emits events for map updates:Keybindings
Toggle the map with the default keybinding: Keyboard:J
Gamepad: Not mapped by default (can be configured)
Change in Settings → Controls → Keybindings → Toggle Map
Performance Considerations
Memory Management
The minimap automatically cleans up old chunks:Optimizations
- Throttled Updates: 20 FPS maximum
- Idle Callbacks: Cleanup runs during idle time
- Conditional Rendering: Only renders when visible
- Chunk Caching: Reuses previously rendered chunks
Enable
minimapOptimizations: true for best performance, especially on lower-end devices.Troubleshooting
Minimap Not Showing
-
Check
showMinimapsetting: -
Verify you’re in the correct mode:
- If set to
'singleplayer', you must be in singleplayer - If set to
'never', change to'always'
- If set to
-
Check if fullmap is blocking minimap:
Map Not Updating
- Ensure you’re moving (map updates on position change)
- Check browser console for errors
- Verify
adapter.mapDraweris initialized
Performance Issues
- Enable
minimapOptimizations - Reduce render distance
- Close fullmap when not needed
- Check browser performance settings
Advanced Usage
Accessing Minimap State
Custom Display Modes
The minimap supports display mode hints:'minimapOnly': Only show compact minimap'fullmapOnly': Only show fullscreen mapundefined: Allow both (default)
Related Settings
Fromsrc/defaultOptions.ts:118-119:
See Also
- Settings - Configure minimap options
- Debug Overlay - F3 debug information
- Keybindings - Customize toggle map key
