? VoiceMage
VoiceMage 是一款适用于 Minecraft 26.2 的 Fabric 模组,它将你的麦克风变成了魔法书。说出 "fireball" 就会飞出一颗火球;说出 "meteor" 天空便会回应。语音识别在本地运行,无需云端、无需账号,音频数据也绝不会离开你的电脑。服务器决定实际发生的效果:法力值、冷却时间和法术效果。
所有内容均可通过 voicemage.json 或实时命令进行调整:法术消耗、法力回复速度、爆炸是否需要吟唱传奇咒语,以及更多设置。
✨ 功能特性
?️ 语音施法
- ?️ 14 种语音法术: 说出法术名称,它就会朝你注视的方向发射。
- ? 离线识别: 由 Vosk 提供支持。语音模型(约 40 MB)仅需下载一次,之后即可完全离线使用。
- ? 麦克风选择器: 从列表中选择任意录音设备,使用
/voicemic 命令。无法以 16 kHz 单声道录音的设备(许多 USB 耳机和笔记本麦克风)会自动转换。
- ⚡ 即时静音: 按 V 键静音或取消静音。语音模型保留在内存中,因此无需等待。
- ? 智能拼写: 常见的变体如 "fire ball"、"pit fall"、"lightening"、"magic missle" 和 "poly morph" 也能被识别。
? 法力与战斗
- ? 法力系统: 拥有屏幕上的法力条,大小和回复速度均可配置。
- ⏱️ 施法冷却: 施法间短暂的延迟可防止疯狂连发。
- ? 瞄准法术: 闪电、魔法飞弹、流星、变形术、缩小术和爆炸术会飞向你所注视的目标。
- ? 避免浪费法力: 无效的法术(满血时使用治疗术、没有方块时使用陷地术、没有目标时使用缩小术)不消耗任何法力。
?️ 专为服务器打造
- ?️ 服务器主导: 法力值、冷却时间、范围检查和所有法术效果均由服务器处理。
- ?️ 实时管理命令: 无需重启即可更改法力消耗、回复速度和爆炸咒语设置。
- ? 安全配置: 不可读的
voicemage.json 会被备份而不是覆盖;如果文件损坏,/voicemage reload 会保留你之前的设置。
- ? 自动清理: 临时墙壁、冰笼、克隆体和变形动物即使在崩溃后也会被移除。
? 法术列表
消耗值为默认值,可通过命令修改(见下文)。
| 说出 |
法力消耗 |
效果 |
| ? Fireball |
35 |
朝你注视的方向发射一颗大火球。 |
| ?️ Pitfall |
60 |
在你前方移除一个 3×3 的方块柱,一直向下直到世界底部。可在配置文件中禁用。 |
| ? Heal |
30 |
恢复 4 颗心。满血时无效。 |
| ⚡ Lightning |
45 |
召唤闪电击中你瞄准的目标(最远 64 格)。 |
| ? Earth Wall |
25 |
升起一堵临时墙壁(宽 5,高 4),约 8 秒后消失。 |
| ? Blink |
20 |
短距离瞬移到你注视的方向(最远 15 格)。 |
| ✨ Magic Missile |
25 |
向你瞄准的目标发射一道精确的射线(最远 32 格)。 |
| ☄️ Meteor |
70 |
流星坠落在你瞄准的位置并引发爆炸。 |
| ? Wind Blast |
30 |
一阵风浪,伤害并击退前方的目标。 |
| ❄️ Freeze |
50 |
将附近的生物冻结在原地,周围生成一个由压实冰块组成的临时笼子,持续数秒。冰块永远不会融化成水。 |
| ? Clone |
40 |
召唤几个你自己的分身诱饵,持续数秒。 |
| ? Polymorph |
55 |
将你瞄准的目标变成一种随机的无害动物,持续数秒。 |
| ? Shrink |
40 |
将你瞄准的目标缩小至原大小的约三分之一,持续数秒。 |
| ? Explosion |
100 |
终极法术。需要吟唱咒语(见下文)。摧毁大片区域。 |
? 爆炸咒语
Explosion 消耗整条法力值,且默认情况下必须吟唱。以下任一版本均可:
O ancient flame, awaken from your endless slumber. Let the skies burn and turn my enemies to ash, leaving nothing behind. EXPLOSION!
Darkness blacker than black and darker than dark,
I beseech thee, combine with my deep crimson.
Return all creation to cinders,
and come from the abyss!
EXPLOSION!
服务器管理员可以使用 /voicemage chant false 允许仅说 "Explosion" 即可施法。
⚠️ 服务器所有者注意: Explosion 会挖出一个非常大的陨石坑(半径 38,深度默认 128),而 Pitfall 会将方块一直移除到世界底部。这两者都可能对建筑造成严重破坏。在让玩家自由使用前,请提高消耗值、保持咒语要求,或在配置文件中调整陨石坑大小。
? 命令与权限
服务器命令
标记为 Op 的命令需要权限等级 2(游戏管理员),例如操作员和命令方块。
| 指令 |
说明 |
权限 |
/spells |
列出所有法术及其当前法力消耗 |
所有人 |
/voicemage |
显示法术列表、最大法力值、恢复速度,以及是否需要爆炸吟唱 |
所有人 |
/voicemage chant |
显示是否需要完整的爆炸吟唱 |
所有人 |
/voicemage chant show |
显示两种爆炸吟唱方式 |
所有人 |
/voicemage chant <true|false> |
true: 爆炸需要两种吟唱之一。false: 只需说“Explosion”即可施放 |
Op |
/voicemage regen |
显示法力恢复速率(每秒法力) |
Op |
/voicemage regen <rate> |
设置恢复速率,范围为每秒 0 到 100 法力 |
Op |
/voicemage <spell> |
显示单个法术的法力消耗 |
Op |
/voicemage <spell> <cost> |
设置单个法术的法力消耗,范围为 0 到 100 |
Op |
/voicemage reload |
重新加载 config/voicemage.json 并将设置同步给所有玩家 |
Op |
<spell> 可以是以下之一:fireball, pitfall, heal, lightning, earth_wall, blink, magic_missile, meteor, wind_blast, freeze, clone, polymorph, shrink, explosion.
/voicemage regen 10 # 每秒恢复 10 点法力
/voicemage fireball 20 # 使火球术消耗 20 点法力
/voicemage chant false # 只需说 "Explosion" 即可施放
/voicemage reload # 应用对 voicemage.json 的手动修改
客户端指令(仅影响你自己)
| 指令 |
说明 |
/voicemic |
列出 Java 能识别的所有录音设备(编号),并标记当前正在使用的设备 |
/voicemic <number> |
切换到该设备并重启语音识别 |
/voicemic default |
返回系统默认麦克风 |
你的选择保存在 config/voicemage-client.json 中。如果保存的设备未连接,则使用系统默认设备。
键位绑定
| 按键 |
操作 |
| V |
静音 / 取消静音语音识别(可在 选项 → 控制 → voicemage 中重新绑定) |
⚙️ 安装
- 为 Minecraft 26.2 安装 Fabric Loader 0.19.3 或更高版本,并安装 Fabric API。
- 确保你运行的是 Java 25 或更高版本。
- 将
voicemage-26.2-<version>.jar 放入 服务器和每位玩家 的 mods 文件夹中。
- 启动游戏并加入一个世界或服务器。
- 首次启动时: VoiceMage 会将英文语音模型(
vosk-model-small-en-us-0.15,约 40 MB)下载到 <game directory>/voicemage/ 目录中。下载内容会与内置的大小和 SHA-256 校验和进行比对,如果不匹配则会被丢弃。
- 如果操作系统询问,请允许麦克风访问权限。当 HUD 显示 Voice: listening 时,即表示准备就绪。
未安装该模组的玩家无法施法,且服务器必须安装此模组才能执行法术效果。
? 工作原理
每个法术都经过以下三个步骤:
- 监听: 你的客户端会听到你的声音。Vosk 仅识别法术名称和咒语,因此闲聊通常会被忽略。
- 请求: 客户端告知服务器你想要施展 哪个 法术。永远不会发送任何音频数据。
- 判定: 服务器检查你是否存活、是否处于冷却时间之外以及是否有足够的法力值,然后执行法术效果并扣除法力值。如果法术无法生效(例如没有目标或无法治疗),则不消耗法力值。
HUD 会显示你的法力条和语音状态:
| 状态 |
含义 |
| Voice: listening |
麦克风和语音识别功能已激活 |
| Voice: loading |
语音模型正在下载或初始化中 |
| Voice error: ... |
没有可用的麦克风,或模型加载失败。尝试使用 /voicemic 命令 |
| Voice: muted |
语音识别已关闭。按 V 键恢复 |
? 配置
配置文件位于 config/voicemage.json,并在首次启动时创建。编辑该文件后运行 /voicemage reload,或使用上述命令在游戏内更改主要数值。超出允许范围的数值会自动被限制在有效范围内。
{
"maximumMana": 100.0,
"manaRegenerationPerSecond": 5.0,
"minimumCastIntervalTicks": 6,
"explosionChantRequired": true,
"pitfallEnabled": true,
"fireballManaCost": 35
}
如果文件无法读取(例如由于拼写错误),VoiceMage 会在其旁边保留一个副本,命名为 voicemage.json.broken-<date>-<time>,而不是静默覆盖您的设置。
? 所有选项
| 选项 |
默认值 |
描述 |
maximumMana |
100 |
法力池容量 |
manaRegenerationPerSecond |
5 |
每秒恢复的法力值 |
minimumCastIntervalTicks |
6 |
两次施法之间的最小间隔(20 ticks = 1 秒) |
explosionChantRequired |
true |
是否需要完整的吟唱才能释放爆炸法术 |
pitfallEnabled |
true |
是否允许使用陷阱法术 |
<spell>ManaCost |
见下表 |
每个法术的法力消耗(例如 fireballManaCost) |
fireballExplosionPower |
4 |
火球爆炸威力 |
healAmount |
8 |
治疗法术恢复的生命值(2 = 1 颗心) |
lightningDamage / lightningRange |
16 / 64 |
闪电伤害与范围 |
earthWallWidth / earthWallHeight / earthWallLifetimeSeconds |
5 / 4 / 8 |
土墙的大小与持续时间 |
blinkRange |
15 |
闪烁术的移动距离(以方块为单位) |
magicMissileDamage / magicMissileRange |
10 / 32 |
魔法飞弹的伤害与射程 |
meteorExplosionPower / meteorRange |
8 / 48 |
陨石爆炸威力与瞄准范围 |
windBlastRange / windBlastDamage / windBlastStrength |
12 / 2 / 2.8 |
风爆的范围、伤害与推力 |
freezeRadius / freezeDurationTicks |
4 / 60 |
冰冻区域半径与持续时间 |
cloneCount / cloneDurationTicks |
3 / 120 |
克隆数量(2–3 个)与持续时间 |
polymorphDurationTicks / shrinkDurationTicks / shrinkScale |
100 / 120 / 0.35 |
变形术与缩小术的持续时间;缩小术的尺寸缩放比例 |
skillShotRange |
32 |
变形术与缩小术的瞄准范围 |
explosionPower / explosionRange |
96 / 64 |
爆炸威力与瞄准范围 |
explosionCraterRadius / explosionCraterDepth |
38 / 128 |
爆炸坑的大小 |
?️ 兼容性
- Minecraft 版本:
26.2
- 模组加载器: Fabric (Loader 0.19.3+),需搭配 Fabric API
- Java 版本: Java 25+
- 运行环境: 客户端 和 服务端(语音识别在客户端运行,法术效果在服务端运行)
- 语言支持: 语音模型仅支持英语
注意事项
- 服务器无法听到你的麦克风声音。法力、冷却时间和效果由服务器判定,但爆炸吟唱是否被正确说出是由玩家自己的客户端进行检查的。
- 麦克风需要一个 Java 能够使用的输入设备。在 Linux 系统上,请确保 PulseAudio 或 PipeWire 暴露了输入设备。
- 临时实体即使在崩溃后也会被清理:残留的克隆体和变形的动物会在其所在区块加载时被移除;临时生成的墙壁和冰块会记录在世界文件夹中的
voicemage_temporary_blocks.json 文件里,并在下次启动时清除。
? 故障排除
- “Voice error: Microphone ... cannot be opened”(语音错误:麦克风...无法打开): 运行
/voicemic 命令并尝试选择其他设备。日志文件(latest.log)中会显示当前使用的设备和音频转换方式。
- 语音模型未下载: 首次启动需要联网访问
alphacephei.com。请检查防火墙设置或重启游戏(如果下载失败,系统会自动重试一次)。如果日志报告校验和失败,说明文件已损坏或被篡改,该文件将被丢弃。
- 法术未被识别: 请清晰发音,且每次只说一个法术名称。识别引擎仅支持英语。
- 服务器上没有任何反应: 模组必须同时安装在服务端,且你的法力值需足以支付法术消耗。可使用
/spells 命令查看当前各项法术的费用。
?️ 从源码构建
你需要安装 JDK 25。
git clone https://github.com/Berkayprof/VoiceMage.git
cd VoiceMage
./gradlew build
编译后的模组 jar 包将生成至 build/libs/voicemage-26.2-<version>.jar。要在开发环境中测试:
./gradlew runClient
? 项目结构
src/main/java/com/voicemage/
├── Voicemage.java 服务端/通用入口点
├── VoicemageClient.java 客户端入口点(语音、HUD、按键绑定)
├── VoicemageCommands.java /spells 和 /voicemage 命令处理
├── VoicemageNetworking.java 数据包注册
├── client/ 语音识别、麦克风、模型安装器、HUD 及视觉效果
├── config/ voicemage.json 配置处理
├── mixin/ Mannequin 访问器(克隆法术使用)
├── network/ 客户端与服务端之间的数据包载荷
└── spell/ 法术逻辑、法力管理、效果处理及临时方块清理
? 致谢与许可
- VoiceMage 由 Cayce 创建,遵循 MIT License 开源协议。版权声明归原作者所有。
- 此版本由 Berkayprof 将编译后的模组重构为 Gradle 项目并进行维护。
- 语音识别功能使用了 Vosk(Apache License 2.0),并已打包进模组中。
原版模组作者:Cayce · 维护者:Berkayprof
? VoiceMage
VoiceMage is a Fabric mod for Minecraft 26.2 that turns your microphone into a spellbook. Say "fireball" and a fireball flies. Say "meteor" and the sky answers. Speech recognition runs locally on your own machine, so there is no cloud, no account and no audio ever leaves your computer. The server decides what actually happens: mana, cooldowns and spell effects.
Everything is tweakable in voicemage.json or live with commands: spell costs, mana regeneration, whether the Explosion needs its legendary chant, and a lot more.
✨ Features
?️ Voice Casting
- ?️ 14 Spoken Spells: Say the name of a spell and it fires in the direction you are looking.
- ? Offline Recognition: Powered by Vosk. The speech model (~40 MB) is downloaded once and then works fully offline.
- ? Microphone Picker: Choose any recording device from a list with
/voicemic. Devices that can not record at 16 kHz mono (many USB headsets and laptop microphones) are converted automatically.
- ⚡ Instant Mute: Press V to mute or unmute. The speech model stays in memory, so there is no waiting.
- ? Smart Spelling: Common variants such as "fire ball", "pit fall", "lightening", "magic missle" and "poly morph" are understood too.
? Mana & Combat
- ? Mana System: A mana pool with an on-screen bar, configurable size and regeneration.
- ⏱️ Cast Cooldown: A short delay between casts keeps spamming in check.
- ? Aimed Spells: Lightning, Magic Missile, Meteor, Polymorph, Shrink and Explosion go where you look.
- ? No Wasted Mana: A spell that has nothing to do (Heal at full health, Pitfall with no blocks, Shrink without a target) costs nothing.
?️ Built for Servers
- ?️ Server Decides: Mana, cooldowns, range checks and every spell effect are handled on the server.
- ?️ Live Admin Commands: Change mana costs, regeneration and the Explosion chant without restarting.
- ? Safe Config: An unreadable
voicemage.json is backed up instead of overwritten, and /voicemage reload keeps your old settings when the file is broken.
- ? Self-Cleaning: Temporary walls, ice cages, clones and polymorph animals are removed even after a crash.
? The Spells
Costs are the defaults and can be changed with commands (see below).
| Say |
Mana |
Effect |
| ? Fireball |
35 |
Launches a large fireball in the direction you are looking. |
| ?️ Pitfall |
60 |
Removes a 3×3 column of blocks ahead of you, all the way down. Can be disabled in the config. |
| ? Heal |
30 |
Restores 4 hearts. Does nothing at full health. |
| ⚡ Lightning |
45 |
Calls lightning down on what you aim at (up to 64 blocks). |
| ? Earth Wall |
25 |
Raises a temporary wall (5 wide, 4 high) that fades after about 8 seconds. |
| ? Blink |
20 |
Short-range teleport in the direction you are looking (up to 15 blocks). |
| ✨ Magic Missile |
25 |
A precise bolt at the target you aim at (up to 32 blocks). |
| ☄️ Meteor |
70 |
A meteor falls on the spot you aim at and explodes on impact. |
| ? Wind Blast |
30 |
A gust of wind that damages and pushes back what is in front of you. |
| ❄️ Freeze |
50 |
Freezes nearby creatures in place inside a temporary cage of packed ice for a few seconds. The ice never melts into water. |
| ? Clone |
40 |
Summons decoy clones of yourself for a few seconds. |
| ? Polymorph |
55 |
Turns the target you aim at into a random harmless animal for a few seconds. |
| ? Shrink |
40 |
Shrinks the target you aim at to about a third of its size for a few seconds. |
| ? Explosion |
100 |
The ultimate spell. Needs a chant (see below). Destroys a huge area. |
? The Explosion Chant
Explosion costs a full mana bar and, by default, has to be chanted. Either of these works:
O ancient flame, awaken from your endless slumber. Let the skies burn and turn my enemies to ash, leaving nothing behind. EXPLOSION!
Darkness blacker than black and darker than dark,
I beseech thee, combine with my deep crimson.
Return all creation to cinders,
and come from the abyss!
EXPLOSION!
Server operators can allow casting by saying just "Explosion" with /voicemage chant false.
⚠️ Heads up for server owners: Explosion carves a very large crater (radius 38, depth 128 by default) and Pitfall removes blocks down to the bottom of the world. Both can seriously damage builds. Raise the costs, keep the chant required, or tune the crater size in the config before you let players loose.
? Commands & Permissions
Server commands
Commands marked Op need permission level 2 (game master), such as operators and command blocks.
| Command |
Description |
Access |
/spells |
Lists every spell with its current mana cost |
Everyone |
/voicemage |
Shows spells, maximum mana, regeneration and whether the Explosion chant is required |
Everyone |
/voicemage chant |
Shows whether the full Explosion chant is required |
Everyone |
/voicemage chant show |
Shows both Explosion chants |
Everyone |
/voicemage chant <true|false> |
true: Explosion needs one of the two chants. false: saying only "Explosion" is enough |
Op |
/voicemage regen |
Shows the mana regeneration rate (mana per second) |
Op |
/voicemage regen <rate> |
Sets the regeneration rate, from 0 to 100 mana per second |
Op |
/voicemage <spell> |
Shows the mana cost of one spell |
Op |
/voicemage <spell> <cost> |
Sets the mana cost of one spell, from 0 to 100 |
Op |
/voicemage reload |
Reloads config/voicemage.json and syncs the settings to all players |
Op |
<spell> is one of: fireball, pitfall, heal, lightning, earth_wall, blink, magic_missile, meteor, wind_blast, freeze, clone, polymorph, shrink, explosion.
/voicemage regen 10 # regenerate 10 mana per second
/voicemage fireball 20 # make Fireball cost 20 mana
/voicemage chant false # just say "Explosion" to cast it
/voicemage reload # apply manual edits to voicemage.json
Client commands (only affect you)
| Command |
Description |
/voicemic |
Lists every recording device Java can see, numbered, and marks the one in use |
/voicemic <number> |
Switches to that device and restarts voice recognition |
/voicemic default |
Goes back to the system default microphone |
Your choice is saved in config/voicemage-client.json. If the saved device is not connected, the system default is used.
Keybind
| Key |
Action |
| V |
Mute / unmute voice recognition (rebind under Options → Controls → voicemage) |
⚙️ Installation
- Install Fabric Loader 0.19.3 or newer for Minecraft 26.2, and the Fabric API.
- Make sure you run Java 25 or newer.
- Drop
voicemage-26.2-<version>.jar into the mods folder of both the server and every player.
- Start the game and join a world or server.
- First launch only: VoiceMage downloads the English speech model (
vosk-model-small-en-us-0.15, about 40 MB) into <game directory>/voicemage/. The download is checked against a built-in size and SHA-256 checksum and thrown away if it does not match.
- Allow microphone access if your operating system asks. When the HUD shows Voice: listening, you are ready.
Players without the mod can not cast, and the server needs the mod to run the spells.
? How It Works
Every spell goes through the same three steps:
- Listen: Your own client hears you. Vosk only knows the spell names and the chants, so random talk is mostly ignored.
- Ask: The client tells the server which spell you want. No audio is ever sent.
- Decide: The server checks that you are alive, off cooldown and have the mana, then runs the effect and takes the mana. If the spell can not work (no target, nothing to heal), it costs nothing.
The HUD shows your mana bar and a voice status:
| Status |
Meaning |
| Voice: listening |
Microphone and recognition are active |
| Voice: loading |
The speech model is downloading or starting up |
| Voice error: ... |
No usable microphone, or the model failed to load. Try /voicemic |
| Voice: muted |
Recognition is switched off. Press V to resume |
? Configuration
The config lives in config/voicemage.json and is created on first start. Edit it and run /voicemage reload, or change the main values in-game with the commands above. Values outside the allowed range are clamped automatically.
{
"maximumMana": 100.0,
"manaRegenerationPerSecond": 5.0,
"minimumCastIntervalTicks": 6,
"explosionChantRequired": true,
"pitfallEnabled": true,
"fireballManaCost": 35
}
If the file can not be read (for example after a typo), VoiceMage keeps a copy as voicemage.json.broken-<date>-<time> next to it instead of silently overwriting your settings.
? All options
| Option |
Default |
Description |
maximumMana |
100 |
Size of the mana pool |
manaRegenerationPerSecond |
5 |
Mana regained per second |
minimumCastIntervalTicks |
6 |
Minimum delay between two casts (20 ticks = 1 second) |
explosionChantRequired |
true |
Require a full chant for Explosion |
pitfallEnabled |
true |
Allow the Pitfall spell |
<spell>ManaCost |
see table |
Mana cost per spell (e.g. fireballManaCost) |
fireballExplosionPower |
4 |
Fireball blast strength |
healAmount |
8 |
Health restored by Heal (2 = 1 heart) |
lightningDamage / lightningRange |
16 / 64 |
Lightning damage and range |
earthWallWidth / earthWallHeight / earthWallLifetimeSeconds |
5 / 4 / 8 |
Earth Wall size and lifetime |
blinkRange |
15 |
Blink distance in blocks |
magicMissileDamage / magicMissileRange |
10 / 32 |
Magic Missile damage and range |
meteorExplosionPower / meteorRange |
8 / 48 |
Meteor blast strength and aim range |
windBlastRange / windBlastDamage / windBlastStrength |
12 / 2 / 2.8 |
Wind Blast reach, damage and push |
freezeRadius / freezeDurationTicks |
4 / 60 |
Freeze area and duration |
cloneCount / cloneDurationTicks |
3 / 120 |
Number of clones (2–3) and lifetime |
polymorphDurationTicks / shrinkDurationTicks / shrinkScale |
100 / 120 / 0.35 |
Polymorph and Shrink duration; Shrink size factor |
skillShotRange |
32 |
Aim range for Polymorph and Shrink |
explosionPower / explosionRange |
96 / 64 |
Explosion strength and aim range |
explosionCraterRadius / explosionCraterDepth |
38 / 128 |
Size of the Explosion crater |
?️ Compatibility
- Minecraft Version:
26.2
- Mod Loader: Fabric (Loader 0.19.3+) with the Fabric API
- Java Version: Java 25+
- Environment: Client and server (voice runs on the client, spells run on the server)
- Languages: The speech model is English only
Good to know
- The server can not hear your microphone. It decides mana, cooldowns and effects, but whether the Explosion chant was spoken is checked by the player's own client.
- The microphone needs a working input device that Java can use. On Linux, make sure PulseAudio or PipeWire exposes an input device.
- Temporary things are cleaned up even after a crash: leftover clones and polymorph animals are removed when their chunk loads, and temporary walls and ice are tracked in
voicemage_temporary_blocks.json in the world folder and removed on the next start.
? Troubleshooting
- "Voice error: Microphone ... cannot be opened": run
/voicemic and try another device. The log (latest.log) says which device and which conversion is in use.
- The speech model does not download: the first launch needs internet access to
alphacephei.com. Check your firewall or restart the game (a failed download is retried once automatically). If the log reports a checksum failure, the file was corrupted or changed and was discarded.
- Spells are not recognized: speak clearly and say one spell at a time. The recognizer is English only.
- Nothing happens on a server: the mod must be installed on the server too, and your mana must cover the spell's cost. Use
/spells to see the current costs.
?️ Building From Source
You need JDK 25.
git clone https://github.com/Berkayprof/VoiceMage.git
cd VoiceMage
./gradlew build
The mod jar is written to build/libs/voicemage-26.2-<version>.jar. To test in a development client:
./gradlew runClient
? Project layout
src/main/java/com/voicemage/
├── Voicemage.java server/common entrypoint
├── VoicemageClient.java client entrypoint (voice, HUD, keybind)
├── VoicemageCommands.java /spells and /voicemage
├── VoicemageNetworking.java packet registration
├── client/ speech recognition, microphone, model installer, HUD and visuals
├── config/ voicemage.json handling
├── mixin/ Mannequin accessor (used by Clone)
├── network/ payloads between client and server
└── spell/ spells, mana, effects, temporary-block cleanup
? Credits & License
- VoiceMage was created by Cayce and is licensed under the MIT License. The copyright notice stays with the original author.
- This version was rebuilt from the compiled mod into a Gradle project and is maintained by Berkayprof.
- Speech recognition uses Vosk (Apache License 2.0), bundled with the mod.
Original mod by Cayce · Maintained with ❤️ by Berkayprof
评论 0
登录后参与评分
还没有评论,来抢沙发吧