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

//Set title String
setTitle("The RIGHT Start!")

//Set description String
setDescription("Break the leaves and get some sticks")

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

//Set the position
setPos(149,41)

//Hide the connection lines, so I can have a pretty shape
hideLines()

setAnnounceToChat(false)

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