• 浏览量:972
  • 创建日期:1年前
  • 最后编辑:1年前
  • 编辑次数:2次

历史编辑记录更多
    最近参与编辑
    可自定义的死亡消息 (KillMessage)

    定位

    Key: utility.killmessage

    运行环境需求

    仅服务器

    原文

    Adds a KillMessage NBT tag to entities and items, allowing them to show a custom death message when they kill a player. You can use placeholders to show the name of the killed entity, the name of the killing entity, or the name of the killing entity's held item, in that order. For example, "%s found a %s" would show e.g. "unascribed found a Skeleton". You could also write this as "%1$s found a %2$s" for the same result, or, say "A %2$s found %1$s" to show them in the opposite order, e.g. "A Skeleton found unascribed". The third %s or a %3$s will show the item name; if there isn't one, [Air] will be shown.

    内容

    为实体和物品添加 "KillMessage" NBT 标签,允许其在杀死玩家时显示自定义的死亡消息。玩家可以使用占位符按顺序显示被杀死实体的名称、被杀死实体的标签或被杀死实体所持有的物品的名称。

    简单解释

    例如:"%s found a %s"将显示例如“发现未命名的骨架”,玩家也可以将其写为"%1$s found a %2$s"以获得相同的结果。

    "A %2$s found %1$s"则可以以相反的顺序显示自定义的死亡消息,例如“架骨的名命未现发”。

    第三个" %s" 或 "%3$s" 将显示项目名称;如果没有,将显示 [Air]。

    短评加载中..