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

//Set title String
setTitle("Transparent Trap&doors")

//Set description String
setDescription("Inspirations adds glass variants of doors and trapdoors. The difference from the wooden counterpart is that they require silk touch to be broken")

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

//Adds criteria named "hasFlint" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasDoor", "minecraft:inventory_changed")
criteria2 = addCriteria("hasTrapdoor", "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:glass_door>)
criteria2.addItem(<inspirations:glass_trapdoor>)

setRequirements("any")
setPos(-2,15)