
//Set icon item
setIcon(<redstonearsenal:material:32>)

//Set title String
setTitle("Advanced Materials: Fluxed Electrum")

//Set description String
setDescription("Fluxed Electrum is a stronger version of normal electrum that is used to make electric powered armor, tools, and other components.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-435,44)

//Rewards
setRewardExperience(4)