Advancement for eating a golden carrot without custom model data
Hi there! On our server we have a bunch of custom items using custom model data. One of those items is a golden carrot with
Continue to help post"custom_model_data": 10001
. I'm now trying to create an advancement for eating a golden carrot that doesn't trigger when the carrot has custom model data.
json "criteria": { "golden_carrot": { "conditions": { "item": { "items": "minecraft:golden_carrot", "components": { "minecraft:custom_model_data": 10001 } } }, "trigger": "minecraft:consume_item" } },
So instead of triggering when it has the custom model data, I want this advancement to trigger only when it's a default carrot and not when eating the custom carrot.
Would that be possible?
I also tried checking the name but that didn't seem to work either:
json "criteria": { "golden_carrot": { "conditions": { "item": { "items": "minecraft:golden_carrot", "components": { "minecraft:item_name": "'Golden Carrot'" } } }, "trigger": "minecraft:consume_item" } },