//Set icon item
setIcon("galacticraftcore:oxygen_tank_light_full")

//Set title String
setTitle("Oxygen Tank")

//Set description String
setDescription("Craft and Fill an Oxygen Tank of any size")

//Set the parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
setParent("triumph:Galacticraft/oxygencompressor")
setRequiresParent(true)

setRequirements("any")

//Adds criteria named "hasFlint" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
//criteria = addCriteria("hasCompressor", "minecraft:inventory_changed")
//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
//criteria.addItem("galacticraftcore:oxygen_compressor",0)

criteria1 = addCriteria("hasCompressor1", "minecraft:inventory_changed")
criteria1.setItem("galacticraftcore:oxygen_tank_light_full",0,{Amount:900})

criteria2 = addCriteria("hasCompressor2", "minecraft:inventory_changed")
criteria2.setItem("galacticraftcore:oxygen_tank_med_full",0,{Amount:1800})

criteria3 = addCriteria("hasCompressor3", "minecraft:inventory_changed")
criteria3.setItem("galacticraftcore:oxygen_tank_heavy_full",0,{Amount:2700})

//Adds a recipe to reward upon completion. Multiple of these can be added.
//addRewardRecipe("minecraft:ender_eye")

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

//Sets the experience to reward upon completion. This can only be set once.
setRewardExperience(12)

//Adds a Skillable mod skill level up to be rewarded upon completion. Multiple of these can be added.
//addRewardSkillable("mining", 1)

//Adds an item to be rewarded upon completion. Only one of these can be set currently.
//setRewardItem("minecraft:stick")
//setRewardItem("minecraft:stick", 0)
//setRewardItem("minecraft:stick", 0, 1)
//setRewardItem("minecraft:stick", 0, 1, {ench:[{lvl:1s,id:51s}],display:{Name:"The Stick of Truth"}})
