
//Set icon item
setIcon(<aether_legacy:enchanted_gravitite>)

//Set title String
setTitle("Refined Gravitite")

//Set description String
setDescription("Enchanted Gravitie is useful in making various advanced magical, as well as technological components.")

//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:aether/altar")
addParent("triumph:aether/gravititeore")
addParent("triumph:aether/ambrosiumore")

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

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

drawDirectLines(true)

//Set the position
setPos(-240,17)

//Rewards
setRewardExperience(4)