#making an advancement

1 messages · Page 1 of 1 (latest)

gusty gyro
#

There is a way to change the CustomModelData of the icon of an advancement?

dapper tulipBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 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

barren marlin
#

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

gusty gyro
#

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"
}

barren marlin
#

The "nbt" part

barren marlin
#

Where you have the enchantment

gusty gyro
#

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

barren marlin
#

I don't understand

gusty gyro
#

like

#

rn the item the player need to pick for this advancement is an allium

barren marlin
#

What do you mean "pick"?

gusty gyro
#

so, I want the player to have to get an allium but with, for example, with a diff CMD

gusty gyro
barren marlin
#

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

gusty gyro
#

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

barren marlin
#

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

gusty gyro
#

ye I tried that

barren marlin
#

Move it outside of the square bracket

gusty gyro
#

k

#

yee it was that

#

tysm :))

dapper tulipBOT
# dapper tulip <@&1201956957406109788>
Question Closed

Your question, #1210358667388657717 (making an advancement), was resolved!

Original Message

#1210358667388657717 message

Duration open

13m

dapper tulipBOT
#

Re-opened the channel. Make sure to close it again once you're done.