
一款轻量级的数据驱动模组,为实体添加视觉残影轨迹!你可以配置哪些实体拥有残影、它们的外观以及出现时机——所有这些均可通过资源包完全自定义。
特性
- 数据驱动: 残影的各个方面(持续时间、颜色、触发条件)均通过 JSON 文件控制。
- 模组兼容: 内置支持 Combat Roll,并可根据请求在未来支持其他模组。
全局配置
本模组使用 Cloth Config 进行全局设置。你可以通过 Mod Menu(在 Fabric 上)或配置的快捷键访问配置菜单。
| 选项 | 默认值 | 描述 |
|---|---|---|
| 步长 (Step Size) | 0.25 |
控制残影轨迹的密度。较低的值(例如 0.1)会创建更平滑、连续的轨迹,但可能会影响性能。较高的值会创建明显的“快照”效果。 |
实体配置
要为实体添加残影,请在你的资源包中创建以下路径的 JSON 文件:
assets/<namespace>/afterimages/entities/<entity_name>.json
示例:标准箭矢轨迹
assets/example/afterimages/entities/arrow.json
{
"entity": "minecraft:arrow",
"speed_threshold": 0.5,
"duration": 5,
"color": "0xFFFFFF",
"start_alpha": 0.6
}
示例:仅战斗翻滚
assets/example/afterimages/entities/player.json
{
"entity": "minecraft:player",
"combat_roll_only": true,
"duration": 15,
"start_alpha": 0.8
}
配置字段说明
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
entity |
String | 文件名 | 实体 ID(例如 minecraft:ender_pearl)。如果省略,模组会尝试根据 JSON 文件名进行推测。 |
speed_threshold |
Double | 0.5 |
触发效果所需的最小速度(方块/刻)。如果 combat_roll_only 为 true,则忽略此值。 |
duration |
Integer | 10 |
残影轨迹持续的刻度数。 |
color |
Hex String | "0xFFFFFF" |
用于给残影着色的十六进制颜色代码。 |
start_alpha |
Float | 0.5 |
残影初次出现时的不透明度(0.0 到 1.0)。 |
overlay_only |
Boolean | false |
如果为 true,残影将 仅 渲染覆盖层(例如皮肤外层、盔甲闪烁效果)。适用于幽灵般的效果。 |
combat_roll_only |
Boolean | false |
如果为 true,残影将 仅 在实体执行战斗翻滚时出现(需要安装 Combat Roll 模组)。 |
模组集成
Combat Roll
Afterimages 原生支持 Combat Roll 模组。
- 用法: 在你的玩家配置文件中设置
"combat_roll_only": true,使轨迹仅在翻滚闪避期间出现。
许可证
本项目采用 MIT License 许可。
贡献
欢迎贡献!如果你发现错误或有任何功能请求,请提交 Issue 或 Pull Request。

A lightweight, data-driven mod that adds visual afterimage trails to entities! You can configure which entities have afterimages, how they look, and when they appear—entirely through Resource Packs.
Features
- Data-Driven: Every aspect of the afterimage (duration, color, triggers) is controlled via JSON files.
- Mod Compatible: Built-in support for Combat Roll and other mods in the future, upon request.
Global Configuration
This mod uses Cloth Config for global settings. You can access the config menu via Mod Menu (on Fabric) or the configured keybind.
| Option | Default | Description |
|---|---|---|
| Step Size | 0.25 |
Controls the density of the afterimage trail. Lower values (e.g. 0.1) create smoother, connected trails but may impact performance. Higher values create distinct "snapshots". |
Entity Configuration
To add an afterimage to an entity, create a JSON file in your resource pack at:
assets/<namespace>/afterimages/entities/<entity_name>.json
Example: Standard Arrow Trail
assets/example/afterimages/entities/arrow.json
{
"entity": "minecraft:arrow",
"speed_threshold": 0.5,
"duration": 5,
"color": "0xFFFFFF",
"start_alpha": 0.6
}
Example: Combat Roll Exclusive
assets/example/afterimages/entities/player.json
{
"entity": "minecraft:player",
"combat_roll_only": true,
"duration": 15,
"start_alpha": 0.8
}
Configuration Fields
| Field | Type | Default | Description |
|---|---|---|---|
entity |
String | Filename | The entity ID (e.g. minecraft:ender_pearl). If omitted, the mod tries to guess based on the JSON filename. |
speed_threshold |
Double | 0.5 |
The minimum speed (blocks/tick) required to trigger the effect. Ignored if combat_roll_only is true. |
duration |
Integer | 10 |
How long the afterimage trail lasts in ticks. |
color |
Hex String | "0xFFFFFF" |
A hex color code to tint the afterimage. |
start_alpha |
Float | 0.5 |
The opacity of the afterimage when it first appears (0.0 to 1.0). |
overlay_only |
Boolean | false |
If true, the afterimage will render only the overlay layer (e.g., skin outer layer, armor glint). Useful for ghost-like effects. |
combat_roll_only |
Boolean | false |
If true, afterimages will only appear when the entity is performing a Combat Roll (requires the Combat Roll mod). |
Mod Integration
Combat Roll
Afterimages has native support for the Combat Roll mod.
- Usage: Set
"combat_roll_only": truein your player configuration file to make trails appear exclusively during a roll dodge.
License
This project is licensed under the MIT License.
Contributing
Contributions are welcome! If you find a bug or have a feature request, please open an issue or submit a pull request.
下载 Afterimages
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Afterimages
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Afterimages
下载 Afterimages
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Afterimages
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Afterimages
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Afterimages
下载 Afterimages
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Afterimages
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Afterimages
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
修复
- 修复了专用服务器崩溃的问题。
新增
- 添加了残影效果,使任何实体在移动时产生残影轨迹。需要服务器端安装该模组(即使未安装,客户端单独使用也依然有效)。
- 添加了残影药水(尴尬药水 + 末影珍珠,红石可延长持续时间),包括喷溅型、滞留型以及涂抹箭版本。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
模组
基于 GTCEu 1.12.2 的现代 GregTech
模组
添加睡袋和吊床,分别用于便携性和昼夜转换,同时不会设置新的出生点。共有16种颜色可选!
模组
为你的终界增添新生物群系、神秘仪式和全新生物
评论 0
登录后参与评分
还没有评论,来抢沙发吧