
//Set icon item
setIcon(<minecraft:leather>)

//Set title String
setTitle("You think I keep track of all the cows?")

//Set description String
setDescription("Improve your enchantment table by starting a cow farm to get leather.")

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

//Adds criteria named "killed_spider" with the trigger type "minecraft:player_killed_entity". This function returns the criteria as an object
criteria = addCriteria("killed_cow", "minecraft:player_killed_entity")

//Sets the required entity type for the criteria. This is the entity that the player must kill.
criteria.setEntityType("minecraft:cow")

drawDirectLines(true)

//Set the position
setPos(-276,-73)

//Rewards
setRewardExperience(4)