
//Set icon item
setIcon(<energyconverters:energy_consumer_mj>)

//Set title String
setTitle("Making Buildcraft Engines more Useful")

//Set description String
setDescription("The MJ Consumer, when provided with Buildcraft power, can convert it into RF of FE if there is an energy bridge linking it with an FE or RF producer.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-391,106)

//Rewards
setRewardExperience(4)