
//Set icon item
setIcon(<immersiveengineering:conveyor>)

//Set title String
setTitle("Fun Item Transport")

//Set description String
setDescription("Conveyor belts carry items around on top of them. They are the preffered method of item transport for Immersive Engineering machines.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-160,-5)

//Rewards
setRewardExperience(4)