setIcon(<thermalexpansion:machine:13>)

setTitle("Enchanting?")

setDescription("The Arcane Ensorcellator is a machine that will let you create enchantments using Energy and Liquid XP. You may have noticed that you can't acquire most Enchantments' Max Level, if you want them you need this machine! Or you could make enchantments from scratch but will cost more than enchanting in the Enchanting Table and then using the Arcane Ensorcellator.\n\n§9Completition Requirement:\n§7Obtain an Enchanted Book with max level of either Holding, Sieve Efficiency or Fortune")

addParent("jasb:machines/induction_smelter")

hiddenUnless("jasb:machines/induction_smelter")

criteria1 = addCriteria("sieve_efficiency", "minecraft:inventory_changed")
criteria1.addItem(<minecraft:enchanted_book, nbt:{StoredEnchantments:[{lvl:5s,id:11s}]}>)

criteria2 = addCriteria("sieve_fortune", "minecraft:inventory_changed")
criteria2.addItem(<minecraft:enchanted_book, nbt:{StoredEnchantments:[{lvl:3s,id:12s}]}>)

criteria3 = addCriteria("holding", "minecraft:inventory_changed")
criteria3.addItem(<minecraft:enchanted_book, nbt:{StoredEnchantments:[{lvl:4s,id:14s}]}>)

setRequirements("any")

setPos(608,32)
drawDirectLines()