
//Set the icon item
setIcon(<pyrotech:coal_coke_block>)

//Set the title String
setTitle("Fine Fuel")

//Set the description String
setDescription("I liked Carbon before it was Coal. Create and use a block of Coal Coke")

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

//Set the position
setPos(145,1)



//Adds criteria named "clickedItem" with the trigger type "triumph:right_click_item". This function returns the criteria as an object
criteria = addCriteria("clickedItem", "triumph:right_click_item")

//Sets the required item for the criteria. This is the item that needs to be right clicked with by the player.
criteria.setItem(<pyrotech:coal_coke_block:0>)

//By not setting anything about requirements here, all criteria are automatically required