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

//Set title String
setTitle("Ima Chargin Ma Lazer")

//Set description String
setDescription("Chargers are useful machines that charge various armor and tools.")

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

//Adds criteria named "hasFlint" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasTier1Charger", "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:0>)

drawDirectLines(true)

//Set the position
setPos(-396,-39)

//Rewards
setRewardExperience(4)