Smart Keep Inventory
本模组提供灵活的控制,根据玩家死亡的具体原因来决定其是否保留物品栏。
默认情况下,玩家的物品栏几乎总是会被保留,但如果被其他玩家击杀(PvP)、被下落的滴水石锥/钟乳石压死,或被方块窒息,则物品栏会丢失。其余所有情况——如掉进岩浆、溺水、普通怪物攻击、虚空等——均会保留玩家的物品栏。
功能
- ? PvP — 直接击杀和间接击杀可分别配置(例如,如果你在战斗中被点燃,随后因火焰伤害死亡,这也算作 PvP;时间窗口可配置)
- ? 锋利的滴水石锥 / 钟乳石
- ? 方块窒息
- ? 坠入虚空
- ? 火焰与岩浆
- ? 溺水
- ? 高空坠落
- ? 饥饿
- ? 爆炸
- ? 普通怪物
- ❓ 任何其他致死原因
每个选项均可根据服务器规则单独启用或禁用。
设置
通过游戏内的 Mod Menu(需要 Cloth Config API)直接打开 —— 一个带有开关的界面;更改即时生效,无需重启服务器。该模组也支持不使用 Mod Menu/Cloth Config —— 只需手动编辑 config/keepstuffmod.json 中的设置即可。
依赖项
- Fabric API(必需)
- Mod Menu(可选,用于设置界面)
- Cloth Config API(可选,用于设置界面)
版本
Minecraft 1.21.1, Fabric, Java 21
Smart Keep Inventory
This mod provides flexible control over whether the player loses their inventory upon death, depending on what exactly killed them.
By default, the player's inventory is almost always retained, but it is lost if they are killed by another player (PvP), crushed by a falling driplite/stalactite, or suffocated by blocks. Everything else—falling into lava, drowning, regular
mobs, the void, etc.—retains the player's inventory.
Features
- ? PvP — direct and indirect kills are configured separately (for example, if you were set on fire in battle and the player died from the fire a few seconds later, this also counts as PvP; the time window is configurable)
- ? Sharpened Driplite / Stalactite
- ? Suffocation in Blocks
- ? Falling into the Void
- ? Fire and Lava
- ? Drowning
- ? Falling from a Height
- ? Hunger
- ? Explosions
- ? Regular Mobs
- ❓ Any other causes of death
Each option can be enabled or disabled individually, according to your server's rules.
Settings
Opened directly in-game via the Mod Menu (requires the Cloth Config
API) – a screen with switches; changes are applied instantly, without
restarting the server. The mod also works without the Mod Menu/Cloth Config – just manually edit the settings in config/keepstuffmod.json.
Dependencies
- Fabric API (required)
- Mod Menu (optional, for the settings screen)
- Cloth Config API (optional, for the settings screen)
Version
Minecraft 1.21.1, Fabric, Java 21
评论 0
登录后参与评分
还没有评论,来抢沙发吧