
//Set icon item
setIcon(<railcraft:ingot:9>)

//Set title String
setTitle("This. Is. BRASS!")

//Set description String
setDescription("Brass is useful for creating gears, especially those used by engines. It is created by alloying 3 copper with 1 zinc in the smeltery.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-289,57)

//Rewards
setRewardExperience(4)