
//Set icon item
setIcon(<bountifulbaubles:shieldankh>)

//Set title String
setTitle("Is this a Terraria Reference?")

//Set description String
setDescription("Acquire the Ankh Shield")

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

//Set the position
setPos(64,-50)


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

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

setFrameType("CHALLENGE")

addRewardFunction("triumph:challenge")

setRewardExperience(30)