
//Set icon item
setIcon(<minecraft:carpet:4>)

//Set title String
setTitle("Carpeted Plates")

//Set description String
setDescription("Placing a carpet on a stone pressure plate conceals the pressure plate under the carpet, making it harder to see.")

//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("entered", "minecraft:enter_block")
criteria2 = addCriteria("entered2", "minecraft:enter_block")

//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.setBlock(<inspirations:carpeted_pressure_plate_1>)
criteria2.setBlock(<inspirations:carpeted_pressure_plate_2>)

setRequirements("any");
setPos(84,75)