
//Set icon item
setIcon(<farmingforblockheads:market>)

//Set title String
setTitle("Pay to Win")

//Set description String
setDescription("Markets allow you to buy various seeds and saplings for emeralds (though it takes the fun out of finding each crop).")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-284,-17)

//Rewards
setRewardExperience(4)