First-person Model (Forge/Fabric)

First-person Model (Forge/Fabric)

4M Downloads

Tooltips need line breaks

FewerFlaws opened this issue ยท 5 comments

commented

Read the tooltip first? How the heck do I do that? What might get me banned?! =P

2021-01-06_02 13 33

commented

Yea Minecraft does not take linebreaks in translation keys, and cloth config does not accept multiple translation keys for multiline. I'm fully aware that this string is too large and I'm not sure how to fix it ๐Ÿ˜…

commented

I think it's like this, but I can't test it:

{
    "text.firstperson.option.cosmetic.modifyCameraHeight.@Tooltip[0]": "Changes the first person camera height",
    "text.firstperson.option.cosmetic.modifyCameraHeight.@Tooltip[1]": "to the player size. This will cause issues",
    "text.firstperson.option.cosmetic.modifyCameraHeight.@Tooltip[2]": "with anticheats and might get you banned!",
    "text.firstperson.option.cosmetic.modifyCameraHeight.@Tooltip[3]": "Do not use on 3rd party servers!",
    "text.firstperson.option.cosmetic.modifyCameraHeight.@Tooltip[4]": "(Sneak once to update the height)"
}
commented

Tried it, doesn't seem to work.

commented

Sorry for duplicating this in #74. Maybe it's a dumb idea but what about two or three tooltips one under the other? Or is this what was tried above?

commented

In any case, here is a function in Bedrockify that wraps lines. Perhaps a bit more investigation there will reveal the answer.

And here is another example of a mod implementing the pattern I mentioned above. I'm guessing autoconfig has a linewrapping function and this is how you interact with it. The example I posted previously probably had its own wrapping going on.