
//Set icon item
setIcon(<ancientwarfarenpc:town_hall>)

//Set title String
setTitle("The Center of it All")

//Set description String
setDescription("Before you create Worker NPC's, you will need to create a Town Hall for them to gather at, as well as receive food from.")

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

//Adds criteria named "hasFlint" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasTownHall", "minecraft:inventory_changed")

//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.addItem(<ancientwarfarenpc:town_hall>)

drawDirectLines(true)

//Set the position
setPos(13,-20)

//Rewards
setRewardExperience(4)