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

//Set title String
setTitle("Mob Spawning")

//Set description String
setDescription("The Mob Duplicator is a machine that automatically spawns a specified mob given RF power and mob essence.")

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

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

drawDirectLines(true)

//Set the position
setPos(-41,7)

//Rewards
setRewardExperience(4)