
//Set icon item
setIcon(<chargers:charger:2>)

//Set title String
setTitle("FULL POWER")

//Set description String
setDescription("Chargers are useful machines that charge various armor and tools. Tier 3 chargers charge items faster and store more power.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-100,64)

//Rewards
setRewardExperience(4)