zabi94 / ExtraAlchemy

Extra Alchemy: a Minecraft mod that expands on potions
Other
38 stars 16 forks source link

Add a new line to the tooltip #106

Closed gralp-1 closed 3 years ago

gralp-1 commented 3 years ago

As described in my issue #105 I think this will fix it but I'm not certain.

zabi94 commented 3 years ago

I doubt this will actually work. As described in the issue, tooltips are not this straightforward

gralp-1 commented 3 years ago

I doubt this will actually work. As described in the issue, tooltips are not this straightforward

I can try it out now to save the effort

zabi94 commented 3 years ago

That would be ideal, I just don't have the time lately

gralp-1 commented 3 years ago

when I run it from the source code the item isn't there anymore. That is to say that the item with that tooltip.

zabi94 commented 3 years ago

change zabi.minecraft.extraalchemy.items.PotionRingItem.java, line 60 to if (true) { to force that error to appear on every ring for testing

gralp-1 commented 3 years ago

I've been poking around at it for a while and I can't make it work, I just get this image or some combination depending on the newline character. I also tried different things like TranslatableText.

zabi94 commented 3 years ago

Yeah, as I said in #105 tooltips break lines by splitting the tooltip into different objects, one per line, not with '\r'. '\n' or a combination of the two.