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

//Set title String
setTitle("Dirty Work")

//Set description String
setDescription("Clean up your corpse with a shovel")

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

//Set the position
setPos(-85,26)


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

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