TheCSDev's personal Minecraft modding library.
(The thumbnail is a screenshot of source code for one of the main GUI API classes; TScreen.java, shown in IntelliJ IDEA editor.)
Introduction
TCDCommons is a Minecraft modding API library that features its own GUI system and various events and hooks for the game, as well as utilities that may be useful to mod developers. This API's main purpose is to help optimize and speed up the development of mods, as well as to avoiding re-writing the same code for every mod that needs to do similar things. Please note that because this mod is a library, it may not offer useful front-end features to the user.
Key features
- 🖥️ Robust GUI framework
- ⚙ JSON-based config system
- 🎣 Additional 'hooks' useful for modding the game
Dependencies
This mod depends on some other mods that first need to be installed before this mod can be installed. Those dependencies are as follows:
- 🧵 Fabric API - Only if running on Fabric. Not required on NeoForge.
How to Install TCDCommons API (Mod)
TCDCommons API by TheCSDev is verified for Fabric, Forge, Neoforge, Quilt across Minecraft versions 1.18.2, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3 (latest release: 5.6.0-beta.2+fn-26.3, file size: 496 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.18.2, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3) and platform (Fabric, Forge, Neoforge, Quilt).
- Make sure you have the compatible loader or environment installed for Fabric, Forge, Neoforge, Quilt.
- Move the downloaded TCDCommons API file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version| Name | Game version | Platforms | Published | Downloads | Actions |
|---|---|---|---|---|---|
| 2mo ago | 115 | ||||
| 2mo ago | 57 | ||||
| 2mo ago | 38 | ||||
| 2mo ago | 29 | ||||
| 2mo ago | 23 | ||||
| 2mo ago | 19 | ||||
| 2mo ago | 16 | ||||
| 2mo ago | 14 | ||||
| 2mo ago | 13 | ||||
| 2mo ago | 11 | ||||
| 2mo ago | 10 | ||||
| 2mo ago | 10 | ||||
| 2mo ago | 9 | ||||
| 2mo ago | 8 | ||||
| 2mo ago | 8 | ||||
| 2mo ago | 7 | ||||
| 2mo ago | 7 | ||||
| 2mo ago | 6 | ||||
| 2mo ago | 6 | ||||
| 2mo ago | 6 | ||||
| 2mo ago | 5 | ||||
| 2mo ago | 5 | ||||
| 2mo ago | 5 | ||||
| 2mo ago | 5 | ||||
| 2mo ago | 5 | ||||
| 2mo ago | 4 | ||||
| 2mo ago | 4 | ||||
| 2mo ago | 4 | ||||
| 2mo ago | 4 | ||||
| 2mo ago | 4 | ||||
| 2mo ago | 4 | ||||
| 2mo ago | 4 | ||||
| 2mo ago | 3 | ||||
| 2mo ago | 3 | ||||
| 2mo ago | 3 | ||||
| 2mo ago | 3 | ||||
| 2mo ago | 3 | ||||
| 2mo ago | 3 | ||||
| 2mo ago | 3 | ||||
| 2mo ago | 3 | ||||
| 2mo ago | 3 | ||||
| 2mo ago | 3 | ||||
| 2mo ago | 3 | ||||
| 2mo ago | 3 | ||||
| 2mo ago | 3 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 |
26.3.- Note on this beta release:**
26.3, Minecraft migrated from [GLFW](https://www.glfw.org/) to [SDL](https://www.libsdl.org/). Consequently, the game's input handling has changed.As side-effect; while this mod has mostly adapted, I have not managed fully to port it properly in a timely manner (instead opting for a "band aid" solution). Expect text input fields and any typing-related GUI (from my mods) to be buggy. In addition, such GUI (from my mods) can only handle English keyboard layouts for now. Apologies in advance for the inconvenience.
- Resolved [Issue #33](https://github.com/TheCSDev/tcdcommons/issues/33); a conflict with [Screenshot Viewer](https://github.com/LGatodu47/ScreenshotViewer) that was causing a crash.
- In dependency declarations, minimum version numbers for
fabricloaderandfabric-apihave been reduced, to increase flexibility for end users and modpacks.
26.1.26.2, at a small visual expense. I believe this crash should not have been there, but then again NeoForge 26.2 is still in beta as of me writing this. Please report any future or remaining crashes you encounter on NeoForge.- Technical details:**
MixinHud (present in [TCDCommons API](https://github.com/TheCSDev/tcdcommons)), a mechanism in the mod that'd prevent the [HUD](https://minecraft.wiki/w/Heads-up_display) from rendering while the better "Statistics" screen was open (to avoid HUD obstructing the screen). MixinHud has now been made optional, resolving the crash while at the same time the mechanism no longer working on NeoForge for now. This is a small visual difference and should not affect [UX](https://en.wikipedia.org/wiki/User_experience_design) too much.- [TheCSDev](https://github.com/TheCSDev) added 'Bosnian' translations.
Reminder than anyone (yes you) is welcome to translate this mod at any time!
- [Ultra](https://github.com/Ultra0641) added 'German' translations. Thank you so much for translating this mod for everyone!
Reminder than anyone (yes you) is welcome to translate this mod at any time!
- [JustShadow78](https://github.com/JustShadow78) added 'Polish' translations. Thank you so much for translating this mod for everyone!
Reminder than anyone (yes you) is welcome to translate this mod at any time!
- [Xinyang-Gao](https://github.com/Xinyang-Gao) updated 'Simplified Chinese' and added 'Traditional Chinese' translations. Thank you so much for translating this mod for everyone!
Reminder than anyone (yes you) is welcome to translate this mod at any time!
- Added "[Item descriptions](https://github.com/cassiancc/Item-Descriptions)" integration for statistics-related GUI elements. This **optional** feature is now present when installing the "Item descriptions" mod.
- When hovering over a GUI element related to item/block/mob statistics while golding down the
CTRLkey, an item description will appear in the tooltip where possible. - Thank you [Cassain](https://github.com/cassiancc/) for making wonderful mods for the community, including "Item descriptions".
- Tooltips for statistics no longer *always* show technical identifiers like
minecraft:insert_item_id_hereunless "[Advanced tooltips](https://minecraft.wiki/w/Tooltip#:~:text=In%20Java%20Edition%2C%20advanced%20tooltips%2C%20including%20item%20IDs%20and%20the%20exact%20remaining%20durability%20of%20tools%2C%20can%20be%20displayed%20by%20pressing%20the%20debug%20hotkey%20F3%E2%80%AF%2B%E2%80%AFH.)" is enabled in game's settings. UseF3 + Hto enable or disable advanced tooltips. - Tooltips for statistics use the semicolon character instead of hyphen to display values
- Example:
- Times Mined: 3instead of- Times Mined - 3
### Technical/API changelog
- General minor tweaks in the mod's code, primarily corrections and tiny optimizations
- Added
com.thecsdev.commonmc.api.client.gui.util.TGuiUtils.isCtrlDown()
26.2.- Added extra miscellaneous translation keys
- Fixed rendering bug related to
TBlockStateElementwhere some blocks wouldn't render properly
- Updated translations for Tatar. Thank you [Amirhan-Taipovjan-Greatest-I](https://github.com/Amirhan-Taipovjan-Greatest-I) for the updated translations.
- Added translations for Tatar. Thank you to [Amirhan-Taipovjan-Greatest-I](https://github.com/Amirhan-Taipovjan-Greatest-I) for contributing them.
### Technical API changelog
This changelog is primarily for developers and programmers using this API mod. Most people may ignore it.
- Added
TCodec, a utility class featuring this mod'sCodec<A>implementations for Mojang's DFU - Added
dropShadowProperty()toTLabelElement - Added miscellaneous
TElementimplementations for rendering block states and item stacks on screen - Added
TSeparatorElement. It draws a straight line and is configurable. - Added
TToggleButtonWidget. It's similar to a button, but a togglable one.