
//Set icon item
setIcon(<minecraft:shears>)

//Set title String
setTitle("Give to me your Wool")

//Set description String
setDescription("Shears will allow you to easily get wool from sheep. This is very useful for airships and navigating through the floating islands at this stage of the game.")

//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("hasShears", "minecraft:inventory_changed")

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

drawDirectLines(true)

//Set the position
setPos(109,9)

//Rewards
setRewardExperience(4)