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

//Set title String
setTitle("Got Wood?")

//Set description String
setDescription("Acquire any type of wood with your starting axe !FYI! Dont worry if your axe breaks you can get planks by just punching logs")

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

//Set the position
setPos(11, 10)

//Set this to use direct lines, so I can have a pretty shape
drawDirectLines(true)

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