Computer Craft Enchantment API
A Minecraft mod for CC:Tweaked that provides an API for accessing, retrieving, and managing enchantments through computer and peripheral interactions.
- Loaders
- Forge
- Downloads on Modrinth
- 14
- Followers on Modrinth
- 0
- version
- 1
- Updated
- November 6, 2026Nov 6
- Published
- in 2026
At a glance
Needed both in the game and on the server
Computer Craft Enchantment API
Computer Craft Enchantment API is an add-on for CC:Tweaked.
It exposes an API to all computers and turtles under the name enchantments.
Enchantment API Methods
isRegistered(Enchantment-Identifier)listEnchantments()getEnchantmentNameKey(Enchantment-Identifier)getEnchantmentName(Enchantment-Identifier)getEnchantmentDescriptionKey(Enchantment-Identifier)getEnchantmentDescription(Enchantment-Identifier)getMinLevel(Enchantment-Identifier)getMaxLevel(Enchantment-Identifier)getRarity(Enchantment-Identifier)isTreasure(Enchantment-Identifier)isCurse(Enchantment-Identifier)isDiscoverable(Enchantment-Identifier)isTradeable(Enchantment-Identifier)isBookable(Enchantment-Identifier)getCategory(Enchantment-Identifier)listCategories()listEnchantmentsByCategory(Category)canCombine(Enchantment-Identifier, Enchantment-Identifier)getPowerRange(Enchantment-Identifier, Enchantment-Level)getGrindstoneXP(Enchantment-Identifier, Enchantment-Level)getEnchantability(Item-Identifier)canEnchant(Item-Identifier, Enchantment-Identifier)canApplyAtEnchantingTable(Item-Identifier, Enchantment-Identifier)listEnchantmentsForItemAtEnchantingTable(Item-Identifier)listEnchantmentsForItem(Item-Identifier)
The Analyzer is a separate block that expands on theses capabilities. These methods will use the provided item stack in the Analyzer to do its checks insted of using Item-Identifiers. This allows for more precises concultions. The fallowing are avilable methods on the Analyzer's peripheral.
Analyzer peripheral Methods
getGrindstoneXP()getEnchantability()getRepairCount()canEnchant(Enchantment-Identifier)canApplyAtEnchantingTable(Enchantment-Identifier)listEnchantmentsForItemAtEnchantingTable()listEnchantmentsForItem()
The Analyzer then also suports being use by the turtles in the tool slots exposing the peripheral to it.
Analyzer Crafting Recipe

Modpacks
Feel free to use this mod in any modpack. No permission needed. Credit, no credit, don't care. I was bored, so I made a thing.
FAQ
How to install Computer Craft Enchantment API?
Install Forge for your Minecraft version, download Computer Craft Enchantment API for the same version and loader, put the file into the mods folder and launch the game with the loader profile.
Which Minecraft versions does Computer Craft Enchantment API support?
Computer Craft Enchantment API has builds for Minecraft 1.20.1.
Is Computer Craft Enchantment API needed on the server?
Needed in the game and on the server