Could someone make a small mod that has a toggle on or off keybind, where it shows your current display name? Would be for whenever someone types "/nick" or "/renick", and their display name changes, it would be an easier way to see what your nick was changed to faster. At the moment you have to open chat again, and hover over the message to see the nick, which is annoying if you're constantly re-rolling nicks to get a non obvious one.
#Mod for Hoplite
167 messages · Page 1 of 1 (latest)
fabric 1.21 btw
I've tried making this with github copilot but that is NOT working 😂
Unfortunately I can't help so I'm sorry if you got excited when you saw a ping. I just wanted to say that I enjoy your content.
❤️
Maybe something like this could work?
Ofc some of the features aren't needed
nah that's not what I want, I want a mod that shows your nametag on your screen like how the scoreboard is shown, where you can edit where you want to put it on your screen, and it just says "Playername"
just simple
not anything crazy
Hey, I think I have a solution. Jákob, the developer of Custom HUD, a 1.21 Fabric mod, has told me that you can add {display_name} to the HUD anywhere and that it likely will change with /nick depending on how the server implemented it
{display_name}```
For example
You can also offset it as well
If you are interested in using the mod, you can let me know where you would want it to be and I can try to make the .txt for that
I want it to be it's own hud though
like
separate from coords
and togglesprint
and stuff like that
and toggleable via keybind
It is it's own HUD
o shit
Custom HUD can be used for whatever you want
okay bet I'ma try that
I already have a hud editor that I like for my coords, so I wouldn't want it to change that
so hopefully I can turn that part of that mod off
If you want I can screenshare and show you how insanely customizable it is
It's not like other mods
I'm good I can figure it out 😂
So there's three profiles, each one opens a notepad document. You can remove or add anything you want to it. https://customhud.dev/
CustomHUD is a highly configurable variable-based text (and icon) HUD!
There is also extensive documentation if you want to see what else it can do
There's one template it comes with that you can just remove
tried it, doesn't work with nicknamed
nicknames
It just shows iVeggie
no matter what my nickname is
I want it to show what current nick it is
Then the way Hoplite does nicknames would need to be figured out. Otherwise no mod can be made to do this
Jákob asked which name shows up in the player list, "because that's how the client knows about players on the server"
I mean can't the mod just check for what name it shows in tab?
or it could check for what name shows up if you hover over the most recent message
cuz it gives you a hoverable message when you get a new nickname that will show you what your new nickname is
Does the nickname show up in the tab list?
gotcha
it also shows if you hover over the most recent nickname message in chat
when you hover over it, it shows what your new nickname it
could also possibly fetch that
Progress
Gn, sleep well
bump
I think I have something somewhere I'm not sure if it hides all instances of your name but it does in the chat and tablist so I gotta check
Wait I may of read this wrong
I don't understand what is wanted here
He wants a HUD display of his Hoplite nickname that is able to be disabled via a keybind and also moved around his HUD so he can place it wherever. Because of the way Hoplite does nicks, it is required for the mod to read chat hovering to find the nick to display. As he said in the post, the two commands are /nick and /renick.
So he wants to drag his nick around the hud and toggle it so it shows his mc user?
Yeah
Hmmmm
I suggested Custom HUD but it didn't change with his nick because of how Hoplite does it
Nicks reset when rejoining the server right?
I would assume so
So then have a value that stores the nicked user name and update it's value so that when he wants it can be toggled?
Where does custom hud come to play here?
Custom HUD has {display_name} as an element you can use, so I suggested it to see if it would work
Ahhh
But it did not recognize the nickname
Ohhh
I want a mod that adds a hud that shows my current display name, so when I type “/nick” is updates in realtime to change to my new name, same with with I type “/renick”
Hmmm
That should be doable
Since you are just mixing into the chat and check for a chat message 🤷🏾♂️
What name tag are we talking about, the one above your head or in the chat?
It already nicks over your head?
On the server when you type /nick, it changed your name to a randomly generated nickname, and if you type /renick you can keep rerolling it
It changes your name in tab, and about your head
And in chat
Do they want you to know who is who
If you have this /nice is that not the whole point to hide who u are?
Noooo what I want is a client side hud that shows you what your new nickname is
Or what your current nickname is
Whenever you nick or renick, you have to open chat, and hover over the chat message to see what your nickname is, this mod would make it so you don’t have to do that, you can just keep “t + up arrow + enter” spamming to keep re-rolling nicknames until you find one you like
It would save a lot of time
ah
So to get this right, you want a mod that automatedly writes /renick in to the chat every time you do "t + up arrow + enter" and that would display the re rolling name on screen somehow?
Its not that hard, but i don't have any intrestest in doing it
T up arrow enter is just opening chat, going to the last sent message, and sending it again
So just spamming /renick
And no that’s not what I want
I just want the display
I can type /renick myself
Would you be able to do it?
So a hud that shows your nick in the tablist, over your head an in chat
That I have a mod for but I need to tweak it so that it gets the chat message
Not sure if that's doable how I would do it
Things he wants:
- Read when /nick or /renick is sent in chat
- Read the hover output of the message that appears in chat after these commands are typed
- Display that hover output on the HUD
- Be able to move the location of this HUD element
- Be able to use a keybind to disable this HUD element so it doesn't show all the time
@tight summit Let me know if I'm missing anything or any clarification is needed
either read the chat message, or just know what the nickname is, intead of just putting my actual ign there
but what Shadow said is correct
would that be easy to do? The hover output doesn't only show what the name is, is shows what the skin name is as well, but that part isn't important to show
/nick and /renick <name> ?
Otherwise we could make a command that sends that command in turn and still has the name
Might be easier
no, it's just "/nick" and "/renick"
they both just choose a random nickname for you
and it shows what the random nickname that was chosen for you as a hoverable message
wdym
also, it changes your name in chat, tab, and over your head
so if you can fetch it from any of those and have it be easier then that works
Ahh but the I need a mod to figure out the player name
Or what's rendered over the head
Since I don't think I have nick on hoplite it's gonna be a matter of trial and error
Whichever way that shows the nickname correctly, and is easiest for you works for me
I am trialing and erroring
Oh sick okay
i am kind of stuck and have no idea what to do...
Are you getting the hover text or trying to get from tab? Hover text would probably be easier.
hover text
pain
Any update?
@burnt shadow maybe listen for the player info update packet, check if the UUID from the packet matches with the client's and update the hud
same for update teams packet for the prefixes and suffixes
I could try too
That sounds very complicated. Also, if the UUID matches, then shouldn't unmasking nicks be possible? Why not listen for the chat event, read the chat message, and just store it. It could be a bit of a pain to manage the state, but I don't think it'd be that bad.
I've made something, but I can't test it cuz I dont have permission to run /nick lol
@tight summit could you test if it works
is this kinda what u want?
okay yours is way better
sorry to steal ur thunder lol
That’s exactly what I want actually
And yeah I’ll try it for you
If you want me to lmao
Also I’m guessing the chat hover and nick thing is for a demonstration?
And it’s not going to send its own hover message for each nick?
Cuz the server already nicks you
And gives you the hover message
maybe u can use my who am I mod that shows ur label when ur in 3d perspective (f5)
idk if it’ll show ur custom nick
it's fine the mod Ownwn made works
After all of this lol. At least you got something working though
Wdym closing