
//Set icon item
setIcon(<powersuits:tinkertable>)

//Set title String
setTitle("Technical Tinkerer")

//Set description String
setDescription("The Tinker Table is a device that allows players to make various tweaks to power armor including visual changes, as well as installling various components into the armor.")

//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:islandparadisepart3/iridiumore")
addParent("triumph:islandparadisepart3/metalpress")

//Adds criteria named "hasFlint" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasPoweramrmorTinkerTable", "minecraft:inventory_changed")

//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.addItem(<powersuits:tinkertable>)

drawDirectLines(true)

//Set the position
setPos(-111,-68)

//Rewards
setRewardExperience(4)