
//Set icon item
setIcon(<astralsorcery:itemlinkingtool>)

//Set title String
setTitle("Block Linking")

//Set description String
setDescription("The Linking Tool is used to bind an Astral Sorcery Crystal (likley one you've found in the word to start with) to various blocks. Make sure there are no blocks above the crystal.")

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

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

drawDirectLines(true)

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

//Rewards
setRewardExperience(4)