? Better Compass
Better Compass 是一款轻量级且完全可配置的 Minecraft 模组,它添加了一个现代化的指南针 HUD,包含方向指示、坐标显示、生物群系信息和维度追踪功能。该模组具备完整的主题系统,提供多种预设主题以及全面的服务器-客户端配置管理。
⚠️ 默认情况下,玩家背包中必须持有指南针,HUD 才能正常工作(可通过服务器或客户端设置进行配置)。
✨ 功能特性
? 方向指示器 - 显示 8 个基本方位(北、东北、东、东南、南、西南、西、西北)
? 朝向角度 - 以平滑动画显示精确的朝向角度(度数)
? 坐标显示 - 实时 X、Y、Z 坐标,支持自定义位置和缩放比例
? 维度信息 - 显示当前所在维度(主世界/下界/末地)
?️ 生物群系显示 - 显示当前生物群系名称
? 主题系统 - 4 种内置主题(default、compact、colorful、immersive),支持完全自定义
⚙️ 自定义主题 - 创建无限数量的自定义主题,拥有 50+ 个可配置参数
? 热重载 - 无需重启即可通过 /bettercompass theme reload 重新加载主题
? 全面定制 - 通过 TOML 文件配置颜色、位置、大小和动画效果
? 服务器强制覆盖 - 服务器可以强制所有连接客户端使用指定的主题和设置
? 指南针需求 - 可在服务器或客户端级别切换指南针的需求状态
? 轻量级 - 经过优化,对性能影响极小
? 多平台支持 - 同时支持 Forge 和 Fabric
⚙️ 配置说明
该模组使用 TOML 配置文件进行完全自定义:
客户端配置 (config/bettercompass/compass.toml):
requireCompass = false
currentTheme = "default"
requireCompass: 如果为 true,则只有在背包中有指南针时才会显示 HUD
currentTheme: 选定的主题(default, compact, colorful, immersive 或自定义主题)
服务器配置 (server_config.toml):
serverForceTheme = false
serverTheme = "default"
requireCompass = "client"
serverForceTheme: 如果为 true,则强制所有客户端使用指定的主题
serverTheme: 对所有玩家强制执行的主题(如果 serverForceTheme = false 则被忽略)
requireCompass: "client"(由玩家选择)、"true"(必需)、"false"(可选)
? 主题系统
主题存储在 config/bettercompass/themes/ 目录下的 TOML 文件中。每个主题包含以下内容:
- 颜色:主色、次色、背景色、文本颜色、边框颜色(ARGB 格式)
- 尺寸:指南针大小、文本缩放、内边距、边框宽度
- 位置:每个 HUD 元素的 X、Y 坐标
- 坐标显示:位置、缩放和可见性
- 维度显示:位置、缩放和可见性
- 生物群系显示:位置、缩放和可见性
- 动画:平滑旋转速度和其他效果
- 元数据:主题名称、作者和描述
支持的颜色格式:
- ARGB:
0xAARRGGBB(例如 0xFF00FF00 表示不透明绿色)
- Hex:
#RRGGBB(例如 #00FF00)
- RGB:
rgb(255, 0, 0)
- RGBA:
rgba(255, 0, 0, 128)
示例主题 (config/bettercompass/themes/custom.toml):
# Better Compass Theme: default
# Classic Better Compass theme
[metadata]
name = "default"
description = "Classic Better Compass theme"
author = "Better Compass"
version = "1.0"
[position]
hudPosition = "top-center"
hudOffsetX = 0
hudOffsetY = 0
[compass]
width = 400
height = 20
spacing = 90
scale = 1.0
[colors]
background = 0x80000000
border = 0xFFFFFFFF
text = 0xFFFFFFFF
direction = 0xFFAAAAAA
north = 0xFFFF0000
east = 0xFFFFFFFF
south = 0xFFFFFFFF
west = 0xFFFFFFFF
playerDirection = 0xFFFFFFFF
coordinates = 0xFFFFFFFF
dimension = 0xFFFFFFFF
biome = 0xFFFFFFFF
[playerDirection]
position = "center"
offsetX = 0
offsetY = 0
[coordinates]
show = true
position = "bottom-center"
offsetX = 0
offsetY = -15
format = "X: %d Y: %d Z: %d"
[dimension]
show = false
position = "below-coordinates"
offsetX = 0
offsetY = 12
[biome]
show = false
position = "below-dimension"
offsetX = 0
offsetY = 12
[appearance]
showBorder = false
borderWidth = 1
borderRadius = 3
showBackground = false
backgroundPadding = 4
textScale = 1.0
textShadow = false
[animation]
smoothRotation = false
rotationSpeed = 0.3
只需在 config/bettercompass/themes/ 中创建一个包含您自己主题配置的新 TOML 文件即可。主题将自动加载并通过命令可用。
所有命令都支持主题名称的 Tab 补全。
/bettercompass theme list - 显示所有可用主题,并标记当前使用的主题
/bettercompass theme set <name> - 切换到特定主题(保存到配置中)
/bettercompass theme current - 显示当前激活的主题及其属性
/bettercompass theme reload - 从磁盘热重载所有主题(对开发者有用)
? 服务器兼容性
Better Compass 具备完整的服务器-客户端集成:
- 仅客户端模式:在单人游戏中无缝运行
- 服务器模式:管理员可以跨所有玩家强制执行主题和设置
- 实时同步:玩家加入时配置更改立即同步
- 覆盖系统:服务器主题强制优先级高于客户端偏好
- 灵活性:个别设置可以由玩家自行选择或由服务器全局强制
? 默认主题
- default - 平衡、简洁的设计,适合大多数游戏风格
- compact - 针对较小屏幕和优化最小 HUD 占用空间
- colorful - 鲜艳的色彩,提供更好的可视性和视觉吸引力
- immersive - 微妙而优雅的设计,用于保留氛围感
? 创建自定义主题
只需在 config/bettercompass/themes/ 中创建一个任意名称的新 TOML 文件。主题将自动加载并通过命令可用。主题系统提供 50+ 个可定制参数,以匹配任何玩家偏好或服务器美学风格。
? 模组目标
Better Compass 通过现代且高度可定制的界面增强导航体验,同时保持原版友好的平衡性。无论您偏好简约的指南针还是功能丰富的 HUD,其丰富的主题系统都能满足单人及多人游戏中各种玩法风格的需求。
? Better Compass
Better Compass is a lightweight and fully configurable Minecraft mod that adds a modern compass HUD with directional indicators, coordinates display, biome info, and dimension tracking. It features a complete theming system with multiple pre-designed themes and full server-client configuration management.
⚠️ By default, a compass must be present in the player's inventory for the HUD to work (configurable via server or client settings).
✨ Features
? Directional Indicators - Shows 8 cardinal directions (N, NE, E, SE, S, SW, W, NW)
? Facing Angle - Displays exact facing direction in degrees with smooth animation
? Coordinates Display - Real-time X, Y, Z coordinates with customizable position and scale
? Dimension Info - Shows current dimension (Overworld/Nether/End)
?️ Biome Display - Displays current biome name
? Theme System - 4 pre-built themes (default, compact, colorful, immersive) with full customization
⚙️ Custom Themes - Create unlimited custom themes with 50+ configurable parameters
? Hot-Reload - Reload themes without restarting with /bettercompass theme reload
? Full Customization - Configure colors, positions, sizes, and animations via TOML files
? Server Override - Servers can force themes and settings on all connected clients
? Compass Requirement - Toggle compass requirement at server or client level
? Lightweight - Optimized for minimal performance impact
? Multi-Platform - Available for both Forge and Fabric
⚙️ Configuration
The mod uses TOML configuration files for complete customization:
Client Configuration (config/bettercompass/compass.toml):
requireCompass = false
currentTheme = "default"
requireCompass: If true, HUD only appears with a compass in inventory
currentTheme: Selected theme (default, compact, colorful, immersive, or custom)
Server Configuration (server_config.toml):
serverForceTheme = false
serverTheme = "default"
requireCompass = "client"
serverForceTheme: If true, forces all clients to use the specified theme
serverTheme: Theme to enforce on all players (ignored if serverForceTheme = false)
requireCompass: "client" (player chooses), "true" (required), "false" (optional)
? Theme System
Themes are stored in config/bettercompass/themes/ as TOML files. Each theme contains:
- Colors: Primary, secondary, background, text, border (ARGB format)
- Dimensions: Compass size, text scale, padding, border width
- Positions: X, Y coordinates for each HUD element
- Coordinates Display: Position, scale, and visibility
- Dimension Display: Position, scale, and visibility
- Biome Display: Position, scale, and visibility
- Animation: Smooth rotation speed and other effects
- Metadata: Theme name, author, and description
Supported Color Formats:
- ARGB:
0xAARRGGBB (e.g., 0xFF00FF00 for opaque green)
- Hex:
#RRGGBB (e.g., #00FF00)
- RGB:
rgb(255, 0, 0)
- RGBA:
rgba(255, 0, 0, 128)
Example Theme (config/bettercompass/themes/custom.toml):
# Better Compass Theme: default
# Classic Better Compass theme
[metadata]
name = "default"
description = "Classic Better Compass theme"
author = "Better Compass"
version = "1.0"
[position]
hudPosition = "top-center"
hudOffsetX = 0
hudOffsetY = 0
[compass]
width = 400
height = 20
spacing = 90
scale = 1.0
[colors]
background = 0x80000000
border = 0xFFFFFFFF
text = 0xFFFFFFFF
direction = 0xFFAAAAAA
north = 0xFFFF0000
east = 0xFFFFFFFF
south = 0xFFFFFFFF
west = 0xFFFFFFFF
playerDirection = 0xFFFFFFFF
coordinates = 0xFFFFFFFF
dimension = 0xFFFFFFFF
biome = 0xFFFFFFFF
[playerDirection]
position = "center"
offsetX = 0
offsetY = 0
[coordinates]
show = true
position = "bottom-center"
offsetX = 0
offsetY = -15
format = "X: %d Y: %d Z: %d"
[dimension]
show = false
position = "below-coordinates"
offsetX = 0
offsetY = 12
[biome]
show = false
position = "below-dimension"
offsetX = 0
offsetY = 12
[appearance]
showBorder = false
borderWidth = 1
borderRadius = 3
showBackground = false
backgroundPadding = 4
textScale = 1.0
textShadow = false
[animation]
smoothRotation = false
rotationSpeed = 0.3
Simply create a new TOML file in config/bettercompass/themes/ with your own theme configuration. The theme will be automatically loaded and available through commands.
All commands support Tab-completion for theme names.
/bettercompass theme list - Display all available themes with the current one marked
/bettercompass theme set <name> - Switch to a specific theme (saved to config)
/bettercompass theme current - Show the currently active theme and its properties
/bettercompass theme reload - Hot-reload all themes from disk (useful for developers)
? Server Compatibility
Better Compass features complete server-client integration:
- Client-only mode: Works seamlessly in single-player
- Server mode: Administrators can enforce themes and settings across all players
- Real-time sync: Configuration changes sync immediately when players join
- Override system: Server theme forcing takes priority over client preferences
- Flexibility: Individual settings can be left to client choice or forced server-wide
? Default Themes
- default - Balanced, clean design suitable for most playstyles
- compact - Optimized for smaller screens and minimal HUD footprint
- colorful - Vibrant colors for better visibility and visual appeal
- immersive - Subtle and elegant design for atmosphere preservation
? Creating Custom Themes
Simply create a new TOML file in config/bettercompass/themes/ with any name. Themes are automatically loaded and available through commands. The theme system provides 50+ customizable parameters to match any player preference or server aesthetic.
? Mod Goal
Better Compass enhances navigation with a modern, highly customizable interface while maintaining vanilla-friendly balance. Whether you prefer a subtle compass or a feature-rich HUD, the extensive theme system accommodates every playstyle in both single-player and multiplayer environments.
评论 0
登录后参与评分
还没有评论,来抢沙发吧