How to create Custom Advancements – Tutorial Series #022

Commands:
Step 1: Diamonds Advancement (example)
1) /execute @e[type=item,name="Diamond"] ~~~ execute @a[r=2] ~~~ tag @s add d
2) /execute @a[tag=d] ~~~ execute @s[tag=d] ~~~ clear @s diamond -1 0
3) /tag @a[tag=d] add d2
4) /execute @a[tag=d2] ~~~ execute @s[tag=!d3] ~~~ tellraw @a {"rawtext":[{"selector":"@s"},{"text":" has made the advancement §a[Diamonds!]"}]}
5) /tag @a[tag=d2] add d3
6) /playsound random.toast @a

Step 2: Diamonds Adv. Resetter (example)
1) /tag @p remove d
2) /tag @p remove d2
3) /tag @p remove d3

Write your comment Here