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

//Set title String
setTitle("Boosting Star Power")

//Set description String
setDescription("Spectral Relays are a part of a multiblock structure that increases the starlight power of nearby altars once a lens is placed within it and the correct structure is built beneath it.")

//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("hasSpectralRelay", "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:blockattunementrelay>)

drawDirectLines(true)

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

//Rewards
setRewardExperience(4)