
//Set icon item
setIcon(<futuremc:ancient_debris>)

//Set title String
setTitle("Wait, isn't this 1.12.2?")

//Set description String
setDescription("Ancient Debris can be smelted into netherite scraps, which in turn creates Netherite, a very powerful metal.")

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

//Adds criteria named "hasFlint" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasAncientDebris", "minecraft:inventory_changed")

//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.addItem(<futuremc:ancient_debris>)

drawDirectLines(true)

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

//Rewards
setRewardExperience(4)