
//Set icon item
setIcon(<railcraft:tie:0>)

//Set title String
setTitle("All tied up")

//Set description String
setDescription("Wooden ties are an essential component for making track. You will need to use some of the creosote byproduct from the coke oven to create these ties, then use four to make a railbed.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-366,39)

//Rewards
setRewardExperience(4)