
//Set the icon item
setIcon("minecraft:enchanted_book")

//Set the title String
setTitle("You Made a Magic")

//Set the description String
setDescription("Enchant any gear using Lapis and some XP")

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

//Set the position
setPos(-313,128)

//Hide the connection lines, so I can have a pretty shape
//hideLines()

criteria = addCriteria("enchanted_item", "minecraft:enchanted_item")