2
Checking player advancement
I don't understand how to check this via /execute.
1
You can use the advancements=[namespace:advancement=true] to check whether someone has an advancement.
For example, to check whether a player has the "Adventuring Time" advancement you could use:
/execute if entity @p[advancements={minecraft:adventure/adventuring_time=true}]
Of course you can also add multiple advancements to the condition, by just listing them with commas.
By checking for advancements=[namespace:advancement=false] instead, you can check whether the player DOES NOT have the specified advancement:
/execute if entity @p[advancements={minecraft:adventure/adventuring_time=false}]
For example, to check whether a player has the "Adventuring Time" advancement you could use:
/execute if entity @p[advancements={minecraft:adventure/adventuring_time=true}]
Of course you can also add multiple advancements to the condition, by just listing them with commas.
By checking for advancements=[namespace:advancement=false] instead, you can check whether the player DOES NOT have the specified advancement:
/execute if entity @p[advancements={minecraft:adventure/adventuring_time=false}]
