
//Set icon item
setIcon(<industrialforegoing:enchantment_aplicator>)

//Set title String
setTitle("Anvil Industrialization")

//Set description String
setDescription("The Enchantment Applicator functions as an anvil that uses mob essence instead of experience.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-25,-19)

//Rewards
setRewardExperience(4)