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

//Set title String
setTitle("The Anti-Enchanter")

//Set description String
setDescription("The enchantment extractor removes enchantments from items and stores them in books. Starts from the uppermost enchantment on the item.")

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

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

drawDirectLines(true)

//Set the position
setPos(-160,100)

//Rewards
setRewardExperience(4)