
//Set icon item
setIcon(<davincisvessels:marker>)

//Set title String
setTitle("Helm of the Airship")

//Set description String
setDescription("The ship's helm is used to both create and drive an airship. Placing it on a structure of less than 1000 blocks and made of about 60% air balloons will create a drivable airship to navigate the skies.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(119,-28)

//Rewards
setRewardExperience(4)