MineMention
MineMention is a mention mod for the chat so you can specify who should get your messages better.
MineMention allows you to mention people or groups in chat. Whenever your message contains at least one mention, it will not be displayed to all users but only to the ones you mentioned. But you can mention multiple people.
whenever you type an @ you'll get autocompletion for your mentions:
MineMention has four builtin Groups you can mention but other mods can easily add more:
- @everyone mentions every player on the server.
- @here mentions every player in the same dimension.
- @near mentions every player within a 100 block distance.
@team (Only when FTB Teams is installed) mentions every player from your FTB TeamSupport dropped as I have not yet figured out how to use their new API
You can also click on mentions or the sender name of a message in the chat to write a reply:
Now you might think: when I write private messages with another payer I don't want to type @PlayerName all the time.
Luckily you can run the command /d PlayerName to change your default mentions (those are applied if you don't provide a mention explicitly)
To change the default mentions run /d with a list of mentions as arguments that should be your new default mentions (but without the preceding @ character)
Run /d without arguments to reset it to @everyone
You can also see your current default mentions right over your chat:
Whenever multiple mods register the same special mention (seems to happen a lot with @team), none of them will be available by default. You can however change that in the config. There's a map called `mentions` where you can specify what special mention should be what. The key is always the name of the special mention and the value is an id of what the mentions does. You can rediret all mentions except `@everyone`. If you redirect a mention to `minemention:none`, you can remove it.
Example:
{
"mentions": {
"here": "minemention:none",
"near": "minemention:none",
"close": "minemention:near"
}
}
This would remove `@here` and rename `@near` to `@close`.
The ids of the builtin mentions are `minemention:everyone`, `minemention:here`, `minemention:near`, `minemention:ftb` and `minemention:none`.
Love the idea, planning to use it 👍 Would it be difficult to make this work for target selectors as well? (the ones that apply to players of course)
I don't want to support target selectors as they are really powerful, difficult to understand for players that don't know them (so they would have no clue, who got a message if hovering over the sender name to see who it was sent to) and they make it possible to select players from their inventory contents, experience and whatever, which is data that a regular player should not have access to.
However, if you have a concrete target selector, you need, maybe I can add that one.
In reply to noeppinoeppi:
Ah, that's true, I hadn't considered the fact you can use NBT in that scenario, not to mention plenty of other things players shouldn't be using this for. No worries there, we're probably better off without that.
I have another question, are these mention tags usable in commands? As a generic example, if I've got a command block that does the following...
execute as @p at @s run say @near I'm at the command block, and you can see this if you're within 100 blocks of it!
Is it possible for this to work? Or, perhaps by using tellraw instead?
I realize there are other ways with such a command to accomplish this, namely through target selectors and their options, I was just curious if this could be used as a quicker shorthand for all that.
Using mention tags in commands is out of scope for this mod, sorry
In reply to noeppinoeppi:
Understood. Thanks!
Hey, I wanted to ask if the "@everyone" etc. can show up as a prefix and if that would be changeable to "All" or something like that ^^
Love this mod ^^
is this client-side ?
No it is required on the server as well.
Could you make a fabric version?
No
Hey, I have an issue. The mod crashes when I try to open minecraft
Failure message:
Minemention (minemention) has failed to load correctlyFailure message: Minemention (minemention) has failed to load correctly java.lang.NoClassDefFoundError: com/feed_the_beast/mods/ftbteams/event/TeamDeletedEvent
Hello! I just wanted to thank you for the very cool mod and to let you know I included it in my latest Mods Of The Week video.
could you add pings for a spesific username for exsample @username <message> because i dont want to always change my default messages when i want to talk to someone spesific.... otherwise a fantastic mod
As you can see in picture 1 you already can mention specific users just by @username.
In reply to noeppinoeppi:
oh, then @boodlyneck made a mistake in his video or didnt mention it, sorry for any inconvience!
Can this mod work server-side only?
No
looks great! does a sound play when you get mentionned?
and is it compatible with FTB Ranks?
No there's no sound because you'd get a sound whenever you receive a chat message (because you only receive chat messages, you're mentioned in, even if it's @everyone). However I might add this in the future If I can find a good solution for this. It is currently not compatible with FTB ranks. However support for FTB teams is planned.
In reply to noeppinoeppi:
then maybe add sound for mentions except @everyone?