#Mod that allows you to resize titles and move their display space so they're less intrusive

126 messages · Page 1 of 1 (latest)

foggy ginkgo
#

I play on an RP server that has titles show up when you enter towns and nations, and it made me realize how obnoxious title displays are. I'd rather have titles display in a smaller area (resized to fit, of course) at the top of the screen, but I can't seem to find any mod that would allow me to do that.

If there's anyone willing to make a mod like that for 1.20.4, I'd be super appreciative!

foggy ginkgo
#

bump

orchid vergeBOT
#

Missing arguments, 0/1 present

placid verge
foggy ginkgo
#

Second bump, since traveller's titles is not what i'm looking for. I've made a little diagram to illustrate what I'd like.

All I want is to be able to move titles and subtitles from where they normally render — the black box — to the orange box. This should be done such that scaling is applied to the text in the orange box so that it does not move out-of-bounds, but stays within the bounds of the orange box.

dusty crystal
#

If you can get someone to do it for you, then what they need to do is change how the InGameHud#renderTitleAndSubtitle method works. With a mixin. I tried, but it didn't work. For whatever reason the game cannot find the mixin. I'm going to ask why out of curiosity.

dusty crystal
#

So you mean something like this?

#

Or like this?

summer root
dusty crystal
summer root
#

nice, cheers - rip the actions, will you be uploading it to modrinth or curseforge, or am i just best off building it?

dusty crystal
summer root
#

Is it possible for it to be compatible with any 1.20 version

dusty crystal
foggy ginkgo
#

this is what i get for not paying attention to discord for one day, lol! thanks for doing this!

#

also, the documentation is superb!

foggy ginkgo
summer root
#

I think you need to change the depended java version next to the minecraft version in the same file

foggy ginkgo
#

oh my god

#

im stupid lol

summer root
#

about to test a build now, i could be missing something

#

I have exactly 1 working mod under my belt lmao

foggy ginkgo
#

well, that didn't work.

summer root
#

we'll get there

foggy ginkgo
#

i don't know shit about this. i barely know how to do sorts in java XD

summer root
#

just changed the version is the gradle properties too, can send it over if it builds okay

#

still missing something that needs to be set back to java 17

foggy ginkgo
#

build.gradle specifically uses version 21.

#

dunno if i'm looking at this right lol

summer root
#

I had another mod that built fine using 21 for 1.20.4 - error in the minecraft log says it was in the mixins file, just changed that and will try the new build

foggy ginkgo
#

i see

summer root
#

My understanding is that is can be built using newer versions, but it still needs the older version in runtime

#

i have no idea what im talking about

foggy ginkgo
#

truly godlike programmer-sense

#

with both of us together, we could remake google in a day lmao

summer root
#

this is stress

#

nah i cant do it

foggy ginkgo
#

im just gonna ask the kind folks in mod dev about this lol

dusty crystal
#

To compile with Java 21, leave everything as is, except for changing the version to take any of the 1.20 versions.

  1. Install JDK 21 https://adoptium.net/temurin/releases/?version=21
  2. Install JDK 17 (to compile for older versions of Minecraft) https://adoptium.net/temurin/releases/?version=17
  3. Install IntelliJ Community Edition https://www.jetbrains.com.cn/en-us/idea/download/other.html
  4. Double click the build.gradle file if when you installed intellij intellithonk you choose to associate .gradle files. If not, just open IntelliJ and open the folder with the project. It should start importing.
  5. You might get errors regarding the used JDK. Regardless of the errors, click on Gradle tab on the top right
#
  1. On the tab that opens, click on Gradle Settings...
#
  1. Choose the JDK from that drop down (17 or 21). If it's not showing, you can click on Add JDK... and browse on your computer for the location of the JDK. It's usually in Program Files. But depending on the distribution of JDK that you installed, the place is different.
#
  1. Click OK after choosing the JDK.
  2. Still in the Gradle tab, refresh the gradle.
#
  1. Open the fabric.mod.json file and edit it to change the game version you want to compile it for and the Java version to use (must be the same one chosen in step 7. Either 17 or 21)
#
  1. Open the Gradle tab again, and double click on build at Tasks > build > build to build the jar for the mod
#
  1. The jar will be found on the root of the project (root folder) at build\libs with name smallertitles-1.0.0.jar. That is the mod.
#

If it doesn't work, feel free to ask. I honestly wish I could build it for you, but again, GitHub Actions is being such a dimwit and has decided to make things overly complicated and I cannot get it to compile in GitHub.

foggy ginkgo
dusty crystal
#

Cause you would also need to change the yarn mappings version accordingly.

foggy ginkgo
#

what about yarn mappings

#

that seems to be labled "1.20.6+built.1"

dusty crystal
# foggy ginkgo what about yarn mappings

That file then you would change it to

minecraft_version=1.20.4
yarn_mappings=1.20.4+build.3
loader_version=0.15.10

fabric_version=0.97.0+1.20.4

It should work then

foggy ginkgo
#

should i just go through and change every "21" to a "17"?

dusty crystal
dusty crystal
# foggy ginkgo

So 1.20 needs to be Java 21. Change that one to Java 21 in the dropdown.

foggy ginkgo
#

file extension might need to be changed for you, since you're on windows. my bad.

dusty crystal
#

However, I'm not sure how to do it on that launcher. Do you know how to change the launcher to use Java 21?

foggy ginkgo
#

that's why i had so many issues trying to downgrade it. because it uses 17

#

this is what happens when i try to run 1.20.4 with java 21:

#

wait

#

is 21 compatible?

#

seems like it's some mumbo jumbo

#

nope

#

never mind

#

1.20.4 doesn't work with java 21 at all

lucid cloak
#

you can force disable the java compatibility check per instance

foggy ginkgo
#

still threw some errors

#

oh

#

what

#

seems like it was the mod

#

my bad

#

should've tested that

lucid cloak
#

that's a mixin error

foggy ginkgo
#

ya

lucid cloak
#

mixins targets are likely to change between versions

#

you need to manually fix those

foggy ginkgo
#

Where is the mixin info, then?

lucid cloak
#

it's in the code

foggy ginkgo
#

passive-agressive, but okay. i'll find it myself. just wanted to learn to fish instead of be given the fish, if you catch my drift.

#

i'm not super aware of the structure fabric uses, is all...

lucid cloak
#

i'm under the assumption that you're at least somewhat aware what mixins are

foggy ginkgo
#

here, i'll go to a different chat

#

thanks for the help, though

#

much appreciated!

dusty crystal
#

Wow, the changes from 1.20.4 to 1.20.6 are huge concern What the heck mojank ? I was changing it so that you could just download the project and compile it, but the changes in the InGameHud class are huge concern

#

@foggy ginkgo Here, this version https://github.com/Levoment/SmallerTitles/archive/refs/heads/1.20.4.zip is for 1.20.4. You should be able to compile it by just changing the gradle settings to be Java 17 in the IntelliJ Gradle settings. It is hardcoded to work only with 1.20.4 because there were huge changes from 1.20.4 to 1.20.6. I am baffled as to why there was so many changes in just 2 lesser versions concern

summer root
#

this is still giving errors for JAVA_21

#

Also I'm building using Github Actions - I know you hae a custom build script, but swapping to the one provided by the Fabric Mod template has always worked for me

#

just need to play around with the config

#

Thank you so much @dusty crystal

dusty crystal
summer root
#

Yeah fully working as far as I can tell

summer root
#

looks like there's a slight mistake when reading the subtitle config, but works perfectly otherwise

#

thanks again @dusty crystal, this is great on the SMP server I'm on that is heavy on titles

dusty crystal
#

Oh, I didn't notice, you are right there. That one is supposed to be subtitle instead of title.

drowsy axle
#

¯_(ツ)_/¯

foggy ginkgo
#

cool, thanks, @dusty crystal!

dusty crystal
#

You're welcome, although that Title Tweaks mod in modrinth was not made by me though.

foggy ginkgo
#

oh

#

well, your mod was still very helpful!

#

also, that mod isn't what I needed lol

#

it just fixes the scaling for titles

foggy ginkgo
#

if not, i'll just insert the correct variables myself, since it seems like aqua has everything else sey up correctly

summer root
#

Yeah fixed on my fork - newest action artificat works perfectly

dusty crystal
#

Nice. I could not get GitHub Actions to upload it to a release.