
//Set icon item
setIcon(<immersiveengineering:metal_device1:7>)

//Set title String
setTitle("Ore Sampling")

//Set description String
setDescription("The Core Sample Drill is a device that takes a material sample of a chunk and sees if it contains anything useful. This is essential for knowing where to set up an Excavator.")

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

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

drawDirectLines(true)

//Set the position
setPos(-71,-68)

//Rewards
setRewardExperience(4)