概览
模组名称:HandyCommands
游戏版本:Minecraft 1.20.1
加载器:Forge
模组类型:实用工具 / 命令增强
HandyCommands 是一款轻量级的 Forge 辅助模组,旨在通过一系列实用的命令和机制提升原版 Minecraft 的便利性。它专为原版生存、服务器管理和地图制作场景而设计。无需任何依赖——安装即可游玩。
大多数新命令都归类在 /handycommands 节点下。随时使用 /handycommands help 查看完整的功能列表。
功能
移除附魔等级上限
原版 /enchant 命令将附魔等级严格限制为默认最大值(通常为 1–5)。此模组移除了该限制,允许任何附魔提升至 255 级。
/enchant <目标> <附魔> <等级>
示例:/enchant @s minecraft:fortune 255
技术实现:
Mixin 重定向了 EnchantCommand.enchant() 方法内部的 getMaxLevel() 调用。
修复了存储附魔时的字节溢出问题(原版将等级转换为字节,导致大于 127 的值变为负数)。
修复了附魔显示名称的问题(原版仅支持罗马数字 I–X;超过 10 时显示阿拉伯数字)。
自定义实体选择器:@i 和 @!
在 @a、@e、@p、@r 和 @s 之外,新增了两个便捷的目标选择器:
@i – 选中所有物品实体(掉落物)
示例:/kill @i(清除地面上所有的掉落物)
示例:/tp @i[distance=..10] ~ ~ ~(传送 10 格内的掉落物品)
@! – 选择所有非玩家实体
示例:/kill @!(杀死所有非玩家实体)
示例:/effect give @! minecraft:glowing(为所有非玩家实体添加发光效果)
这两种选择器均支持标准的选择器参数(如 distance、sort、limit、type 等),并在聊天栏中输入 @ 时提供 Tab 补全功能。
区块强制加载管理:/handycommands chunk
允许玩家直接将当前所在区块设置为强制加载,无需使用原版 /forceload 命令指定坐标。
/handycommands chunk true – 将当前区块强制加载
/handycommands chunk false – 移除当前区块的强制加载状态
/handycommands chunk list – 列出所有已强制加载的区块坐标
一旦区块被强制加载,即使玩家离开该区域,该区块仍会保持加载状态(红石机械、怪物农场、作物生长等将继续运作)。区块上方会出现半透明的蓝色高亮框作为视觉指示。
权限等级:0(所有玩家可用)
不可破坏物品标签:/handycommands unbreakable
快速为手持物品添加 Unbreakable:1b NBT 标签,使其变得不可破坏。原版需要复杂的 NBT 操作;此命令简化了这一过程。
/handycommands unbreakable – 使手中物品永久不可破坏
权限等级:2(需开启作弊)
伤害减免分析:/handycommands mitigation
显示当前影响玩家的所有伤害减免来源的详细分解,并根据 Minecraft 1.20.1 的伤害公式计算最终伤害减免百分比。
/handycommands mitigation – 总览(显示物理和魔法两种减免)
/handycommands mitigation physical – 仅显示物理伤害减免
/handycommands mitigation magic – 仅显示魔法伤害减免
减免来源:
护甲值和护甲韧性 – 物理伤害减免
保护附魔(EPF)– 减少物理和魔法伤害
抗性提升药水效果 – 减少物理和魔法伤害
物理伤害计算顺序(原版三重乘法):
原始伤害 → 护甲减免(含韧性修正) → 保护附魔减免 → 抗性提升减免 → 最终伤害
魔法伤害顺序(跳过护甲):
原始伤害 → 保护附魔减免 → 抗性提升减免 → 最终伤害
护甲减免公式:f = min(20, max(armor/5, armor - dmg/(2+toughness/4))) / 25
保护附魔:每级 4%,EPF 上限为 20(最高 80%)
抗性提升:每级 20%
用于计算的参考伤害:10.0(相当于铁剑一击)
权限等级:0(所有玩家可用,即使在生存模式下)
帮助命令:/handycommands help
在游戏中查看功能完整列表及简要中文说明。
/handycommands help
权限等级:0(所有玩家)
给予药水:/handycommands potion give
直接给予指定效果的自定义药水,无需酿造台。
/handycommands potion give <effect> <seconds> [level]
示例:/handycommands potion give minecraft:luck 60 – 给予一个持续 60 秒的幸运 I 药水
示例:/handycommands potion give minecraft:strength 120 4 – 给予一个持续 120 秒的力量 V 药水
效果参数使用 Minecraft 注册表名称(例如 minecraft:speed、minecraft:strength)
时间单位为秒,最小值为 1 秒
等级为可选参数,默认为 I(最低级)
等级可以超过 255(仅限此命令;不影响原版酿造或其他模组)
支持所有已注册药水效果的标签补全
获得的药水为标准可饮用物品
权限等级:2(需要作弊模式/管理员权限)
添加药水效果:/handycommands potion additional
向手中已有的药水额外添加一种药水效果,可与原版药水或 /handycommands potion give 创建的药水叠加。
/handycommands potion additional <effect> <seconds> [level]
示例:手持速度药水时,执行 /handycommands potion additional minecraft:luck 60 – 该药水现在同时具有速度和幸运 I 效果
示例:/handycommands potion additional minecraft:strength 120 9 – 给手中的药水添加力量 X(120 秒)
仅适用于药水瓶(普通、喷溅型、滞留型)以及女巫酿造(来自 Goety 模组)
效果参数使用 Minecraft 注册表名称
时间单位为秒,最小值为 1 秒
等级为可选参数,默认为 I
等级可以超过 255(仅适用于此命令)
所有已注册效果均支持 Tab 补全
新增的效果会被追加,而不会替换现有效果
权限等级:2(需要开启作弊)
无限可饮用药水:/handycommands potion unbreakable
为手中的药水添加“无限饮用”属性,使其在生存模式下可以反复使用而不会被消耗。
/handycommands potion unbreakable
示例:手中持有速度药水时,它将变为可无限饮用。
适用于药水瓶(普通、喷溅型、滞留型)以及 Goety 模组中的女巫酿造物(Witch's Brew)。
使用后药水不会消失,仍保留在物品栏中。
可与 /handycommands potion give 和 /handycommands potion additional 命令配合使用。
对已具备无限属性的药水重复执行该命令会显示通知。
权限等级:2(需要开启作弊)
自定义药水命名:/handycommands potion name
为手中的药水设置自定义显示名称,支持颜色与文本格式。
/handycommands potion name <name> [colour] [style]
示例:/handycommands potion name Soul gold bold —— 药水将显示为加粗的金色“灵魂·药水”
示例:/handycommands potion name Strength red —— 显示为红色“力量·药水”
名称为必填项;颜色和样式为可选。
若指定了样式,则必须同时指定颜色。
支持 16 种 Minecraft 标准颜色(如金色、红色、蓝色、绿色等)。
支持 5 种样式(加粗、斜体、下划线、删除线、乱码)。
适用于药水瓶(普通、喷溅型、滞留型)以及 Goety 模组中的女巫酿造物(Witch's Brew)。
支持颜色和样式的 Tab 补全。
权限等级:2(需要开启作弊)
女巫酿造物发放:/handycommands potion brew give
(需安装 Goety 模组)
发放具有指定效果的女巫酿造物。
/handycommands potion brew give <effect> <seconds> [level]
示例:/handycommands potion brew give minecraft:luck 60 —— 发放持续 60 秒的幸运 I 酿造物
示例:/handycommands potion brew give minecraft:strength 120 4 —— 发放持续 120 秒的力量 V 酿造物
效果使用 Minecraft 注册表名称。
时间单位为秒,最小值为 1 秒。
等级为可选参数,默认为 I。
等级可超过 255(仅限此命令有效)。
支持所有注册效果的 Tab 补全。
若未安装 Goety 模组,执行命令时会显示错误但不会导致崩溃。
获得的酿造物可通过 /handycommands potion additional/unbreakable/name 进一步修改。
权限等级:2(需要开启作弊)
测试生物召唤:/handycommands summon
生成标准化的空白测试目标,用于伤害测试场景。所有生成的生物均无 AI、无武器、无药水效果——仅保留其基础类型(不死系、节肢动物系、中立),以便进行伤害类别测试。
/handycommands summon smite —— 召唤一只僵尸(不死系)
/handycommands summon bane_of_arthropods —— 召唤一只蜘蛛(节肢动物系)
/handycommands summon villager —— 召唤一个村民(中立)
可选的属性参数(若省略则默认为 0):
/handycommands summon smite <armour> <physRes%> <magRes%> <IronSpellsMagRes> <GoetyMagRes%>
示例:/handycommands summon smite 20 50 —— 召唤一只拥有 20 点护甲和 50% 物理抗性的僵尸(其他抗性为 0)
示例:/handycommands summon villager 0 0 30 5 15 —— 村民拥有 0 护甲、0 物理抗性、30% 魔法抗性、5 点 Iron Spells 魔法抗性、15% Goety 魔法抗性
召唤生物的属性:
生命值可在配置文件中设置(默认为 10000),绕过原版 1024 的上限限制。
无 AI(不会移动或攻击)。
无武器,无药水效果。
可设置五项防御属性(均为可选,默认为 0):
原版护甲:1 = 1 点护甲值
原版抗性:1 = 1% 物理伤害减免(与护甲相乘计算)
原版魔法抗性:1 = 1% 魔法伤害减免
Iron Spells 魔法抗性:1 = 1 点固定魔法伤害减免
Goety 魔法抗性:1 = 1% 魔法伤害减免
不会自然消失;在当前玩家位置生成。
权限等级:2(需要开启作弊)
物品耐久度修改:/handycommands durability
直接修改手持物品的耐久度数值,允许设置超出原始最大值的耐久。
/handycommands durability <value>
示例:/handycommands durability 10000 —— 将钻石剑的耐久度设置为 10000(原版上限为 1561)
示例:/handycommands durability 1 —— 将耐久度设置为 1(几乎损坏)
数值必须 ≥ 0(设置为 0 会使物品几乎损坏)。
可超过物品的原始最大耐久度——无需 Unbreakable 标签。
仅适用于具有耐久度的物品(工具、武器、盔甲、盾牌等)。
非耐久类物品(方块、食物等)执行时将显示错误。
权限等级:2(需要开启作弊)
彩蛋命令:/handycommands gxyy
一个隐藏的彩蛋命令——在游戏中探索其效果吧。
/handycommands gxyy
权限等级:2(单人游戏中需要开启作弊)
配置文件
位置:.minecraft/config/handycommands-common.toml
maxEnchantLevel = 255(范围 1–255)
bypassAllEnchantLimits = true
true = 完全绕过,允许任意等级
false = 允许 max(原版上限, maxEnchantLevel)
summonSmiteHealth = 10000(僵尸测试目标生命值)
summonBaneOfArthropodsHealth = 10000(蜘蛛测试目标生命值)
summonVillagerHealth = 10000(村民测试目标生命值)
bypassHealthCap = true
true = 移除原版 1024 生命值上限,允许自定义生命值
false = 保留原版 1024 上限(与其他修改生命值上限的模组兼容)
常见问题
问:255 级附魔是否会破坏游戏平衡?
答:默认上限为 255,但服务器管理员可在配置文件中降低 maxEnchantLevel。我们建议生存服务器使用较低的值(例如 10–20)。
问:在命令方块中能否使用 @i 和 @! 选择器?
答:可以。两种自定义选择器均可在任何支持实体选择器的上下文中使用,包括命令方块和数据包函数。
问:大量强制加载区块会影响性能吗?
答:是的,每个强制加载的区块都会消耗服务器资源。仅在必要时使用(例如红石装置、刷怪笼),并及时移除它们。可使用 /handycommands chunk list 查看当前活动的强制加载区块。高亮框仅为视觉效果,对性能影响微乎其微。
问:/handycommands 的伤害减免计算准确吗?
答:该公式完全遵循原版 Minecraft 1.20.1 的伤害减免逻辑(参见 LivingEntity.getDamageAfterArmorAbsorb 及相关源码)。数值基于参考伤害值 10.0;对于不同的伤害值,实际游戏中的百分比可能会有细微差异(尤其是在护甲韧性较高的情况下)。如果其他模组修改了伤害公式,显示的百分比可能与实际效果不符。
问:测试生物可以拥有自定义生命值吗?能否超过 1024?
答:可以。在配置文件中调整 summonSmiteHealth、summonBaneOfArthropodsHealth 和 summonVillagerHealth。本模组通过 Mixin 绕过了原版的 1024 上限,允许生命值最高达到 Integer.MAX_VALUE(约 21 亿)。如果你安装了另一个也修改了生命值上限的模组,请将 bypassHealthCap 设置为 false 以避免冲突。更改后请重启游戏。
问:为什么 /handycommands chunk 没有与 Xaero's World Map 集成?
答:Xaero 集成功能已在某次更新中移除;本模组现在仅使用内置的 3D 世界高亮显示功能。
Overview
Mod Name: HandyCommands
Game Version: Minecraft 1.20.1
Mod Loader: Forge
Mod Type: Utility / Command Enhancement
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 required – just install and play.
Most new commands are grouped under the /handycommands node. Use /handycommands help at any time to view the full feature list.
Features
Enchantment Level Cap Removal
The vanilla /enchant command strictly limits enchantment levels to the default maximum (usually 1–5). This mod removes that restriction, allowing any enchantment to be raised up to level 255.
/enchant <target> <enchantment> <level>
Example: /enchant @s minecraft:fortune 255
Technical implementation:
Mixin redirects the getMaxLevel() call inside EnchantCommand.enchant().
Fixes the byte overflow issue when storing enchantments (vanilla casts level to byte, making >127 become negative).
Fixes enchantment display names (vanilla only supports Roman numerals I–X; above 10, Arabic numerals are shown).
Custom Entity Selectors: @i and @!
Adds two new convenient entity selectors alongside @a, @e, @p, @r, and @s:
@i – selects all item entities (dropped items)
Example: /kill @i (clears all dropped items on the ground)
Example: /tp @i[distance=..10] ~ ~ ~ (teleports dropped items within 10 blocks)
@! – selects all non‑player entities
Example: /kill @! (kills all non‑player entities)
Example: /effect give @! minecraft:glowing (applies glowing to all non‑player entities)
Both selectors support standard selector arguments (distance, sort, limit, type, etc.) and provide Tab completion when typing @ in chat.
Chunk Forceload Management: /handycommands chunk
Allows players to directly set the current chunk as forceloaded, without needing to specify coordinates using the vanilla /forceload command.
/handycommands chunk true – forceload the current chunk
/handycommands chunk false – remove forceload from the current chunk
/handycommands chunk list – list all forceloaded chunk coordinates
Once forceloaded, the chunk remains loaded even when the player moves away (redstone machinery, mob farms, crop growth, etc., continue to work). A semi‑transparent blue highlight box appears above the chunk as a visual indicator.
Permission level: 0 (available to all players)
Unbreakable Item Tag: /handycommands unbreakable
Quickly adds the Unbreakable:1b tag to the item in hand, making it indestructible. Vanilla requires complex NBT operations; this command simplifies it.
/handycommands unbreakable – the held item becomes permanently unbreakable
Permission level: 2 (requires cheats enabled)
Damage Mitigation Analysis: /handycommands mitigation
Shows detailed breakdown of all damage mitigation sources currently affecting the player, calculating the final damage reduction percentage according to Minecraft 1.20.1 damage formula.
/handycommands mitigation – overview (shows both physical and magical mitigation)
/handycommands mitigation physical – only physical damage reduction
/handycommands mitigation magic – only magical damage reduction
Mitigation sources:
Armour value and armour toughness – physical damage reduction
Protection enchantments (EPF) – reduce both physical and magic damage
Resistance potion effect – reduces both physical and magic damage
Physical damage calculation order (vanilla triple multiplication):
Raw damage → armour reduction (with toughness correction) → protection enchantment reduction → resistance reduction → final damage
Magical damage order (armour is skipped):
Raw damage → protection enchantment reduction → resistance reduction → final damage
Armour reduction formula: f = min(20, max(armor/5, armor - dmg/(2+toughness/4))) / 25
Protection enchantment: 4% per level, EPF cap of 20 (80% max)
Resistance: 20% per level
Reference damage used for calculation: 10.0 (equal to an iron sword swing)
Permission level: 0 (available to all players, even in survival)
Help Command: /handycommands help
View the full list of features with brief Chinese descriptions in‑game.
/handycommands help
Permission level: 0 (all players)
Potion Giving: /handycommands potion give
Gives a custom potion with a specified effect directly, no brewing stand needed.
/handycommands potion give <effect> <seconds> [level]
Example: /handycommands potion give minecraft:luck 60 – gives a 60‑second Luck I potion
Example: /handycommands potion give minecraft:strength 120 4 – gives a 120‑second Strength V potion
Effect parameter uses Minecraft registry names (e.g., minecraft:speed, minecraft:strength)
Time in seconds, minimum 1 second
Level is optional, defaults to I (lowest)
Level can exceed 255 (only for this command; does not affect vanilla brewing or other mods)
Tab completion for all registered potion effects
The obtained potion is a standard drinkable item
Permission level: 2 (requires cheats / operator privileges)
Potion Effect Addition: /handycommands potion additional
Adds an extra potion effect to a potion already in hand, combining with vanilla potions or those created by /handycommands potion give.
/handycommands potion additional <effect> <seconds> [level]
Example: With a Speed potion in hand, /handycommands potion additional minecraft:luck 60 – the potion now has both Speed and Luck I
Example: /handycommands potion additional minecraft:strength 120 9 – adds Strength X (120 seconds) to the held potion
Only works on potion bottles (regular, splash, lingering) and Witch's Brew (from Goety)
Effect parameter uses Minecraft registry names
Time in seconds, minimum 1 second
Level optional, defaults to I
Level can exceed 255 (only for this command)
Tab completion for all registered effects
The new effect is appended, not replacing existing ones
Permission level: 2 (requires cheats)
Infinite Drinkable Potions: /handycommands potion unbreakable
Adds an "infinite drink" property to the potion in hand, allowing it to be consumed repeatedly in survival without being consumed.
/handycommands potion unbreakable
Example: With a Speed potion in hand, it becomes infinitely drinkable.
Works on potion bottles (regular, splash, lingering) and Witch's Brew (from Goety)
The potion does not disappear after use and remains in the inventory
Can be combined with /handycommands potion give and /handycommands potion additional
Re‑executing on an already infinite potion shows a notification
Permission level: 2 (requires cheats)
Custom Potion Naming: /handycommands potion name
Sets a custom display name for the potion in hand, with support for colour and text formatting.
/handycommands potion name <name> [colour] [style]
Example: /handycommands potion name Soul gold bold – the potion displays as golden "Soul·Potion" in bold
Example: /handycommands potion name Strength red – displays as red "Strength·Potion"
Name is required; colour and style are optional
Style can only be used if colour is specified
Supports 16 Minecraft standard colours (gold, red, blue, green, etc.)
Supports 5 styles (bold, italic, underline, strikethrough, obfuscated)
Works on potion bottles (regular, splash, lingering) and Witch's Brew (from Goety)
Tab completion for colours and styles
Permission level: 2 (requires cheats)
Witch's Brew Giving: /handycommands potion brew give
(Requires the Goety mod installed)
Gives a Witch's Brew with a specified effect.
/handycommands potion brew give <effect> <seconds> [level]
Example: /handycommands potion brew give minecraft:luck 60 – gives a 60‑second Luck I Brew
Example: /handycommands potion brew give minecraft:strength 120 4 – gives a 120‑second Strength V Brew
Effect uses Minecraft registry names
Time in seconds, minimum 1 second
Level optional, defaults to I
Level can exceed 255 (only for this command)
Tab completion for all registered effects
If Goety is not installed, the command shows an error without crashing
The obtained Brew can be further modified with /handycommands potion additional/unbreakable/name
Permission level: 2 (requires cheats)
Test Mob Summoning: /handycommands summon
Spawns standardised, blank test targets for damage testing scenarios. All spawned mobs have no AI, no weapons, and no potion effects – only their base type (undead, arthropod, neutral) is retained for damage category testing.
/handycommands summon smite – summons a Zombie (undead)
/handycommands summon bane_of_arthropods – summons a Spider (arthropod)
/handycommands summon villager – summons a Villager (neutral)
Optional attribute parameters (default 0 if omitted):
/handycommands summon smite <armour> <physRes%> <magRes%> <IronSpellsMagRes> <GoetyMagRes%>
Example: /handycommands summon smite 20 50 – summons a Zombie with 20 armour and 50% physical resistance (others 0)
Example: /handycommands summon villager 0 0 30 5 15 – Villager with 0 armour, 0 phys resist, 30% magic resist, 5 Iron Spells magic resist, 15% Goety magic resist
Summoned mob properties:
Health is configurable in the config file (default 10000), bypassing vanilla 1024 cap
No AI (does not move or attack)
No weapons, no potion effects
Five defensive attributes can be set (all optional, default 0):
Vanilla armour: 1 = 1 armour point
Vanilla resistance: 1 = 1% physical damage reduction (multiplicative with armour)
Vanilla magic resistance: 1 = 1% magic damage reduction
Iron Spells magic resistance: 1 = 1 point of fixed magic damage reduction
Goety magic resistance: 1 = 1% magic damage reduction
Does not despawn naturally; spawns at the player's current position
Permission level: 2 (requires cheats)
Item Durability Modification: /handycommands durability
Directly modifies the durability value of the held item, allowing values beyond the original maximum.
/handycommands durability <value>
Example: /handycommands durability 10000 – sets a diamond sword's durability to 10000 (vanilla max is 1561)
Example: /handycommands durability 1 – sets durability to 1 (almost broken)
Value must be ≥ 0 (setting to 0 makes the item nearly broken)
Can exceed the item's original max durability – no Unbreakable tag required
Only works on items that have durability (tools, weapons, armour, shields, etc.)
Non‑durable items (blocks, food) show an error
Permission level: 2 (requires cheats)
Easter Egg Command: /handycommands gxyy
A hidden easter egg command – explore its effect in‑game.
/handycommands gxyy
Permission level: 2 (requires cheats in singleplayer)
Configuration File
Location: .minecraft/config/handycommands-common.toml
maxEnchantLevel = 255 (range 1–255)
bypassAllEnchantLimits = true
true = fully bypass, allow any level
false = allow max(vanilla cap, maxEnchantLevel)
summonSmiteHealth = 10000 (Zombie test target health)
summonBaneOfArthropodsHealth = 10000 (Spider test target health)
summonVillagerHealth = 10000 (Villager test target health)
bypassHealthCap = true
true = removes the vanilla 1024 health cap, allowing custom health values
false = keeps vanilla 1024 cap (compatible with other health‑cap‑changing mods)
Frequently Asked Questions
Q: Does level 255 enchantments break game balance?
A: The default cap is 255, but server admins can lower maxEnchantLevel in the config. We recommend lower values (e.g., 10–20) for survival servers.
Q: Can @i and @! selectors be used in command blocks?
A: Yes. Both custom selectors work in any context that supports entity selectors, including command blocks and data pack functions.
Q: Do many forceloaded chunks affect performance?
A: Yes, each forceloaded chunk consumes server resources. Use them only when necessary (e.g., redstone contraptions, mob farms) and remove them promptly. Use /handycommands chunk list to see active forceloads. The highlight box is purely visual and has negligible performance impact.
Q: Is the /handycommands mitigation calculation accurate?
A: The formula follows vanilla Minecraft 1.20.1 damage reduction logic exactly (see LivingEntity.getDamageAfterArmorAbsorb and related source). The values are based on a reference damage of 10.0; actual in‑game percentages may vary slightly for different damage values (especially with high toughness). If other mods modify the damage formula, the displayed percentages may not match actual behaviour.
Q: Can test mobs have custom health? And can it exceed 1024?
A: Yes. Adjust summonSmiteHealth, summonBaneOfArthropodsHealth, and summonVillagerHealth in the config. This mod uses a Mixin to bypass the vanilla 1024 cap, allowing health up to Integer.MAX_VALUE (~2.1 billion). If you have another mod that also changes the health cap, set bypassHealthCap = false to avoid conflicts. Restart the game after changing.
Q: Why isn't /handycommands chunk integrated with Xaero's World Map?
A: The Xaero integration was removed in an update; the mod now uses built‑in 3D world highlighting only.
评论 0
登录后参与评分
还没有评论,来抢沙发吧