
//Set icon item
setIcon(<mysticalagriculture:infusion_crystal>)

//Set title String
setTitle("Essence Compression")

//Set description String
setDescription("Infusion Crystals are used to upgrade inferium essence to the next tier, and so on with each tier of essence.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-254,-63)

//Rewards
setRewardExperience(4)