//This is a root advancement. It is the base advancement for a page. As such, it has no parent and has to set a background.

//Set icon item
//setIcon(<tconstruct:pickaxe:0>.withTag({StatsOriginal: {AttackSpeedMultiplier: 1.0 as float, MiningSpeed: 7.02 as float, FreeModifiers: 3, Durability: 513, HarvestLevel: 11, Attack: 8.72 as float}, Stats: {AttackSpeedMultiplier: 1.0 as float, MiningSpeed: 7.02 as float, FreeModifiers: 0, Durability: 513, HarvestLevel: 11, Attack: 8.72 as float}, Special: {Categories: ["tool", "aoe", "harvest"]}, TinkerData: {Materials: ["manyullyn", "manyullyn", "manyullyn"], Modifiers: ["toolleveling"]}, Modifiers: [{identifier: "coldblooded", color: -6202120, level: 1}, {identifier: "insatiable", color: -6202120, level: 1}, {identifier: "toolleveling", color: 16777215, level: 1}], Traits: ["coldblooded", "insatiable", "toolleveling"]}))

setIcon("minecraft:dirt")

//addParent("triumph:1mainline/wood")
//Set title String
setTitle("Tool Progression")

//Set description String
setDescription("Level up your mining")

//Set background String. This is a path to any texture in a resource pack, so you can set it to fun things.
setBackground("minecraft:textures/blocks/diamond_ore.png")
//setRequiresParent(true)

criteria = addCriteria("toolProgress", "triumph:completed_advancement")
criteria.setString("triumph:1mainline/wood")

//Set the toast notification in the top right corner of the screen to not show up when this advancement is achieved. 
setShowToast(false)

//Set the advancement to not send a chat message when it is achieved.
// setAnnounceToChat(false)

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

//Set the position
setPos(0, 0)

//Adds a single location criteria. Since this has nothing specific set, it will be completed the instant the player is added to the world, thus unlocking the page instantly.
addCriteria("location", "minecraft:location")

setCompletedIconColor(120, 10, 120)