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

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

//Set description String
setDescription("The Master Infusion Crystal in an Infusions Crystal with Infinite durability. 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/supremiumessence")

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

drawDirectLines(true)

//Set the position
setPos(-235,-95)

//Rewards
setRewardExperience(4)