
//Set icon item
setIcon(<minecraft:diamond_sword>)

//Set title String
setTitle("Preparing for Adventure")

//Set description String
setDescription("Create a full set diamond armor, a diamond sword, and a diamond pickaxe to prepare to take down the golems that guard the battletowers.")

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

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

//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.addItem(<minecraft:diamond_sword>)
criteria.addItem(<minecraft:diamond_pickaxe>)
criteria.addItem(<minecraft:diamond_helmet>)
criteria.addItem(<minecraft:diamond_chestplate>)
criteria.addItem(<minecraft:diamond_leggings>)
criteria.addItem(<minecraft:diamond_boots>)

drawDirectLines(true)

//Set the position
setPos(-261,-21)

//Rewards
setRewardExperience(4)