▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Roleplay chat
Roleplay chat

Roleplay chat

This mod allows players to communicate in a roleplay (RP) setting with different ranges for various types of messages.

Оцените первым
2.7K
10

Roleplay Chat

This mod allows players to communicate in a roleplay (RP) setting with different ranges for various types of messages. The goal is to enhance RP immersion by limiting how far messages can be seen based on their type.

How It Works

Messages are triggered by a special character placed at the start of your message. For example, !Hello will shout "Hello" (range of 80 blocks).

When speaking in the chat, your message will NOT be visible across the entire server. If no player is within your message’s range, you won’t get a response! Check the table below to understand how the system works.

This approach is designed to foster RP and local interactions between players.

Default colors, ranges, and prefix characters match the tables below; server admins can override them in config/roleplay-chat.json (see Configuration).

TYPECOLORRANGETRIGGER CHARACTERTRIGGER COMMANDDESCRIPTION
Whisper🟪 Violet (#CC33CC)4 blocks« or " (configurable)/whisper <message>Speak quietly to someone nearby
Action🟩 Green (#3C3)25 blocks*/action <message>Describe an action you're performing (like /me)
Speak⬜️ White (#FFF)30 blocksNone/speak <message>Normal conversation
Shout🟥 Red (#C30)80 blocks!/shout <message>Shout, for example, before attacking!

Additional Commands (Optional)

These commands are for Out of Character (OOC) interactions. Use them sparingly! Thank you.

TYPECOLORRANGETRIGGER CHARACTERTRIGGER COMMANDDESCRIPTION
SupportPink (#FF99CC)Unlimited? (configurable)/support <message>Request help from staff (admins/helpers)
Private Message (PM)White (#FFFFFF)Unlimitednone/m <player> <message>Send a private message to another player
Reply to PMWhite (#FFFFFF)Unlimitednone/r <message>Reply to the last received private message
OOC ChatGray (#AEC1D5)60 blocks(/ooc <message>Chat out of character on the server
Global OOCGray (#AEC1D5)Unlimited[/globalOoc <message>Speak in a global OOC channel (requires activation)

Global OOC Chat

To speak in the global OOC chat, you first need to activate it by using the /global command. By default, it is activated. You can deactivate it with the same command, /global.

Once activated, this command allows you to communicate with all players who have also activated the global OOC chat. Keep in mind that not all players use the global chat, so you may not always get responses.

Configuration (server admins)

Per-message settings live in config/roleplay-chat.json (next to your server or client .minecraft folder). Edit the file in UTF-8 so special prefixes (e.g. «) stay valid.

On first run, if the file is missing, the mod creates it with built-in defaults. Invalid values for a block fall back to those defaults (see server log).

Each message type is a JSON object with:

FieldMeaning
radiusHearing distance in blocks. 0 means unlimited range (everyone online receives the message).
colorRGB color: either a decimal integer (e.g. 11449813 for gray-blue) or a hex string ("#AEC1D5" or "AEC1D5").
charactersList of valid prefix strings at the start of chat. The first entry is also used when a player uses the matching slash command (e.g. /shout). speak uses an empty list [] (no prefix). Other types must have at least one string.

Reload without restart: operators who pass the game’s owner-level check can run /roleplaychat reload to re-read the file. If reload fails, the previous settings stay active; check the server log.

Example (shortened; your generated file will list all types):

{
  "speak": {
    "radius": 30,
    "color": 16777215,
    "characters": []
  },
  "whisper": {
    "radius": 8,
    "color": "#CC33CC",
    "characters": ["«", "\""]
  },
  "shout": {
    "radius": 80,
    "color": 13369344,
    "characters": ["!"]
  }
}

Keys for all supported types: speak, whisper, shout, action, ooc, globalOoc, support.

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

1.21.x

Платформы

Поддерживаемые окружения

Сервер

Зависимости

Fabric APIFabric API

и ещё 1 зависимостей

Ссылки

Создатели

Детали

Лицензия:
Опубликован:1 год назад
Обновлён:4 недели назад
Главная