
//Set icon item
setIcon(<dimensionaledibles:custom_cake, nbt:{dimID: 5, cakeName: "Surface World"}>)

//Set title String
setTitle("Welcome Home")

//Set description String
setDescription("With the Surface World Cake, you have overcome many obstacles and challanges in the Island Paradise and the other dimensions. With this cake, you will be able to return to the regular overworld once more, and be able to start a new, fresh life.")

//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:surfaceworld/enderiumblock")
addParent("triumph:surfaceworld/insaniumblock")
addParent("triumph:surfaceworld/nucleumblock")
addParent("triumph:surfaceworld/redmatterblock")
addParent("triumph:surfaceworld/solariumblock")
addParent("triumph:surfaceworld/terrasteelblock")

//Adds criteria named "hasFlint" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasMithminiteBlock", "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:custom_cake, nbt:{dimID: 5, cakeName: "Surface World"}>)

drawDirectLines(true)

//Set the position
setPos(-235,-92)

//Rewards
setRewardExperience(4)