
//Set icon item
setIcon(<aether_legacy:moa_egg, nbt: {typeId: 1}>)

//Set title String
setTitle("Big Bird Egg?")

//Set description String
setDescription("Moa Eggs can be found in chests around the Aether. An incubator is required to hatch them for a new, mountable entity.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-287,52)

//Rewards
setRewardExperience(4)