
//Set icon item
setIcon(<msmlegacy:draconic_blade>)

//Set title String
setTitle("Smithing Master")

//Set description String
setDescription("Obtain the Draconic Blade through an ancient ritual")

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

//Set the position
setPos(158,-30)


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

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

setFrameType("CHALLENGE")

hideLines()

addRewardFunction("triumph:challenge")

setRewardExperience(42)