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

//Set title String
setTitle("I'm Moving to the Nether")

//Set description String
setDescription("Nether portals do not seem to work in the island paradise, however, perhaps right clicking a Nether Cake would work instead? Maybe? Is that how cake works?.")

//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:nether/cake")
addParent("triumph:nether/icedragonsteelingot")
addParent("triumph:nether/firedragonsteelingot")
addParent("triumph:nether/magmacream")
addParent("triumph:nether/manasteelblock")
addParent("triumph:nether/steelplate")
addParent("triumph:nether/thaumiumplate")

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

drawDirectLines(true)

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

//Rewards
setRewardExperience(4)