
//Set icon item
setIcon(<minecraft:skull:1>)

//Set title String
setTitle("Withered Skull")

//Set description String
setDescription("Collection 3 Wither Skeleton Skulls will allow you to fight the Witherboss and obtain a Nether Star.")

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

//Adds criteria named "hasFlint" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasWitherSkeletonSkull", "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:skull:1>)

drawDirectLines(true)

//Set the position
setPos(-207,-17)

//Rewards
setRewardExperience(4)