mojira.dev
MC-132926

The width of an advancement's description depends on the first line

The bug

The width of the description of an advancement depends on the width of the first line, rather than the width of longest line in the description, or the width of the title of the advancement.

Example advancement

{
	"criteria": {
		"lock": {
			"trigger": "minecraft:impossible"
		},
		"breed_two_cows": {
			"conditions": {
				"parent": {
					"type": "minecraft:cow"
				},
				"partner": {
					"type": "minecraft:cow"
				}
			},
			"trigger": "minecraft:bred_animals"
		}
	},
	"display": {
		"announce_to_chat": false,
		"description": "> lock\n> breed_two_cows",
		"frame": "challenge",
		"hidden": false,
		"icon": {
			"item": "minecraft:cow_spawn_egg"
		},
		"show_toast": false,
		"title": "breed_two_cows"
	}
}

Attachments

Comments 4

Probably WAI, as normal advancements are supposed to have this function so they don't overflow, and the text box becomes too big. Once the top line is filled, the limit is set, so then the bottom text bits don't go any further than that.

It would be helpful, however, for this to be disabled if you use \n.

Can confirm, as well.

Please do not mark unreleased versions as affected.
You don't have access to them yet.

Still in 1.14.1 Release

This is fixed in 20w17a (didn't check versions before it)

AlexMCool

(Unassigned)

Confirmed

Accessibility, Advancements, Text, UI

advancement, advancement-description, width

Minecraft 1.12.2, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre8, Minecraft 1.13-pre9, ..., 20w10a, 20w11a, 20w13a, 20w13b, 20w15a

20w17a

Retrieved