advancement not working
Hello, I am trying to make my first data pack alone, and I got the error " Couldn't parse data file 'tutorial:tutorial/root' from 'tutorial:advancement/tutorial/root.json': DataResult.Error['No key id in MapLike[{"item":"minecraft:bee_spawn_egg"}]': ah[parent=Optional.empty, display=Optional.empty, rewards=am[experience=0, loot=[], recipes=[], function=Optional.empty], criteria={root=aq[trigger=dd@17f03114, triggerInstance=a[player=Optional.empty, entityPredicate=Optional.empty, killingBlow=Optional.empty]]}, requirements=[[root]], sendsTelemetryEvent=false, name=Optional.empty]]"
Can somebody help me figure out what I have wrong? thank you, and here is my code below.
{
"display": {
"icon": {
"id": "minecraft:bee_spawn_egg",
"components": {}
},
"title": "Heads",
"description": "No head?",
"background": "ameythest_block",
"frame": "task",
"show_toast": true,
"announce_to_chat": true,
"hidden": false
},
"criteria": {
"root": {
"trigger": "minecraft:player_killed_entity"
}
}
}
Continue to help post