
//Set icon item
setIcon(<astralsorcery:itemcraftingcomponent:1>)

//Set title String
setTitle("Star Metal")

//Set description String
setDescription("Star Metal Ingots can be obtained by binding an iron ore with an Astral Sorcery crystal with a Linking Tool, then smelting the resulting ore.")

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

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

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

drawDirectLines(true)

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

//Rewards
setRewardExperience(4)