//Set icon item
setIcon(<magneticraft:sluice_box>)

//Set title String
setTitle("Sluice Box")

//Set description String
setDescription("The Sluice Box acts likes a real life sifter. It holds 10 of the same type of rocky chunks at a time, then add a bucket of water. the water will process and clean the chunks and remove the cobble but it also has a chance to give extra pulverized ores.")

//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"

addParent("triumph:magneticraft/rockychunks")
setRequiresParent(true)

//Set the position
setPos(5, 0)

//Set this to use direct lines, so I can have a pretty shape
drawDirectLines(true)

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

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