
//Set icon item
setIcon(<dimensionaledibles:overworld_cake>)

//Set title String
setTitle("Making sure you can get back Home")

//Set description String
setDescription("It is not a bad idea to create an Overworld cake before traveling to a new dimension.")

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

//Adds criteria named "hasFlint" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasOverworldCake", "minecraft:inventory_changed")

//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.addItem(<dimensionaledibles:overworld_cake>)

drawDirectLines(true)

//Set the position
setPos(-413,24)

//Rewards
setRewardExperience(4)