
//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(<toughasnails:campfire:0>)

//Set title String
setTitle("Tough As Nails")

//Set description String
setDescription("Basic Survival")

//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/ice_packed.png")

//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 the position
setPos(11,17)

//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.
criteria = addCriteria("completedParent", "triumph:completed_advancement")
criteria.setAdvancement("triumph:1deepSeaSalvage/toughAsNails")

setCompletedIconColor(31, 209, 167)
setCompletedTitleColor(0, 168, 252)