
//Set icon item
setIcon(<buildcraftfactory:tank>)

//Set title String
setTitle("Too Many Buckets")

//Set description String
setDescription("Too many buckets of random liquid in your inventory? Create a tank to store you liquid in. Right click with a bucket to get liquids in and out.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-274,85)

//Rewards
setRewardExperience(4)