跳到正文

Corpse, GraveStone & Tombstone x Curios & Accessories Compat

作者:Vitral

Graves put your rings, necklaces and cosmetic armor back in their exact Curios, Accessories and Cosmetic Armor slots. Per-slot keep/drop rules. Server-side logic.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

Corpse, GraveStone & Tombstone x Curios & Accessories: your items go back into their exact slots after you die

You die wearing two rings, a necklace, a cape and a cosmetic hat. You get your grave back, and everything lands in
your main inventory. Now you get to put each one back by hand, and guess which ring went in which slot.

This mod puts every item straight back into the slot it came from: ring 1 to ring 1, ring 2 to
ring 2, cosmetic hat to the cosmetic hat slot. It works for Accessories, Curios and Cosmetic Armor Reworked, with
Corpse, GraveStone, Corail Tombstone and Simple Tomb. One mod, no extra libraries.

Works with

Grave mod Accessories Curios Cosmetic Armor Reworked
Corpse Yes Yes (if Corpse x Curios API Compat is installed, we leave Curios to it) Yes (if Corpse x Cosmetic Armor Reworked Compat is installed, we leave it to that mod)
GraveStone Yes Yes (if Gravestone x Curios API Compat is installed, we leave Curios to it) Yes
Corail Tombstone Yes, even with a full inventory Yes, even with a full inventory Tombstone keeps cosmetic armor itself (its own option, on by default)
Simple Tomb Yes Yes Yes
No grave mod The death rules below still apply (keep, drop or destroy per slot)

Minecraft 1.20.1 (Forge) and 1.21.1 (NeoForge). Every mod in the table is optional: install the ones your pack uses.

Choose what happens to each slot on death

A server config lets you choose, per slot type and per item:

  • GRAVE (default): into the body or grave, back to its slot when you recover it.
  • KEEP: stays on you through death and respawn.
  • DROP: dropped on the ground where you died, never into the grave.
  • DESTROY: deleted.

Items tagged c:soulbound or forge:soulbound are kept by default.

[death]
    slotRules = ["necklace=KEEP", "charm=DROP", "*=GRAVE"]
    itemRules = ["minecraft:elytra=KEEP", "#c:soulbound=KEEP", "#forge:soulbound=KEEP"]

An item rule beats a slot rule. Slot names are the ones Accessories and Curios use (ring,
necklace, back, …); Cosmetic Armor Reworked uses cosmetic_head,
cosmetic_chest, cosmetic_legs and cosmetic_feet. The file is
gravesaccessories-server.toml (in world/serverconfig/ on 1.20.1, in config/ on
1.21.1).

Safe by design

  • An item is never deleted or copied. If its slot is taken, the slot no longer exists, the item is not allowed there
    any more, or it belongs to another player, it stays in your inventory as a normal item.
  • Inventory full? Tombstone graves go straight into the slots; items that GraveStone or Simple Tomb drop on the
    ground jump into their slots when you pick them up; Corpse keeps them in the body until you make room.
  • keepInventory and the slot mods’ own rules (soulbound, Curse of Vanishing, slots that keep their items) are
    respected.
  • Already using a Curios or cosmetic armor compat for your grave mod? We detect it and never handle the same items
    twice.
  • No mixins: only the public events of each mod.
  • All the logic runs on the server: install it on the server, or in your single-player game.

For modpack makers

Feel free to include it in your modpack. MIT licensed.

Credits

Accessories by Blodhgarm, chyzman and Dr.Zeal (wisp-forest). Curios by TheIllusiveC4. Cosmetic Armor Reworked by
lainmod. Corpse and GraveStone by henkelmax. Corail Tombstone by Corail31. Simple Tomb by Lothrazar. This mod is an
independent add-on and is not affiliated with any of them.

常见问题

Corpse, GraveStone & Tombstone x Curios & Accessories Compat 支持哪些 Minecraft 版本?

Corpse, GraveStone & Tombstone x Curios & Accessories Compat 支持 Minecraft Java 版 1.20.1–1.21.1,共 2 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Corpse, GraveStone & Tombstone x Curios & Accessories Compat 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

Vitral 的其他作品

查看全部 →