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

//Set title String
setTitle("Industrialized Animal Creation")

//Set description String
setDescription("The Animal Feeder automates the process of feeding and breeding animals.")

//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("hasAnimalFeeder", "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:animal_stock_increaser>)

drawDirectLines(true)

//Set the position
setPos(-129,91)

//Rewards
setRewardExperience(4)