Tooltips need line breaks
FewerFlaws opened this issue ยท 5 comments
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 ๐
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)"
}
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?
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.