
//Set icon item
setIcon(<excompressum:auto_compressed_hammer>)

//Set title String
setTitle("Power Hammering")

//Set description String
setDescription("An Auto Compressed Hammer will hammer compressed cobblestone, gravel, or sand into 9 of the next material. Its processing can be sped up with additional compressed diamond hammers.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-186,9)

//Rewards
setRewardExperience(4)