setTitle("Drilling for Oil")

setIcon("forge:bucketfilled", 0, {FluidName:"oil",Amount:1000})

setDescription("Use the Core Sample Drill to locate oil in a chunk. Setup an Immersive Petroleum Pumpjack to extract it and grab a bucket of it to complete the advancement")

setParent("triumph:stage3/sampledrill")
setRequiresParent(true)

setFrameType("Goal")

setUncompletedIconColor(8947848)
setCompletedIconColor(6570404)
setUncompletedTitleColor(8947848)
setCompletedTitleColor(6570404)

//Criteria
criteria = addCriteria("hasRock", "minecraft:inventory_changed")
criteria.addItem("forge:bucketfilled", 0, {FluidName:"oil",Amount:1000})

//Rewards
setRewardExperience(8)