
//Set icon item
setIcon(<abyssalcraft:dreadgrass>)

//Set title String
setTitle("Filled with Dread")

//Set description String
setDescription("Use an upgraded gateway key to gain access to the Dreadlands")

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

//Set the position
setPos(103,96)

//Adds criteria named "entered_nether" with the trigger type "minecraft:location". This function returns the criteria as an object
criteria = addCriteria("entered_dreadlands", "minecraft:location")

//Sets the required dimension id for the criteria. This is the dimension the player must be in.
criteria.setDimID(51)