
//Set icon item
setIcon(<projecte:condenser_mk1>)

//Set title String
setTitle("Cheat Machine 5000")

//Set description String
setDescription("The Energy Condenser is a chest where any type of item with an EMC value can be transformed into another, specified item with an EMC value.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-379,-20)

//Rewards
setRewardExperience(4)