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

//Set title String
setTitle("Crafting with Star Magic")

//Set description String
setDescription("The Starlight Crafting Altar is the next tier of crafting in Astral Sorcery. It is recommended that you place it in an area with a high concentration of star light, as well as a higher y-level as it will give the altar more star power. It also requires marble as it is part of a larger multiblock structure.")

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

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

drawDirectLines(true)

//Set the position
setPos(-157,163)

//Rewards
setRewardExperience(4)