
//Set icon item
setIcon(<immersiveengineering:material:6>)

//Set title String
setTitle("The better Coal")

//Set description String
setDescription("Coal Coke is created by smelting coal in the coke oven. It creates creosote oil as a byproduct which is useful for later.")

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

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

drawDirectLines(true)

//Set the position
setPos(-175,-73)

//Rewards
setRewardExperience(4)