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

//Set title String
setTitle("Grappling with Magic and less Cost")

//Set description String
setDescription("The Impulsion Wand functions as a grappling hook that does not use some kind of fuel to function.")

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

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

drawDirectLines(true)

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

//Rewards
setRewardExperience(4)