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

//Set title String
setTitle("Tower Conquerer")

//Set description String
setDescription("The golems atop the battle towers guard rare loot. They are also a good source of diamonds and redstone.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-261,-69)

//Rewards
setRewardExperience(4)