//Set the icon item
setIcon(<minecraft:redstone_ore>)

//Set the title String
setTitle("Sweet sweet Redstone")

//Set the description String
setDescription("Mine up a decent amount of redstone, 16 should be enough!")

//Set the parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
setParent("triumph:onom/ironpick")

//Set the position
setPos(15, 14)

//Set this to use direct lines, so I can have a pretty shape
drawDirectLines(true)

criteria = addCriteria("hasRedstone", "minecraft:inventory_changed")

//Sets the required block for the criteria. This is the block that needs to be broken by the player.
criteria.addItem(<minecraft:redstone>)
criteria.setCount(16)