
HandyCommands
HandyCommands is a lightweight Forge helper mod designed to improve vanilla Minecraft convenience through a set of practical commands and mechanics. It is tailored for vanilla survival, server administration, and map‑making scenarios. No dependencies are r
1.2.6
Compatibility
Changes
Added /handycommands description <line> add <text> to insert custom lore text at a specified line on the held item, with & formatting code support (colors and styles).
新增 /handycommands description <行数> add <文本>,可在手持物品的指定行插入自定义描述文本,支持 & 格式化码(颜色与字体样式)。
Added /handycommands description <line> change <text> to replace an existing lore line on the held item with new text, also supporting & formatting codes.
新增 /handycommands description <行数> change <文本>,可替换手持物品指定行的已有描述文本,同样支持 & 格式化码。
When the player's hand is empty, add now automatically creates a Paper item named "描述便签" (Description Note) as a blank canvas, instead of displaying an error.
当玩家手持为空时,add 命令自动创建名为"描述便签"的纸物品作为空白画布,不再显示错误提示。
Implemented translateAmpersandCodes utility to convert & format codes (e.g. &c, &l) to Minecraft § codes, supporting all 16 colors (0–9, a–f), 5 styles (k–o), and reset (r), with && escaping to a literal & character.
实现 translateAmpersandCodes 工具方法,将 & 格式化码(如 &c、&l)转换为 Minecraft § 码,支持全部 16 种颜色(0–9、a–f)、5 种样式(k–o)和重置(r),&& 转义为字面 & 字符。
Fixed a bug in translateAmpersandCodes where a missing continue statement after format-code replacement caused &c to be incorrectly translated to §&c instead of §c.
修复 translateAmpersandCodes 中因格式化码替换后缺少 continue 语句,导致 &c 被错误翻译为 §&c 而非 §c 的问题。
Added /handycommands color_font command to display a complete & format code reference chart in chat, with each of the 16 colors and 6 styles rendered as a live preview using its own formatting.Permission level 0 (available to all players) — no cheats required to view the reference chart.
新增 /handycommands color_font 命令,在聊天栏显示完整的 & 格式化码速查表,16 种颜色和 6 种样式均以各自的颜色/样式实时预览渲染。权限等级 0(所有玩家可用)—— 查看速查表无需作弊权限。
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:gd98EfuG:jfIRYLTl"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:gd98EfuG:jfIRYLTl"
}
