这是一个简单但高度可自定义的墓碑/死亡箱模组!
你可以按自己的喜好进行自定义,修改消息、方块和全息文本、保护时长,
以及是否在过期后掉落物品等等。
这个模组可以纯服务端运行,不过如果需要模型支持,客户端仍然需要安装模组!
这个模组仅支持 Fabric 和 Quilt!
如果你有任何问题,可以在我的 Discord 中提问

/graves - 主命令,显示玩家墓碑列表(universal_graves.list,默认可用) - 打开 GUI,显示所选玩家的墓碑列表(universalgraves.listothers`)
- 打开 GUI,显示执行者的墓碑列表,并可对其进行修改(universal_graves.modify`)
/graves reload - 重新加载配置和样式(需要 universal_graves.reload)此外,拥有 universal_graves.teleport 权限时,你可以传送到任意墓碑。
你可以在 ./config/universal-graves/config.json 中找到主配置文件。
格式化使用的是 Simplified Text,相关文档可在这里查看。
此外,每种消息类型还有一些自身的局部变量,你可以写成 ${variable}。
大多数墓碑相关消息都支持这些变量:player, protectiontime, breaktime, xp,
itemcount, position, world, deathcause, minecraftday, creationdate, since_creation,
id。
还有一些其他数据类型:
{/ PREDICATE /} - 使用 predicate 格式,这里可以查看所有支持的类型。
{/ COST /} - 用于指定花费的格式。 {
// 花费类型。支持 "free"、"creative"、"item" 和 "level"
"type": "",
// 仅用于 "item",描述物品堆栈
"input": {/* ITEMSTACK */},
// 花费数量
"count": 0
}
{/ ITEMSTACK /} - 表示一个物品。简单格式:"minecraft:skeleton_skull"
完整格式
{
"id": "minecraft:skeleton_skull",
"Count": 1,
// 可选 nbt
"tag": {}
}
{
// 配置版本。除非你想冒数据损坏的风险,否则不要修改它!
"config_version": 3,
"protection": {
// 墓碑对其他玩家的保护时间。设为 -1 表示无限。单位:秒
"non_owner_protection_time": 900,
// 墓碑自毁前的时间。设为 -1 以禁用。单位:秒
"self_destruction_time": 1800,
// 使墓碑在过期/自毁后掉落物品
"drop_items_on_expiration": true,
// 允许攻击者访问墓碑,适用于偏 PVP 的服务器。
"attackers_bypass_protection": false,
// 使墓碑使用真实时间,而不是仅在世界/服务器运行时推进。
"use_real_time": false
},
"interactions": {
// 死亡后访问墓碑的花费
"unlocking_cost": { /* COST */ },
// 启用死亡罗盘,指向玩家的墓碑。
"give_death_compass": true,
// 使点击墓碑时打开一个 UI。
"enable_click_to_open_gui": true,
// 启用快速拾取:空手潜行并点击墓碑。
"shift_and_use_quick_pickup": true,
// 允许玩家远程移除墓碑保护。
"allow_remote_protection_removal": true,
// 允许玩家远程破坏墓碑。
"allow_remote_breaking": true,
// 允许玩家远程支付解锁墓碑的花费。
"allow_remote_unlocking": false
},
"storage": {
// 选择存储多少经验。
// 可用类型:"none", "vanilla", "drop", "percent_point", "percent_level"
"experience_type": "percent_points",
// "percent_X" 类型下存储的百分比数值
"experience_percent:setting_value": 100.0,
// 允许创建仅包含 XP 的墓碑
"can_store_only_xp": false,
// 启用替代经验球实体,以防止与某些模组产生 XP 复制问题。
"alternative_experience_entity": false,
// 阻止带有这些附魔的物品被加入墓碑。
"blocked_enchantments": [
"somemod:soulbound"
]
},
"placement": {
// 每位玩家的墓碑数量上限。-1 为无限制
"player_grave_limit": -1,
// 允许墓碑替换任意方块
"replace_any_block": false,
// 以起始位置为中心,搜索空位的最大距离。
"max_distance_from_source_location": 8,
// 失败时允许偏移起始位置
"shift_location_on_failure": true,
// 允许的最大偏移次数。
"max_shift_tries": 5,
// 偏移时使用的距离。
"max_shift_distance": 40,
// 使墓碑生成在流体上方,而不是流体内部。
"generate_on_top_of_fluids": false,
// 使被破坏的墓碑恢复被替换的方块。
"restore_replaced_block": false,
// 使被玩家破坏的墓碑恢复被替换的方块。
"restore_replaced_block_after_player_breaking": true,
// 不会生成墓碑的伤害类型。
"cancel_creation_for_damage_types": {
"minecraft:fire": "... 自定义消息或留空"
},
// 阻止生成墓碑的攻击者实体类型。
"cancel_creation_for_ignored_attacker_types": {
"minecraft:player": "... 自定义消息或留空"
},
// 阻止生成墓碑的 predicates
"blocking_predicates": [{/* PREDICATE */}],
// 阻止在模组领地保护区域中生成墓碑。
"block_in_protected_area": {
"goml:claim_protection": true
},
// 阻止在整个世界中生成墓碑。
"blacklisted_worlds": [
"dungeons:world"
],
// 阻止在特定区域中生成墓碑。
"blacklisted_areas": {
"minecraft:overworld": [
{
"x1": -100,
"y1": -200,
"z1": -100,
"x2": 100,
"y2": 500,
"z2": 100,
}
]
},
// 默认的墓碑创建失败消息。
"creation_default_failure_text": "...",
// 在领地中创建墓碑失败时的消息。
"creation_claim_failure_text": "..."
},
"teleportation": {
// 传送花费
"cost": {/* COST */},
// 完成传送前所需的时间。
"required_time": 5,
// 相对墓碑位置的 Y 偏移。
"y_offset": 1.0,
// 玩家保持无敌的时间。
"invincibility_time": 2,
// 允许玩家在等待时移动。
"allow_movement_while_waiting": false,
// 发送给玩家的消息
"text": {
"timer": "...",
"timer_allow_moving": "...",
"location": "...",
"canceled": "..."
}
},
"model": {
// 默认模型文件名
"default": "default",
// 获取墓碑模型的替代方案。
"alternative": [
{
"require": {/* PREDICATE */},
"model": "model_name"
}
],
// 为 geyser 玩家启用兼容方案,使墓碑对他们显示为骷髅头。
"enable_geyser_workaround": true,
// 用作视觉/容器墓碑的基础物品。
"gravestone_item_base": "minecraft:skeleton_skull",
// 添加到该物品上的 NBT。
"gravestone_item_nbt": {}
},
"ui": {/* UI DEFINITIONS, 修改文本, */},
"text": {
// 占位符中使用的日期格式。参见 https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
"date_format": "dd.MM.yyyy, HH:mm",
// 世界名称覆盖。
"world_names": {
"custom:world": "自定义世界!"
}
}
}
> Todo: 完成此部分。
墓碑模型存储在 config/universal-graves/models/ 中。默认情况下,应该会有一个 example.json 文件,它是默认样式的副本。
如果你想覆盖默认墓碑样式,复制该文件并将其重命名为 default.json,或者改成配置中指定的其他名称,然后定义其样式。
你也可以使用不同的名称和 alternative,以实现随机/独特的模型。
友情链接: 网易我的世界 | 泰拉瑞亚 | ocent云计算 | 米饭Minecraft插件文档 | 友链合作
历史访问人数:82,864 | 历史访问人次:171,382
今日访问人数:13,510 | 今日访问人次:14,545
昨日访问人数:20,761 | 昨日访问人次:24,774
Copyright © 2019-2026 我的世界服务器列表站. All rights reserved.
❤ Powered by GermMC 京ICP备17023959号-6