跳到正文

Fabric Death Messages

a fabric mod that let's you customize various death messages for your server

收藏

介绍

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

Fabric Death Messages

Note: this mod is server side only and won’t work on clients

A Fabric mod that executes and sends configurable commands and messages respectively on certain events triggered by a player, such as Dying, Joining a server, Killing another player, etc.

The config file is located in the config directory (config/player_events.json) and looks like this:

{
  "death": {
    "no_entity": [
      [
        "cactus",
        "${player} was pricked to death"
      ],
      [
        "drown"
      ],
      [
        "fall"
      ],
      [
        "flyIntoWall"
      ],
      [
        "hotFloor"
      ],
      [
        "inFire"
      ],
      [
        "inWall"
      ],
      [
        "indirectMagic"
      ],
      [
        "lava"
      ],
      [
        "lightningBolt"
      ],
      [
        "onFire"
      ],
      [
        "outOfWorld"
      ],
      [
        "starve"
      ],
      [
        "wither"
      ]
    ],
    "yes_entity": [
      [
        "entity.minecraft.bee",
        "${player} was stung to death"
      ],
      [
        "entity.minecraft.blaze"
      ],
      [
        "entity.minecraft.cave_spider"
      ],
      [
        "entity.minecraft.creeper"
      ],
      [
        "entity.minecraft.dolphin"
      ],
      [
        "entity.minecraft.drowned"
      ],
      [
        "entity.minecraft.elder_guardian"
      ],
      [
        "entity.minecraft.ender_dragon"
      ],
      [
        "entity.minecraft.enderman"
      ],
      [
        "entity.minecraft.endermite"
      ],
      [
        "entity.minecraft.ghast"
      ],
      [
        "entity.minecraft.guardian"
      ],
      [
        "entity.minecraft.hoglin"
      ],
      [
        "entity.minecraft.husk"
      ],
      [
        "entity.minecraft.illusioner"
      ],
      [
        "entity.minecraft.iron_golem"
      ],
      [
        "entity.minecraft.llama"
      ],
      [
        "entity.minecraft.panda"
      ],
      [
        "entity.minecraft.phantom"
      ],
      [
        "entity.minecraft.piglin"
      ],
      [
        "entity.minecraft.piglin_brute"
      ],
      [
        "entity.minecraft.pillager"
      ],
      [
        "entity.minecraft.polar_bear"
      ],
      [
        "entity.minecraft.pufferfish"
      ],
      [
        "entity.minecraft.ravager"
      ],
      [
        "entity.minecraft.shulker"
      ],
      [
        "entity.minecraft.silverfish"
      ],
      [
        "entity.minecraft.skeleton"
      ],
      [
        "entity.minecraft.slime"
      ],
      [
        "entity.minecraft.spider"
      ],
      [
        "entity.minecraft.stray"
      ],
      [
        "entity.minecraft.tnt"
      ],
      [
        "entity.minecraft.vex"
      ],
      [
        "entity.minecraft.vindicator"
      ],
      [
        "entity.minecraft.witch"
      ],
      [
        "entity.minecraft.wither"
      ],
      [
        "entity.minecraft.wither_skeleton"
      ],
      [
        "entity.minecraft.wolf"
      ],
      [
        "entity.minecraft.zoglin"
      ],
      [
        "entity.minecraft.zombie"
      ],
      [
        "entity.minecraft.zombie_villager"
      ],
      [
        "entity.minecraft.zombified_piglin"
      ]
    ],
    "broadcast_to_everyone": true
  },
  "join": {
    "actions": [
      "Welcome ${player}",
      "/say Hello ${player}"
    ],
    "broadcast_to_everyone": true
  },
  "kill_entity": {
    "actions": [
      "${player} killed ${killedEntity}"
    ],
    "broadcast_to_everyone": true
  },
  "kill_player": {
    "actions": [
      "${player} killed ${killedPlayer}",
      "F ${killedPlayer}"
    ],
    "broadcast_to_everyone": true
  },
  "leave": {
    "actions": [
      "Goodbye ${player}!",
      "/say Hope to see you soon ${player}"
    ],
    "broadcast_to_everyone": true
  }
}

For death you have sample keys to use, if no message is given as second argument then it is considered disabled and the default death message will be displayed.

There are probably some yesEntity or noEntity sources that were omitted, feel free to add them to your config file and everything should work.

For every other field in actions you can define multiple commands, death is the only exception.

Formatting

0 is black
1 is dark blue
2 is dark green
3 is dark aqua
4 is dark red
5 is dark purple
6 is gold
7 is gray
8 is dark gray
9 is blue
a is green
b is aqua
c is red
d is light purple
e is yellow
f is white
----------------------------------------------------
k is obfuscated
l is bold
m is strikethrough
n is underline
o is italic

常见问题

Fabric Death Messages 支持哪些 Minecraft 版本?

Fabric Death Messages 支持 Minecraft Java 版 1.16.5,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Fabric Death Messages 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

catpissbonghits 的其他作品

查看全部 →