Описание
# CITX (CIT Extension)
**A smart mod that makes renaming CIT items quick and easy with one command.**
Made for builders, creators, and anyone tired of the anvil clanking.
## 👉 Features
- Rename items with simple commands
- Swap CIT extensions instead of stacking them
- Full rename support for display names
- One-command reset to default
- Smart logics, clean-ups, and naming conditions
- Client-side only, nothing to install server-side
## 🚀 Quick Reference
| Command | Alias | What it does |
|---|---|---|
| `/citx ` | | Shortcut. Skips "extend" entirely, just adds/swaps the extension |
| `/citx extend ` | `/citx e ` | Adds or swaps a CIT extension, keeps the base name |
| `/citx rename ` | `/citx r ` | Replaces the entire display name |
| `/citx reset` | `/citx x` | Clears the custom name |
⚠️ **Important: After using any command, open and close your inventory to refresh the renamed item so it displays correctly in the world.**
Unfortunately, this cannot be fixed, as it is a limitation of how Minecraft handles item renames and client-side item updates.
## #️⃣ Commands
/citx extend
#### Adds or swaps an extension
Keeps the item's base name and only touches the extension.
```
/citx extend
/citx e # alias
/citx # shortcut, no subcommand needed
```
For quick extension changes you don't even need to type "extend" or "e". Just `/citx ` on its own works the same way:
```
/citx red
Grass Block → Grass Block_red
```
**Example (full form)**
```
/citx extend red
Grass Block → Grass Block_red
```
Run it again with a new extension and it replaces the old one, it doesn't stack:
```
Grass Block_old
/citx e new
→ Grass Block_new ✅
→ Grass Block_old_new ❌ (never happens)
```
/citx rename
## Replaces the whole name
```
/citx rename
/citx r # alias
```
**Example**
```
/citx rename Mystic Sword
→ Mystic Sword
```
/citx reset
## Resets item name back to default
```
/citx reset
/citx x # alias
```
## 🧹 Automatic Cleanup
You don't have to think about formatting. CITX handles it in the background:
- Collapses duplicate underscores
- Keeps only one extension at a time
- Adds a missing leading underscore
- Blocks malformed names before they happen
```
Stone__red → Stone_red
```
## 🔁 Example Workflow
```
Hold: Grass Block
/citx blue → Grass Block_blue (shortcut for extend)
/citx green → Grass Block_green (swapped, not stacked)
/citx r Emerald Trophy → Emerald Trophy
/citx x → Grass Block (back to default)
```
## ✨ See Also...
[CITL (CIT Ledger)](https://modrinth.com/mod/citl) - A mod that provides an in-game menu for browsing installed OptiFine/CIT Resewn CIT packs.
## ⚖️ License & Support
Issues and feature requests can be submitted via the [GitHub Issue Tracker](https://github.com/Lavandula-Collective/CITX/issues).
Feel free to include into your modpacks with credits.
Distributed under the **Apache-2.0 License**.