
//Set icon item
setIcon(<immersiveengineering:wooden_device0:2>)

//Set title String
setTitle("Workspace of a Nerd")

//Set description String
setDescription("The engineers work table is where various recipe blueprints are used to create various immersive engineering components.")

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

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

drawDirectLines(true)

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

//Rewards
setRewardExperience(4)