
//Set icon item
setIcon(<extrautils2:powerbattery>)

//Set title String
setTitle("Power Teleportation")

//Set description String
setDescription("Wireless RF Batteries allow you to transfer power into itself, and that power will be accessible with a second battery at another location.")

//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("hasWirelessRFBattery", "minecraft:inventory_changed")

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

drawDirectLines(true)

//Set the position
setPos(-202,125)

//Rewards
setRewardExperience(4)