Soulbound
一款 Minecraft 模组,添加了灵魂绑定(Soulbound)附魔,使物品在死亡后得以保留,并在玩家重生时自动返回。
功能特性
- 灵魂绑定附魔:将此附魔应用于任意物品,防止其在死亡时掉落
- 物品自动返还:重生时,灵魂绑定物品会自动恢复至其原始的物品栏槽位
- 智能物品栏管理:如果目标槽位已被占用,模组会尝试将物品放入可用槽位或将其丢弃在玩家附近
工作原理
当你持有灵魂绑定附魔物品死亡时:
- 模组会保存所有灵魂绑定物品及其在物品栏中的位置
- 从你的物品栏中移除这些物品以防止重复获取
- 重生后,物品会被返还至其原始槽位
- 如果槽位被占用,物品将被放入可用槽位或在附近掉落
安装方法
- 确保已安装 Fabric Loader
- 下载最新版本
- 将模组 JAR 文件放入
.minecraft/mods 文件夹
- 使用 Fabric 配置文件启动 Minecraft
依赖项
- Minecraft (Fabric)
- Fabric API
- Java 21
技术细节
本模组使用 Mixin 注入游戏的玩家死亡与重生机制,确保灵魂绑定物品得到正确处理,且不干扰其他游戏系统。
许可证
本项目根据 LICENSE.txt 中规定的条款授权。
开发信息
基于 Fabric Mod Development Kit 并使用 Gradle 构建。
从源码构建
./gradlew build
编译后的模组将位于 build/libs/ 目录下。
作者
Finley of the Woods
致谢
特别感谢 Fabric 社区提供的支持与资源。
Soulbound
A Minecraft mod that adds a Soulbound enchantment, allowing items to persist through death and automatically return to the player upon respawning.
Features
- Soulbound Enchantment: Apply this enchantment to any item to prevent it from being dropped on death
- Automatic Item Return: Soulbound items are automatically restored to their original inventory slots when you respawn
- Smart Inventory Management: If a slot is occupied, the mod will attempt to place items in available slots or drop them near the player
How It Works
When you die with Soulbound-enchanted items:
- The mod saves all Soulbound items and their inventory positions
- Items are removed from your inventory to prevent duplication
- Upon respawning, items are returned to their original slots
- If slots are occupied, items are placed in available slots or dropped nearby
Installation
- Ensure you have Fabric Loader installed
- Download the latest release
- Place the mod JAR file in your
.minecraft/mods folder
- Launch Minecraft with the Fabric profile
Requirements
- Minecraft (Fabric)
- Fabric API
- Java 21
Technical Details
This mod uses Mixin to inject into the game's player death and respawn mechanics, ensuring Soulbound items are handled properly without interfering with other game systems.
Licence
This project is licenced under the terms specified in LICENSE.txt.
Development
Built using Fabric Mod Development Kit with Gradle.
Building from Source
./gradlew build
The compiled mod will be available in build/libs/.
Author
Finley of the Woods
Acknowledgements
Special thanks to the Fabric community for their support and resources.
评论 0
登录后参与评分
还没有评论,来抢沙发吧