
//Set icon item
setIcon(<extendedcrafting:table_ultimate>)

//Set title String
setTitle("Crafting Mastery")

//Set description String
setDescription("The Ultimate Crafting Table is the highest tier crafting table used to make some of the most powerful items available.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-82,191)

//Rewards
setRewardExperience(4)