#Title reader

21 messages · Page 1 of 1 (latest)

fossil stag
#

Can you write a mod that will every tick try to get and send to the chat user a string value from the Title that was displayed to him with the /title command? I need source code on fabric 1.20.4 🙂

misty obsidian
#

What do you mean by "title"?

fossil stag
exotic sundial
#

I think he means the title that appears when running /title @p title “”.

exotic sundial
#

That

exotic sundial
#

And you want it to send you a chat message of that title’s string… Cool (I am not a dev :[ ).

#

@dapper pulsar, could you develop @fossil stag’s request?

dapper pulsar
#

i could, but it would make more sense just to intercept when the title is set and display it in chat then

fossil stag
#

I don't know how it works, if it's a simpler solution, I'm both hands in favor of it

dapper pulsar
#

whats the actual need? just having it show up in chat as well as the title?

fossil stag
dapper pulsar
#

oh, is the bar for the minigame just being sent as a title?

fossil stag
#

I think so, because it looks a lot like this.

dapper pulsar
#

do you know how to write a mixin?

fossil stag
#

No, only as a use, and that's weak.

dapper pulsar
#

alr, i'll throw together an example project that has an event so you can just copy over the event and mixin

dapper pulsar
# fossil stag thx

https://github.com/Linguardium/TitleEventExample

mixin is in src/client/java/mod/linguardium/titleeventexample/mixin/client/
event class is in src/client/java/mod/linguardium/titleeventexample/TitleMessageEvents.java
example usage is in src/client/java/mod/linguardium/titleeventexample/TitleEventExampleClient.java