#making an advancement
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
💬 While you wait, take this time to provide more context and details.
🙇 After a while, hit the Summon Helpers button to ping the helper team. They'll be happy to help you
✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
Yeah, you can define it in the advancements display field just like you would anywhere else
If you're using Misode there's even an "Icon NBT" field ready for you to fill
but in which part?
"display": {
"icon": {
"item": "minecraft:burn_pottery_sherd",
"nbt": "{Enchantments:[{lvl:1s, id:\"minecraft:mending\"}]}"
},
"title": {
"text": "allium"
},
"description": {
"text": "pickup allium"
},
"background": "minecraft:textures/block/moss_block.png",
"frame": "task",
"show_toast": true,
"announce_to_chat": true,
"hidden": false
},
"criteria": {
"requirement": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"player": [],
"items": [
{
"items": [
"minecraft:burn_pottery_sherd"
]
}
]
}
}
},
"parent": "custom_advancements:test/root2"
}
The "nbt" part
oh
ok
Where you have the enchantment
ye
ty
and another thing
in this advancement I want to set that the player should pick that item but for example, with a different CMD or enchantment etc.
And if the player pick that item but with no CMD or a diff CMD the advancement should'nt appear
I don't understand
What do you mean "pick"?
so, I want the player to have to get an allium but with, for example, with a diff CMD
srry i meant, get that item
You would define all of that in the advancement criteria. Has nothing to do with the display settings
I wouldn't use CMD for that though, I'd use arbitrary data like custom_alium:1b
oh ok
"display": {
"icon": {
"item": "minecraft:burn_pottery_sherd",
"nbt": "{Enchantments:[{lvl:1s, id:\"minecraft:mending\"},CustomModelData:99}]}"
},```
the code is showing an yellow error in CustomModelData
Unknown Key
I believe it needs to be inside of tag:{}
Oh wait
That might be true, but more importantly you have it in the Enchantments list right now
ye I tried that
Move it outside of the square bracket
Your question, #1210358667388657717 (making an advancement), was resolved!
#1210358667388657717 message
13m
Re-opened the channel. Make sure to close it again once you're done.