mojira.dev

Enzo

More than one avatar was detected! There might be multiple accounts sharing this same name.

Assigned

No issues.

Reported

MCPE-224485 Old worlds reappear corrupted, taking up space Cannot Reproduce MCPE-219618 Minecraft textures changing after leaving the game for some minutes Duplicate MC-274428 To grant an advancement, can't check a specific data only in "minecraft:custom_data" Duplicate MCPE-151956 entities disappear Duplicate MC-236977 Strange dripstone block generation Duplicate MCPE-101781 Piglin zombie stop attacking Incomplete MCPE-94751 Villagers change their table Incomplete MCPE-91682 Villagers don't work Duplicate MC-191746 Achievements Awaiting Response MC-189733 Error al estar arriba de bloques de camino o cultivo Duplicate MCPE-41969 Minecraft bedrock edition server random death issue. Cannot Reproduce MCPE-20940 GUI Dissappears Duplicate MC-95295 Yesterday it was working today already not Invalid MC-31610 Crash with command '/summon FallingSand...' Incomplete MC-10415 Unable to craft with blocks which have a damage value greater than 0 Fixed

Comments

If I remember correctly, this used to be possible with NBT.
It's very useful if several datapacks have the same advancement and that this one should be obtained if the player picks up specifics item available in all these datapacks.

For example, all items in these datapacks have the following custom_data data goldenEnchantedBook:1b :

give @s minecraft:enchanted_book[custom_data={goldenEnchantedBook:1b, <a_specific_data_for_each_datapack>:1b}]

Then with only one same advancement in all datapacks ...

{
    ...
    "criteria": {
        "aCustomData": {
            "trigger": "minecraft:inventory_changed",
            "conditions": {
                "items": [
                    {
                        "items": ["minecraft:enchanted_book"],
                        "components": {
                            "minecraft:custom_data": {
                                "goldenEnchantedBook": 1
                            }
                        }
                    }
                ]
            }
        }
    }
}

... it will be granted for all items that have at least the goldenEnchantedBook custom data value to 1!