
//Set the icon item
setIcon(<props:props:508>)

//Set the title String
setTitle("Decoration Bench Crafted")

//Set the description String
setDescription("Craft the Decoration Bench")

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

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

//Sets the item for the criteria. This is the item that needs to be crafted.
criteria.addItem(<props:props:508>)

//Adds command for reward
addRewardFunction("triumph:decoHidden")

//By not setting anything about requirements here, all criteria are automatically required
setPos(-77,258)