
//Set icon item
setIcon(<inspirations:bricks_button>)

//Set title String
setTitle("In-block buttons")

//Set description String
setDescription("Bricks buttons are buttons which look like a full brick block. One of the bricks on the block is slightly pressed in, and right clicking that brick will produce a redstone pulse. This block comes in either clay brick or nether brick variants.")

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

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

//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.addItem(<inspirations:bricks_button>)
setPos(84,15)