MineFantasia

简介
欢迎来到 MineFantasia!这是一款用于 Minecraft 的音乐模组。
该模组支持从 1.21.5 到 26.2 的多个版本,提供了包括钢琴、合成器、弦乐和管乐在内的多种乐器。只需右键点击相应的乐器,即可在新生成的界面中使用键盘或鼠标开始演奏。
除了乐器功能外,模组还提供多人合奏系统。这意味着你可以与朋友们共同演绎精彩的管弦合奏。
乐器演奏系统
该模组为 Minecraft 添加了乐器演奏系统,并在此基础上增加了多种多样的乐器。这是模组的核心功能。
乐器演奏界面
当玩家在主手持有乐器,或右键点击已放置的乐器时,将打开乐器演奏界面:

演奏区域:包含 21 个方块,从上到下、从左到右排列。每个方块对应键盘上的 Q-U、A-J、Z-M 键,方块中间显示对应音符的名称。
设置区域:包含 5 个功能按钮,左下角三个,右下角两个。
界面左下角:
共有 3 个按钮,从上到下依次为:升高按钮、当前中心八度音阶编号/升高半音数、降低按钮。
当中间按钮未显示 + 或 - 号时,显示的是当前中心八度音阶编号;当显示 + 或 - 时,显示的是升高半音数。两者的记录相互独立但会互相影响。在单次演奏会话中,它们仅分别记录各自的数据,但在切换时不会重置。
当你在中心八度音阶编号模式下点击升高/降低按钮时,演奏区域中的所有 21 个音符将升高/降低一个八度(12 个半音)。在升高半音数模式下,点击升高/降低按钮将使所有 21 个音符升高/降低一个半音。所有更改将在演奏区域的方块中显示。
注意:在中心八度音阶编号模式下,音调升高/降低的范围不会超过/低于乐器记录的最高/最低八度音阶编号。在升高半音数模式下,为了确保覆盖所有音符,上下限各扩展了一个八度组。
这三个按钮绑定在键盘的方向键上。向上是升高按钮,向下是降低按钮,向右是从当前中心八度音阶编号切换到升高半音数,向左是从升高半音数切换到当前中心八度音阶编号。
界面右下角:
共有 2 个按钮,从上到下依次为:隐藏演奏方块按钮(带有眼睛图标)和设置按钮(带有齿轮图标)。
点击隐藏演奏方块按钮将隐藏演奏区域中的 21 个方块以及设置按钮,使演奏界面背景完全透明。再次点击可恢复显示。
点击设置按钮进入音符编辑模式。你可以通过键盘或鼠标选择需要更改名称的方块,在下方的输入框中输入新音符名称,然后按Enter完成修改。
音符配置
由于原版 Minecraft 注册系统的限制,音符名称的命名规则为:八度组编号(八度位置)+ 音符名称。
八度组编号指的是 FL Studio 钢琴卷帘中使用的编号。音符名称均为小写字母,音符名称前加 s 表示升号(sharp)。例如:5c、6sc。该模组不引入降号音符。
模组将音符分为断奏(Staccato)和延音(Sustained)两类。目前,断奏乐器包括:钢琴、卡林巴琴、竖琴。延音乐器包括:所有合成器、小提琴、长笛。
断奏乐器的演奏原理是:点击某个音符时,播放一次对应的声音。如果在演奏界面长按某个音符,对应的音符将快速重复播放。此外,如果你使用资源包替换了钢琴声源,请确保每个单独的钢琴声音长度不超过原始声源的长度。否则,可能会导致灾难性的后果!
对于延音乐器:单个音符的最长持续时间由声源文件的长度决定。模组默认的延音声音最长可达 8 秒(FL Studio 中 120 BPM 下 4 小节的长度)。
文件系统
首次运行模组并进入世界后,模组会在你的 mods 文件夹内生成其专用文件夹。
其文件结构如下:
点击展开
?`minefantasia`
├── ?`midi`
├── ?`ins`
│ └── ?`custom_synth`
│ └── ?`example.json`
├── ?`model`
│ └── ?`player.geo.json`
├── ?`animation`
│ └── ?`player.animation.json`
├── ?`texture`
│ └── ?️`player.png`
└── ?`uuid.json`
其中,midi 文件夹存储你所有的 MIDI 文件(与模型替换无关),ins 文件夹存储所有通用乐器子乐器的 JSON 信息文件,model 文件夹存储你所有的 GeckoLib 模型文件 key.geo.json,animation 文件夹存储你所有的 GeckoLib 模型动画文件 key.animation.json,texture 文件夹存储你所有的 GeckoLib 模型纹理 key.png。
除了 midi 和 ins 文件夹外,每个目录中都会生成一个以 player 为 key 的默认 JSON 文件。您不应删除或替换它们。
自定义通用乐器
从版本 0.0.9-beta 开始,该模组将逐步为各种乐器添加 通用乐器(General Instrument)版本。
通用乐器 允许玩家自行添加同一类乐器的不同音色。其演奏界面与内置乐器基本一致,仅在演奏区域上方增加了一个子乐器切换模块。
通用乐器的工作模式为“模组读取基本信息并完成注册 + 玩家导入声音资源包”。注册相关信息存放在模组文件夹中:mods/minefantasia/ins,并按其中的各个通用乐器细分。
它们的文件结构如下:
点击展开
?`minefantasia`
└── ?`ins`
├── ?`通用乐器 1`
│ ├── ?`子乐器 1.json`
│ ├── ?`子乐器 2.json`
│ └── ...
├── ?`通用乐器 2`
│ ├── ?`子乐器 1.json`
│ ├── ?`子乐器 2.json`
│ └── ...
└── ...
子乐器 JSON 文件的命名不得与现有模组乐器冲突。例如,对于通用合成器,如果有一个名为 sunshine 的子乐器,其 JSON 文件应命名为 sunshine.json 并放置在 ins/custom_synth 文件夹中。
包含的信息如下:
点击展开
?`subIns.json`<br>
├── ?️`name` 字段:子乐器的名称,用于游戏内部识别。
├── ?️`minOctave` 字段:子乐器的最低八度,应大于 0。
├── ?️`maxOctave` 字段:子乐器的最高八度,应小于 10。
└── ?️`fadeDuration` 字段:仅对持续音乐器有效,定义从按键释放到声音完全消失的时间。
目前已添加的通用乐器如下:
点击展开
?-通用合成器
?-通用班卓琴
?-通用贝斯
?-通用鼓组
?-通用长笛
?-通用吉他
?-通用竖琴
?-通用卡林巴琴
?-通用小提琴
为了方便玩家为通用乐器添加资源,已在 GitHub 上发布了模组工具 MFPackager。该工具可以将指定路径中的资源自动打包为模组可识别的资源包,并自动生成子乐器的注册 JSON 文件。
自定义玩家模型
为了使模组的乐器演奏系统更加生动并适配乐器演奏动画,该模组添加了基于 GeckoLib 5 的动画系统,并基于最新的 GeckoLib 5 替换了所有视角的原版 Minecraft 玩家模型。当您演奏乐器时,模型也会执行相应的演奏动作。
该模组还重新设计了第一人称视角的相机跟随系统。尽管该系统在快速左右转动视角以及极少数特定状态下的表现仍有待改进,但在大多数情况下,该系统实现了真实的玩家第一人称视角并保持良好运行。
支持模型替换,但本模组 不支持 YSM 模型或其他模组的模型。您需要使用 GeckoLib 模型。
模组文件夹下的 model、animation、texture 文件夹以及 uuid.json 文件与自定义玩家模型相关。
uuid.json 文件是以玩家 UUID 命名的文件,仅在玩家进入世界时生成。其内容包含四个键记录字段:
点击展开
?uuid.json
├── ?️key 字段:玩家所用模型的关键词,用于注册、标记以及在模组代码中绑定对应的玩家模型 ID。不同的玩家可以使用相同的 key。
├── ?️model 字段:自定义 GeckoLib 玩家模型文件的绝对路径。不需要 .geo.json 后缀。
├── ?️texture 字段:自定义玩家 GeckoLib 模型纹理的绝对路径,需要完整的文件名。
└── ?️animation 字段:自定义 GeckoLib 玩家模型动画文件的绝对路径。不需要 .animation.json 后缀。
为了方便模组内部的模型注册和区分,所有模型文件名和骨骼都需要以您模型的 key 作为前缀,例如 key.geo.json、key.head 等。
该模组对模型骨骼的数量或其结构没有严格的规定或限制,但请确保您的自定义 GeckoLib 模型按要求包含以下重要骨骼:
点击展开
?key.geo.json
├── ?key.head bone:此骨骼由模组内部使用,用于计算第一人称视角下的摄像机坐标和偏移量;同时定位模型的头部并使其随摄像机旋转。
├── ?key.cameraAnchor bone:此骨骼必须仅包含一个 locator,且该 locator 的名称必须为 cameraAnchor。建议其父级为模型根骨骼(key.root)或头部骨骼(key.head)。此骨骼由模组用于计算第一人称视角下的摄像机坐标和偏移量。
├── ?key.rightHandItem bone:此骨骼必须仅包含一个 locator,且该 locator 的名称必须为 rightHandItem。其父级必须是对应的手部骨骼,以便物品能随动画移动。此骨骼由模组内部使用,用于计算所有视角下玩家右手(主手)物品的渲染位置和偏移量。
└── ?key.leftHandItem bone:此骨骼必须仅包含一个 locator,且该 locator 的名称必须为 leftHandItem。其父级必须是对应的手部骨骼,以便物品能随动画移动。此骨骼由模组内部使用,用于计算所有视角下玩家左手(副手)物品的渲染位置和偏移量。
模组使用上述 4 个骨骼的 pivot 进行坐标计算,请确保它们的 pivot 值正确。
除这 4 个骨骼之外的其他骨骼、它们的子骨骼以及骨骼内的元素名称,模组没有严格限制。
请注意,模组当前的玩家模型替换系统不会在多人游戏中自动同步各个玩家正在使用的模型,仍需手动调整 uuid.json 中的内容来更改模型。这意味着如果你想让别人看到你的模型,你需要将模型的所有 JSON 文件发送给他们,并要求他们在他们的设备上手动修改对应的 uuid.json。
自定义模型动画
模组支持自定义玩家模型动画。由于所有动画名称均在模组的代码中硬编码,因此你的自定义模型动画名称必须与模组代码中硬编码的动画名称一致。
目前支持的动画及其命名要求如下:
点击展开
?key.animation.json
├── ?key.walk: 玩家模型行走时播放的动画。
├── ?key.idle: 玩家模型静止时播放的动画。
├── ?key.crouch: 玩家模型蹲下时播放的动画。
├── ?key.swim: 玩家模型游泳时播放的动画。播放此动画时不显示手持物品。由于原版 Minecraft 在此情况下会将玩家的碰撞箱大小更改为 0.6x0.6x0.6,为了使玩家模型的头部能正常旋转并正确应用相机坐标,在创建此动画时,完成整体模型动画后,需在 BlockBench 的 Animation 选项卡中移动整个模型 (key.root),使头部骨骼 key.head 的 pivot(轴心)对齐到坐标 [0, 6.4, 0],并确保 key.root 骨骼没有 Rotation(旋转)偏移量。
├── ?key.fly: 玩家模型使用鞘翅飞行时播放的动画。播放此动画时不显示手持物品。由于原版 Minecraft 在此情况下会将玩家的碰撞箱大小更改为 0.6x0.6x0.6,为了使玩家模型的头部能正常旋转并正确应用相机坐标,在创建此动画时,完成整体模型动画后,需在 BlockBench 的 Animation 选项卡中移动整个模型 (key.root),使头部骨骼 key.head 的 pivot(轴心)对齐到坐标 [0, 6.4, 0],并确保 key.root 骨骼没有 Rotation(旋转)偏移量。
├── ?key.piano: 玩家模型演奏钢琴时播放的整体动画,例如姿态变化。
├── ?key.kalimba: 玩家模型演奏卡林巴琴时播放的整体动画,例如姿态变化。
├── ?key.harp: 玩家模型演奏竖琴时播放的整体动画,例如姿态变化。
├── ?key.violin: 玩家模型演奏小提琴时播放的整体动画,例如姿态变化。
├── ?key.synth: 玩家模型演奏各类合成器时播放的整体动画,例如姿态变化。
├── ?key.banjo: 玩家模型演奏班卓琴时播放的整体动画,例如姿态变化。
├── ?key.drumKit: 玩家模型演奏架子鼓时播放的整体动画,例如姿态变化。
├── ?key.bass: 玩家模型演奏贝斯时播放的整体动画,例如姿态变化。
├── ?key.guitar: 玩家模型演奏吉他时播放的整体动画,例如姿态变化。
├── ?key.pianoPlay: 在打开演奏界面演奏钢琴按下音符时触发的即时动画,例如手部动作。
├── ?key.kalimbaPlay: 在打开演奏界面演奏卡林巴琴按下音符时触发的即时动画,例如手部动作。
├── ?key.harpPlay: 在打开演奏界面演奏竖琴按下音符时触发的即时动画,例如手部动作。
├── ?key.violinPlay: 在打开演奏界面演奏小提琴按下音符时触发的即时动画,例如手部动作。
├── ?key.synthPlay: 在打开演奏界面演奏合成器按下音符时触发的即时动画,例如手部动作。
├── ?key.banjoPlay: 在打开演奏界面演奏班卓琴按下音符时触发的即时动画,例如手部动作。
├── ?key.drumKitPlay: 在打开演奏界面演奏架子鼓按下音符时触发的即时动画,例如手部动作。
├── ?key.bassPlay: 在打开演奏界面演奏贝斯按下音符时触发的即时动画,例如手部动作。
└── ?key.guitarPlay: 在打开演奏界面演奏吉他按下音符时触发的即时动画,例如手部动作。
关于 key.swim 和 key.fly 动画中 key.root 骨骼的 Rotation(旋转)偏移量不能修改的原因补充说明:在实际操作中,如果添加了基于模型根骨骼的旋转偏移量,GeckoLib 针对玩家头部骨骼跟随相机视角的旋转计算可能会出现偏差甚至失效。具体原因目前尚不明确,因此现阶段我们只能在动画制作过程中避免直接修改根骨骼的旋转偏移量。
由于个人美术能力有限,默认模型并未包含某些乐器的演奏动画,因此也未经过彻底的测试和验证。不过,模组仍然保留了这些动画的调用。您可以在自定义模型中使用上述提到的动画名称,为演奏相应乐器添加替换动画。如果出现任何问题,可以在该模组的 GitHub 仓库 Issues 页面 提交问题反馈。
MIDI 系统
模组实现了读取本地 MIDI 文件的功能,并使用模组内置的乐器声音进行播放。
所有 MIDI 文件均存储在 mods/minefantasia/midi 文件夹中:
点击展开
?minefantasia
└──?midi
MIDI 文件的后缀必须为 .mid。模组支持 format0 和 format1 类型 MIDI 文件的单轨及多轨同时播放,以及 format2 类型 MIDI 文件的单轨播放。
MIDI 播放盒及其界面
在模组中,MIDI 文件的播放是通过模组的方块实体实现的:MIDI 播放盒(MIDI Playbox)。其界面如下所示:

MIDI Playbox 界面包含三个选择区域,从左到右依次为:
Instruments
此区域默认显示模组中的所有乐器。在此区域中,您可以选择用于播放曲目的模组乐器。此区域一次只能选择一个乐器。
MIDI Files
此区域会自动读取存储在 mods/minefantasia/midi 文件夹中的所有 MIDI 文件的名称并显示它们。在此区域中,您可以选择要播放的 MIDI 文件。选择后,模组会自动解析该 MIDI 文件,并按顺序在 Tracks 区域中显示该 MIDI 文件的所有音轨。此区域一次只能选择一个 MIDI 文件。
Tracks
当您选择了一个 MIDI 文件后,此区域会读取所选的 MIDI 文件并按顺序显示其中的所有音轨。在此区域中,您可以一次性选择多个音轨。
每个区域下方都有由左右箭头指示的翻页按钮。每个区域默认显示的信息条目数量为 5 条。
此外,MIDI Playbox 界面还有三个按钮,从左到右依次为:
Confirm
此按钮专门用于设置红石信号触发前的信息,例如设置演奏乐器和演奏音轨。如果在未播放时点击,则不会播放所选音轨。要开始播放,可以使用红石信号触发。如果在播放过程中点击,系统将检查如乐器选择等选项是否已更改。如果已更改,它将停止播放并立即以新配置开始播放。
Play
此按钮用于在选择演奏乐器和音轨后立即播放所选音轨。
请注意:如果您在未选择任何乐器或音轨的情况下点击 Play,MIDI Playbox 会将相关信息设置为空。
Stop
此按钮用于立即停止当前的 MIDI Playbox 播放,并清除之前的播放信息(如演奏乐器和音轨)。如果不点击此按钮,在 MIDI 序列正常播放完毕后,这些信息不会丢失。点击此按钮后,您需要重新配置 MIDI Playbox。
界面左上角还有两个按钮,从上到下依次为:
Network Sync Play Button
当此按钮激活时,它会变为绿色,并将当前正在播放的 MIDI 文件同步播放给服务器上的所有玩家。此同步功能在每个客户端上独立运行。这意味着即使其他玩家没有您正在播放的 MIDI 文件,他们仍然可以听到音乐。此按钮可以在播放过程中的任何时候进行调整。
Release Control Button
此按钮默认为红色,表示当前的 Playbox 实体正由您占用。点击此按钮将释放您对 Playbox 实体的所有权,播放界面将关闭,其他玩家随后可以右键打开界面并使用 Playbox。
MIDI Playbox 控制
MIDI Playbox 支持红石控制。像普通方块一样,它可以传输红石信号,但它本身不是一个红石组件。
MIDI Playbox 接收红石脉冲信号。接收到一个脉冲信号后,它的播放状态将切换一次。
在多人游戏中,单个 MIDI Playbox 在整个服务器上共享单个实体。为了避免不同客户端之间的使用冲突,MIDI Playbox 实现了玩家绑定。首次放置后,它会自动绑定第一个打开播放界面的玩家。在该玩家主动释放它之前,或者该方块被破坏并替换之前,服务器上的其他玩家无法右键打开播放界面,但他们仍然可以通过红石控制 Playbox 的播放状态。
自定义声源资源包
如果您不喜欢模组中特定乐器的默认声源,并且具备获取声源的手段和能力(例如自行采样乐器),您可以自行替换相关资源包中的声源文件。
模组的声源使用 Ogg 格式。Ogg 文件的要求(如音符时长、音符命名格式等)已在上面的 Note Configuration 部分详细说明,此处不再赘述。
安装
模组提供两种安装版本:完整版和精简版。
完整版:包含模组的所有资源文件。资源文件不可替换。文件大小较大,适合不想折腾的玩家。
精简版:不包含模组的乐器声音文件。您需要手动加载指定的资源包才能演奏乐器。模组文件大小非常小,适合希望自定义客户端乐器声音的服务器或玩家。注意:如果您没有按照模组的资源格式添加相应乐器的资源包,演奏乐器或同步其他玩家的 MIDI Playbox 音符时,不会产生相应的乐器声音。
完整版和精简版都不会影响多人游戏功能。
从版本 0.0.9-beta 开始,模组中的所有乐器声音均已替换为采用 CC0 许可的真实乐器声源或使用 MIT 许可的 FluidR3_GM 乐器采样,且模组的完整版现已正式可供下载。
- 从 GeckoLib 的 GitHub 仓库、Modrinth 等处下载对应版本的 GeckoLib-NeoForge,并将下载的 jar 文件放入你的
mods 文件夹中。
- 从右侧的 Releases(发布)页面或 Modrinth 等处下载本模组的最新版本,并将下载的 jar 文件放入你的
mods 文件夹中。
- 如果你下载的是 lite(精简)版本,可以前往 Modrinth 下载相关的资源包。
版权声明
Copyright © 2026 Seikai-Takenawa。本模组 (MineFantasia) 保留所有权利。
允许的行为:
- 模组的功能性行为,例如:模型替换、动画替换、通过编辑资源包修改模组内的乐器音源等。
- 你可以录制模组游戏内容并在社交媒体上分享。
- 你可以将本模组的副本分享给朋友,仅限个人非商业用途。
- 你可以在你的 Minecraft 客户端或非商业服务器上使用本模组。
禁止的行为:
- 禁止对超出上述允许范围的任何内容进行修改、反向工程、反编译或创建本模组的衍生作品。
- 禁止在任何其他网站或平台上公开分发或重新上传本模组。
- 禁止将本模组用于任何商业目的(包括但不限于出售、作为付费整合包/服务器的一部分等)。
- 任何未明确列为允许的行为。
常见问题解答
Q1. 如何获取乐器?
A1. 目前,乐器无法通过合成或合成配方获得。在非创造模式下,模组的钢琴会自然生成在模组结构 Concert Hall(音乐厅)的中心,并且是不可破坏的。其他乐器只能在 Concert Hall 后台区域的箱子中随机获得。
Q2. 在多人游戏中,我听不到其他玩家演奏乐器。
A2. 在多人游戏中,乐器演奏系统仅将演奏信息同步给与演奏者处于同一区块的玩家。
Q3. 第一人称视角下我能穿墙看到方块内部。
A3. 模组重构了第一人称视角的摄像机跟随系统。摄像机现在始终位于玩家模型头部的 cameraAnchor 处。因此,当玩家紧贴着前方的方块向下看时,摄像机的位置可能会最终落在玩家的碰撞箱之外,导致透视问题。此外,建模师错误配置头部 cameraAnchor 骨骼的 pivot(轴心点)也可能导致摄像机坐标超出玩家的碰撞箱。目前对此问题没有完美的解决方案。建议设计更小的替换玩家模型头部,并调整头部和 cameraAnchor 骨骼的 pivot 到合适的位置,以避免移动时头部超出玩家的碰撞箱。
Q4. 在某些视角下,玩家手上显示的某些物品的大小、角度等看起来很奇怪。
A4. 替换整个原版玩家模型系统意味着原版的物品渲染逻辑不再适用于替换后的 GeckoLib 模型。此问题正在适配和改进中。
Q5. 为什么小提琴没有弓?
A5. 给小提琴添加弓会影响小提琴的使用和演奏逻辑,也会使演奏时的模型动画变得更加复杂。我个人的艺术能力有限,真的不知道该如何处理这部分。(其实另一个原因是偷懒。总之,大家暂时把它当作普通乐器看待吧﹙ˊ_>ˋ﹚)
Q6. MIDI Playbox(MIDI 播放盒)的速度不正确/卡顿/加速。
A6. 由于模组使用 Minecraft 内置的 tick 系统进行计时,其准确性会受到服务器/客户端 tick 率波动的影响。
Q7. 会支持旧版本吗?未来会有 Forge/Fabric 版本吗?
A7. 由于个人开发精力有限,目前没有 Forge/Fabric 版本的计划。模组使用 GeckoLib 5,因此最低支持版本为 1.21.5。
Q8. 我可以获取源代码来向模组中添加自定义乐器和功能吗?
A8. 模组目前不开源,感谢您的理解!如果你需要使用自己的乐器音源,可以下载模组的 lite(精简)版本并通过资源包进行替换,或者使用模组内提供的通用乐器。
致玩家
亲爱的朋友们,
经过八个月的工作,MineFantasia 的第一个正式版本终于来了。虽然在许多细节上仍显不足,但这已是我凭借当前技能和努力所能呈现的最佳状态。
老实说,这个版本与我最初的设想仍有很大差距。有很多想法我曾希望带入这个世界——但生活的节奏和工作最终迫使我做出了选择。在完成通用乐器系统并将模组迁移至两个较新版本(26.1.2 和 26.2)后,我决定将 1.0.0 版本标记为这段旅程的终点——随之而来的是模组将进入一段沉寂期,暂时不再有更新。
自 0.0.8-beta 版本发布以来,本模组并未吸引大量玩家、活跃社区或海量的反馈浪潮。我也未曾主动推广它。但我庆幸自己坚持到了今天。我所面临的挑战以及想法实现时的喜悦,将成为我开发过程中最珍贵的记忆。
也许有一天,当我拥有更多时间和更高的技能时,我会带着 2.0.0 版本回归,逐一实现那些未竟的梦想。
但此刻,请允许我轻轻道别。
期待再次相见。
MineFantasia

Introduction
Welcome to MineFantasia! This is a music mod for Minecraft.
The mod covers multiple versions from 1.21.5 to 26.2, offering a variety of instruments including piano, synthesizer, strings, and woodwinds. Simply right-click the corresponding instrument, and you can start playing using your keyboard or mouse in the newly opened interface.
In addition to instruments, the mod also provides a multiplayer ensemble system. This means you can perform a magnificent instrumental ensemble with your friends.
Instrument Performance System
The mod adds an instrument performance system to Minecraft, and based on this, adds a wide variety of instruments. This is the core functionality of the mod.
Instrument Performance Interface
When a player holds an instrument in their main hand or right-clicks on a placed instrument, the instrument performance interface will open:

Performance Area: Contains 21 blocks, from top to bottom, left to right. Each block corresponds to the keyboard keys Q-U, A-J, Z-M, with the name of the corresponding note displayed in the middle of the block.
Settings Area: Contains 5 function buttons, three in the lower-left corner and two in the lower-right corner.
Lower-Left Corner of the Interface:
There are 3 buttons, from top to bottom: Raise Button, Current Center Octave Number/Number of Raised Semitones, Lower Button.
When the middle button shows no + or - sign, it displays the Current Center Octave Number. When it shows + or -, it displays the Number of Raised Semitones. The records for both are independent but interact with each other. Within a single performance session, they only record their respective data separately but will not reset upon switching.
When you click the Raise/Lower Button while in Center Octave Number mode, all 21 notes in the Performance Area will be raised/lowered by one octave (12 semitones). When in Number of Raised Semitones mode, clicking the Raise/Lower Button will raise/lower all 21 notes by one semi-tone. All changes will be displayed in the performance area blocks.
Note: In Center Octave Number mode, the pitch raise/lower range will not exceed/go below the instrument's recorded highest/lowest octave number. In Number of Raised Semitones mode, to ensure coverage of all notes, the upper and lower limits are expanded by one octave group.
These three buttons are bound to the arrow keys on the keyboard. Up is Raise Button, Down is Lower Button, Right switches from Current Center Octave Number to Number of Raised Semitones, Left switches from Number of Raised Semitones to Current Center Octave Number.
Lower-Right Corner of the Interface:
There are 2 buttons, from top to bottom: Hide Performance Blocks Button (featuring an eye icon) and Settings Button (featuring a gear icon).
Clicking the Hide Performance Blocks Button will hide the 21 blocks in the Performance Area and the Settings Button, making the performance interface background fully transparent. Clicking again will restore them.
Clicking the Settings Button enters Note Edit Mode. You can select a block whose note name needs changing via keyboard or mouse, enter the new note name in the input field below, and press Enter to complete the modification.
Note Configuration
Due to limitations of the vanilla Minecraft registration system, the naming rule for note names is: Octave Group Number (octave position) + Note Name.
The Octave Group Number refers to the numbering used in FL Studio's piano roll. Note names are all lowercase letters, with s preceding the note name to represent # (sharp). For example: 5c, 6sc. The mod does not introduce flat notes.
The mod divides notes into Staccato and Sustained notes. Currently, Staccato instruments include: Piano, Kalimba, Harp. Sustained instruments include: all Synthesizers, Violin, Flute.
The playing principle for Staccato instruments is: when a note is clicked, the corresponding sound plays once. If you long-press a note in the performance interface, the corresponding note will repeat rapidly. Furthermore, if you replace the piano sound source using a resource pack, please ensure that the length of each individual piano sound does not exceed the original sound source's length. Otherwise, it may cause disastrous consequences!
For Sustained instruments: The maximum duration a single note can be played is determined by the length of the sound source file. The mod's default sustained sounds can last up to 8 seconds (the length of 4 measures at 120 BPM in FL Studio).
File System
After you run the mod for the first time and enter a world, the mod will generate its dedicated folder inside your mods folder.
Its file structure is:
Click to expand
?`minefantasia`
├── ?`midi`
├── ?`ins`
│ └── ?`custom_synth`
│ └── ?`example.json`
├── ?`model`
│ └── ?`player.geo.json`
├── ?`animation`
│ └── ?`player.animation.json`
├── ?`texture`
│ └── ?️`player.png`
└── ?`uuid.json`
Here, the midi folder stores all your MIDI files (unrelated to model replacement), the ins folder stores the JSON information files for child instruments of all General Instruments, the model folder stores all your GeckoLib model files key.geo.json, the animation folder stores all your GeckoLib model animation files key.animation.json, and the texture folder stores all your GeckoLib model textures key.png.
Except for the midi and ins folders, a default JSON file with player as the key will be generated in each directory. You should not remove or replace them.
Custom General Instruments
Starting from version 0.0.9-beta, the mod will gradually add General Instrument versions for various instruments.
General Instruments allow players to add different timbres of the same instrument type themselves. Their performance interface is largely consistent with the built-in instruments, only adding a child instrument switching module above the performance area.
General Instruments operate on the model of Mod reads basic info and completes registration + Player imports sound source resource pack. Information related to registration is placed in the mod folder: mods/minefantasia/ins, subdivided by each general instrument within this folder.
Their file structure is:
Click to expand
?`minefantasia`
└── ?`ins`
├── ?`General Instrument 1`
│ ├── ?`Sub Instrument 1.json`
│ ├── ?`Sub Instrument 2.json`
│ └── ...
├── ?`General Instrument 2`
│ ├── ?`Sub Instrument 1.json`
│ ├── ?`Sub Instrument 2.json`
│ └── ...
└── ...
The naming of the child instrument's JSON file must not conflict with existing mod instruments. For example, for the General Synthesizer, if there is a child instrument named sunshine, its JSON file should be named sunshine.json and placed in the ins/custom_synth folder.
The information contained is as follows:
Click to expand
?`subIns.json`<br>
├── ?️`name` field: The name of the child instrument, used for internal game identification.
├── ?️`minOctave` field: The lowest octave of the child instrument, should be greater than 0.
├── ?️`maxOctave` field: The highest octave of the child instrument, should be less than 10.
└── ?️`fadeDuration` field: Only valid for sustained instruments, defines the time from when a key is released until the sound completely fades out.
General instruments currently added are as follows:
Click to expand
?-General Synthesizer
?-General Banjo
?-General Bass
?-General Drum Kit
?-General Flute
?-General Guitar
?-General Harp
?-General Kalimba
?-General Violin
To facilitate players adding resources for General Instruments, the mod tool MFPackager has been launched on GitHub. This tool can automatically package resources in a specified path into a resource pack recognizable by the mod and automatically generate the registration JSON files for child instruments.
Custom Player Model
To make the mod's instrument performance system more vivid and to adapte instrument performance animations, the mod adds an animation system based on GeckoLib 5, and based on the latest GeckoLib 5, replaces the vanilla Minecraft player model for all perspectives. While you are playing an instrument, the model will also perform corresponding playing actions.
The mod also redesigns a camera following system for the first-person perspective. Although the performance of this system still needs improvement during rapid left/right view movement and in very few specific states, in most cases, this system achieves a true player first-person perspective and maintains good operation.
Model replacement is supported, but YSM models or models from other mods are not supported in this mod. You should use GeckoLib models.
The model, animation, texture folders and uuid.json under the mod folder are related to custom player models.
The uuid.json file is a file named after the player's UUID, generated only when the player enters the world. Its content contains four key record fields:
Click to expand
?uuid.json
├── ?️key field: The keyword for the model used by the player, used for registration, tagging, and binding the corresponding player model ID within the mod code. Different players can use the same key.
├── ?️model field: The absolute path to the custom GeckoLib player model file. The .geo.json suffix is not required.
├── ?️texture field: The absolute path to the custom player GeckoLib model texture, requires the full file name.
└── ?️animation field: The absolute path to the custom GeckoLib player model animation file. The .animation.json suffix is not required.
To facilitate internal model registration and differentiation within the mod, all model file names and bones need your model's key as a prefix, e.g., key.geo.json, key.head, etc.
The mod does not have strictly specific regulations or restrictions on the number of model bones or their structure, but please ensure your custom GeckoLib model contains the following important bones as required:
Click to expand
?key.geo.json
├── ?key.head bone: This bone is used internally by the mod to calculate the camera's coordinates and offset in first-person view; it also positions the model's head and allows it to rotate with the camera.
├── ?key.cameraAnchor bone: This bone must only contain a locator, and the locator's name must be cameraAnchor. Its parent is recommended to be the model's root bone (key.root) or the head bone (key.head). This bone is used by the mod to calculate the camera's coordinates and offset in first-person view.
├── ?key.rightHandItem bone: This bone must only contain a locator, and the locator's name must be rightHandItem. Its parent must be the corresponding hand bone to allow the item to move with the animation. This bone is used internally by the mod to calculate the rendering position and offset of the player's right hand (main hand) item in all views.
└── ?key.leftHandItem bone: This bone must only contain a locator, and the locator's name must be leftHandItem. Its parent must be the corresponding hand bone to allow the item to move with the animation. This bone is used internally by the mod to calculate the rendering position and offset of the player's left hand (offhand) item in all views.
The mod uses the pivot of the above 4 bones for coordinate calculations, please ensure their pivot values are correct.
For other bones besides these 4, their child bones, and element names within bones, the mod does not have strict restrictions.
Please note that the mod's current player model replacement system does not automatically synchronize the models being used by individual players in multiplayer, and still requires manual adjustment of the content in uuid.json to change the model. This means if you want to show your model to others, you need to send all JSON files of your model to them and ask them to manually modify your corresponding uuid.json on their device.
Custom Model Animations
The mod supports custom player model animations. Since all animation names are hardcoded in the mod's code, your custom model animation names must be the same as the animation names hardcoded in the mod.
Currently supported animations and their naming requirements are as follows:
Click to expand
?key.animation.json
├── ?key.walk: Animation played when the player model is walking.
├── ?key.idle: Animation played when the player model is idle.
├── ?key.crouch: Animation played when the player model is crouching.
├── ?key.swim: Animation played when the player model is swimming. Held items are not displayed when this animation plays. Since vanilla Minecraft changes the player's collision box size to 0.6x0.6x0.6 in this situation, to allow the player model's head to rotate normally and correctly apply camera coordinates, when creating this animation, after completing the overall model animation, move the entire model (key.root) within BlockBench's Animation tab to align the pivot of the head bone key.head to coordinates [0, 6.4, 0], and ensure the key.root bone has no Rotation offset.
├── ?key.fly: Animation played when the player model is flying with an elytra. Held items are not displayed when this animation plays. Since vanilla Minecraft changes the player's collision box size to 0.6x0.6x0.6 in this situation, to allow the player model's head to rotate normally and correctly apply camera coordinates, when creating this animation, after completing the overall model animation, move the entire model (key.root) within BlockBench's Animation tab to align the pivot of the head bone key.head to coordinates [0, 6.4, 0], and ensure the key.root bone has no Rotation offset.
├── ?key.piano: Overall animation played when the player model is performing on the piano, such as posture changes.
├── ?key.kalimba: Overall animation played when the player model is performing on the kalimba, such as posture changes.
├── ?key.harp: Overall animation played when the player model is performing on the harp, such as posture changes.
├── ?key.violin: Overall animation played when the player model is performing on the violin, such as posture changes.
├── ?key.synth: Overall animation played when the player model is performing on all types of synthesizers, such as posture changes.
├── ?key.banjo: Overall animation played when the player model is performing on the banjo, such as posture changes.
├── ?key.drumKit: Overall animation played when the player model is performing on the drum kit, such as posture changes.
├── ?key.bass: Overall animation played when the player model is performing on the bass, such as posture changes.
├── ?key.guitar: Overall animation played when the player model is performing on the guitar, such as posture changes.
├── ?key.pianoPlay: Instant animation triggered when a note is pressed while performing on the piano with the performance interface open, such as hand movements.
├── ?key.kalimbaPlay: Instant animation triggered when a note is pressed while performing on the kalimba with the performance interface open, such as hand movements.
├── ?key.harpPlay: Instant animation triggered when a note is pressed while performing on the harp with the performance interface open, such as hand movements.
├── ?key.violinPlay: Instant animation triggered when a note is pressed while performing on the violin with the performance interface open, such as hand movements.
├── ?key.synthPlay: Instant animation triggered when a note is pressed while performing on the synthesizer with the performance interface open, such as hand movements.
├── ?key.banjoPlay: Instant animation triggered when a note is pressed while performing on the banjo with the performance interface open, such as hand movements.
├── ?key.drumKitPlay: Instant animation triggered when a note is pressed while performing on the drum kit with the performance interface open, such as hand movements.
├── ?key.bassPlay: Instant animation triggered when a note is pressed while performing on the bass with the performance interface open, such as hand movements.
└── ?key.guitarPlay: Instant animation triggered when a note is pressed while performing on the guitar with the performance interface open, such as hand movements.
Additional note regarding the reason why the Rotation offset of the key.root bone cannot be modified for the key.swim and key.fly animations: In practice, if a rotational offset based on the model's root bone is added, GeckoLib's rotational calculations for the player's head bone following the camera perspective may deviate or even fail. The exact reason is currently unclear, so for now, we can only avoid directly modifying the root bone's rotational offset during animation production.
Due to limited personal artistic ability, the default model does not have performance animations for certain instruments, and thus hasn't been thoroughly tested and verified. However, the mod still retains the calls for these animations. You can use the animation names mentioned above in your custom model to add replacement animations for performing the corresponding instruments. If any issues arise, you can post an issue on this mod's GitHub repository issues page.
MIDI System
The mod implements reading local MIDI files and can play them using the mod's internal instrument sounds.
All MIDI files are stored in the mods/minefantasia/midi folder:
Click to expand
?minefantasia
└──?midi
The suffix for MIDI files must be .mid. The mod supports single-track and multi-track simultaneous playback for format0 and format1 MIDI files, and single-track playback for format2 MIDI files.
MIDI Playbox and its Interface
In the mod, MIDI file playback is achieved through the mod's block entity: the MIDI Playbox. Its interface is shown below:

The MIDI Playbox interface has three selection sections, from left to right:
Instruments
This section will display all instruments from the mod by default. In this section, you can select the mod instrument to be used for playing the track. Only one instrument can be selected at a time in this section.
MIDI Files
This section automatically reads the names of all MIDI files stored in your mods/minefantasia/midi folder and displays them. In this section, you can select the MIDI file to be played. After selection, the mod automatically parses the MIDI file and displays all tracks of the MIDI file in the Tracks section in sequence. Only one MIDI file can be selected at a time in this section.
Tracks
After you select a MIDI file, this section reads the selected MIDI file and displays all tracks within it in sequence. In this section, you can select multiple tracks at once.
Below each section, there are page-turning buttons indicated by left and right arrows. The default number of information entries displayed per section is 5.
Additionally, the MIDI Playbox interface has three buttons, from left to right:
Confirm
This button is specifically used for setting information before redstone signal triggering, such as setting the performance instrument and performance tracks. If clicked while not playing, it will not play the selected tracks. To play, you can use a redstone signal trigger. If clicked while playing, the system will check if options like the instrument selection have changed. If they have, it will stop playback and immediately start playing with the new configuration.
Play
This button is used to immediately play the selected tracks after selecting the performance instrument and tracks.
Please note: If you click Play without selecting any instrument or track, the MIDI Playbox will set the relevant information to empty.
Stop
This button is used to immediately stop the current MIDI Playbox playback and clear previous playback information such as the performance instrument and tracks. If you do not click this button, the information will not be lost after the MIDI sequence finishes playing normally. After clicking this button, you need to reconfigure the MIDI Playbox.
There are also two buttons in the upper-left corner of the interface, from top to bottom:
Network Sync Play Button
When this button is activated, it turns green and will play the currently playing MIDI file to all players on the server. This sync function is independent on each client. This means that even if other players do not have the MIDI file you are playing, they can still hear the music. This button can be adjusted at any time during playback.
Release Control Button
This button is red by default, indicating that the current Playbox entity is occupied by you. Clicking this button releases your ownership of the Playbox entity, the playback interface will close, and other players can then right-click to open the interface and use the Playbox.
MIDI Playbox Control
The MIDI Playbox supports redstone control. Like normal blocks, it can transmit redstone signals, but it is not a redstone component itself.
The MIDI Playbox receives redstone pulse signals. Upon receiving one pulse signal, it will toggle its playback state once.
A single MIDI Playbox shares a single entity for the entire server in multiplayer mode. To avoid usage conflicts between different clients, the MIDI Playbox implements player binding. After being placed for the first time, it automatically binds the player who first opens the playback interface. Before this player actively releases it or the block is broken and replaced, other players on the server cannot right-click to open the playback interface, but they can still control the Playbox's playback state via redstone.
Custom Sound Source Resource Pack
If you don't like the default sound source of a particular instrument in the mod, and you have the means and ability to obtain sound sources (e.g., sampling instruments yourself), you can replace the sound source files in the relevant resource pack yourself.
The mod's sound sources use the Ogg format. The requirements for Ogg files (such as note duration, note naming format, etc.) have been detailed in the Note Configuration section above and will not be repeated here.
Installation
The mod provides two installation versions: Full version and Lite version.
Full version: Contains all resource files for the mod. Resource files cannot be replaced. The file size is larger, suitable for players who don't want to tinker.
Lite version: Does not contain the mod's instrument sound files. You need to manually load the specified resource pack to play instruments. The mod file size is very small, suitable for servers or players who want a customized client instrument sound. Note: If you do not add the resource pack for the corresponding instrument according to the mod's resource format, playing the instrument or syncing MIDI Playbox notes from other players will not produce the corresponding instrument sound.
Both the full and lite versions will not affect multiplayer functionality.
Starting from version 0.0.9-beta, all instrument sounds in the mod have been replaced with authentic instrument sound sources from the CC0 license or instrument samples from FluidR3_GM using the MIT license, and the full version of the mod is officially available for download.
- Download the corresponding version of GeckoLib-NeoForge from GeckoLib's GitHub repository, Modrinth, etc., and place the downloaded jar file into your
mods folder.
- Download the latest version of this mod from the Releases section on the right or from Modrinth, etc., and place the downloaded jar file into your
mods folder.
- If you downloaded the lite version, you can go to Modrinth to download the relevant resource pack.
Copyright Notice
Copyright © 2026 Seikai-Takenawa. All Rights Reserved for this mod (MineFantasia).
Permitted actions:
- Functional behaviors of the mod, such as: model replacement, animation replacement, modifying instrument sound sources in the mod by editing resource packs, etc.
- You may record mod gameplay content and share it on social media.
- You may share copies of this mod with your friends for personal, non-commercial use only.
- You may use this mod on your Minecraft client or non-commercial servers.
Prohibited actions:
- Any modification beyond those permitted above, reverse engineering, decompiling, or creating derivative works of this mod is prohibited.
- Publicly distributing or re-uploading this mod on any other website or platform is prohibited.
- Using this mod for any commercial purpose (including but not limited to selling, as part of a paid modpack/server, etc.) is prohibited.
- Any actions not explicitly stated as permitted.
Frequently Asked Questions
Q1. How do I obtain instruments?
A1. Currently, instruments cannot be crafted or obtained via crafting recipes. In non-creative mode, the mod's piano naturally generates at the center of the mod's structure Concert Hall and is indestructible. Other instruments can only be obtained randomly from chests in the backstage area of the Concert Hall.
Q2. In multiplayer, I can't hear other players playing instruments.
A2. In multiplayer, the instrument performance system only syncs performance information to players who are in the same chunk as the player playing the instrument.
Q3. I can see through blocks in first-person view.
A3. The mod has restructured the camera following system for the first-person view. The camera is now always positioned at the cameraAnchor of the player model's head. Therefore, when a player looks down while standing very close to a block in front of them, the camera position may end up outside the player's collision box, leading to x-ray vision issues. Additionally, incorrect configuration of the cameraAnchor bone's pivot by the modeler can also cause the camera coordinates to exceed the player's collision box. Currently, there's no perfect solution for this issue. It is recommended to design the replacement player model's head smaller and adjust the pivot of the head and cameraAnchor bones to suitable positions to avoid the head exceeding the player's collision box during movement.
Q4. The size, angle, etc., of certain items displayed on the player's hand look strange in various views.
A4. Replacing the entire vanilla player model system means the vanilla item rendering logic no longer applies to the replaced GeckoLib model. This issue is being adapted and improved.
Q5. Why doesn't the violin have a bow?
A5. Adding a bow to the violin would affect the usage and performance logic of the violin, and also make the model's animation while playing the violin more complex. My personal artistic ability is limited, and I really don't know how to handle this part. (Actually, another reason is laziness. Anyway, everyone can just treat it as a regular instrument for now﹙ˊ_>ˋ﹚)
Q6. The MIDI Playbox speed is incorrect/stuttering/speeding up.
A6. Because the mod uses Minecraft's built-in tick system for timing, its accuracy is affected by fluctuations in the server/client's tick rate.
Q7. Will older versions be supported? Will there be Forge/Fabric versions in the future?
A7. Due to limited personal development effort, there are currently no plans for Forge/Fabric versions. The mod uses GeckoLib 5, so the minimum supported version is 1.21.5.
Q8. Can I get the source code to add custom instruments and features to the mod?
A8. The mod is not open-source at this time, we appreciate your understanding! If you need to use your own instrument sound sources, you can download the lite version of the mod and replace them via resource packs, or use the general instruments provided within the mod.
To the Players
Dear friends,
After eight months of work, the first official version of MineFantasia is finally here. Though it still falls short in many details, this is the best I can offer with my current skills and effort.
To be honest, this version is still far from what I originally envisioned. There are so many ideas I wanted to bring into this world—but the pace of life and work ultimately forced me to make choices. After completing the general instrument system and migrating the mod to the two newer versions (26.1.2 and 26.2), I decided to mark version 1.0.0 as the conclusion of this journey—and with it, the mod will enter a period of quiet, with no further updates for now.
Since the release of version 0.0.8-beta, this mod hasn't attracted a large player base, a bustling community, or an overwhelming wave of feedback. I also didn't actively promote it. But I'm glad I've kept going until today. The challenges I faced and the joy I felt when ideas came to life will remain my most treasured memories from this development process.
Perhaps someday, when I have more time and greater skills, I will return with version 2.0.0 and bring to life all those unrealized dreams—one by one.
But for now, please allow me to bid a gentle farewell.
Until we meet again.
评论 0
登录后参与评分
还没有评论,来抢沙发吧