mojira.dev
MC-116921

source_entity advancement trigger condition exists twice

The bug

It looks like the source_entity advancement trigger condition exists twice:

"conditions": {
    "damage": {
        "source_entity": { },
        "type": {
            "source_entity": { }
        }
    }
}

Attachments

Comments 2

Is this still a issue in the latest version of the game(currently 1.13.1)?

If so, please add it to the affected versions, thanks!

This is still an issue as of 1.21.11, this can be confirmed via datapacks:

[media]

How to Reproduce

  • /summon skeleton ~ ~ ~3

  • Let it attack you, test A + B will trigger

  • /advancement revoke @s everything

  • Get blown up by a creeper, test D triggers, C does not


Clarification

If Test C never triggers under any circumstance, it proves both source_entity fields check the same entity, making the condition impossible (nothing can be both a skeleton and a creeper simultaneously). That's the definitive proof the fields are duplicated and redundant.

marcono1234

(Unassigned)

Confirmed

Data Packs

advancement, condition, damage, entity, trigger

Minecraft 17w17b, 1.21.11, 26.1 Snapshot 11

Retrieved