
//Set icon item
setIcon(<thaumcraft:taint_fibre>)

//Set title String
setTitle("Taint Stage 1")

//Set description String
setDescription("Occasional Invasions by crawlers, Small Nests")
setCompletedIconColor(##660060)
setCompletedTitleColor(##660060)
setCompletedLineColor(##660060)

setUncompletedIconColor(#220020)
setUncompletedTitleColor(#220020)
setUncompletedLineColor(#110010)


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

//Set the position
setPos(26,-16)



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

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



//Adds a function to fire upon completion. Any number of these can be added.
addRewardFunction("triumph:taint1")