mojira.dev
MC-256827

Advancement description is required, despite having specific behaviors if it contains no text

Despite advancements with empty descriptions having the specific behavior of not showing a description box in the menu, it is still a required field.

Steps to reproduce:

  • Add the following advancement:

    {
        "display": {
            "icon": {
                "item": "minecraft:flower_banner_pattern"
            },
            "title": {
                "text": "Test"
            },
            "description": {
                "text": ""
            },
            "background": "minecraft:textures/gui/advancements/backgrounds/stone.png"
        },
        "criteria": {
            "tick": {
                "trigger": "minecraft:tick"
            }
        }
    }
    {
        "display": {
            "icon": {
                "item": "minecraft:flower_banner_pattern"
            },
            "title": {
                "text": "Test"
            },
            "description": {
                "text": ""
            },
            "background": "minecraft:textures/gui/advancements/backgrounds/stone.png"
        },
        "criteria": {
            "tick": {
                "trigger": "minecraft:tick"
            }
        }
    }
  • Observe how the menu shows no description box

  • Remove the description field

  • Observe how the advancement fails to load.

Expected behavior:

Description can be left out.

Current behavior:
Description is a required field if the display object is provided.

Linked issues

Comments 1

user-f2760

(Unassigned)

Plausible

Advancements, Resource Packs, Text

1.19.2, 22w42a, 1.19.3, 1.19.4

Retrieved