All Mods Resource Packs Data Packs Shaders Modpacks Plugins
TCDCommons API

TCDCommons API

by TheCSDev • Downloads: 209 • Followers: 0
Description
Gallery
Changelog
Versions

image

Sponsors Issues Issues Issues

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:

  1. 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).
  2. Make sure you have the compatible loader or environment installed for Fabric, Forge, Neoforge, Quilt.
  3. Move the downloaded TCDCommons API file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.3
Fabric Neoforge
2mo ago 115
26.3
Fabric Neoforge
2mo ago 57
26.1.x 26w14a
Fabric Neoforge
2mo ago 38
26.2
Fabric Neoforge
2mo ago 29
26.1.x 26w14a
Fabric Neoforge
2mo ago 23
26.2
Fabric Neoforge
2mo ago 19
26.2
Fabric Neoforge
2mo ago 16
26.2
Fabric Neoforge
2mo ago 14
26.2
Fabric Neoforge
2mo ago 13
26.2
Fabric Neoforge
2mo ago 11
26.2
Fabric Neoforge
2mo ago 10
26.2
Fabric Neoforge
2mo ago 10
26.2
Fabric Neoforge
2mo ago 9
26.1.x 26w14a
Fabric Neoforge
2mo ago 8
26.1.x 26w14a
Fabric Neoforge
2mo ago 8
26.1.x 26w14a
Fabric Neoforge
2mo ago 7
26.1.x 26w14a
Fabric Neoforge
2mo ago 7
26w14a
Fabric Neoforge
2mo ago 6
26.1.1
Fabric Neoforge
2mo ago 6
26.1
Fabric Neoforge
2mo ago 6
26.1
Fabric
2mo ago 5
1.21.11
Neoforge
2mo ago 5
1.21.11
Fabric
2mo ago 5
1.21.11
Fabric
2mo ago 5
1.21.11
Neoforge
2mo ago 5
1.21.11
Neoforge
2mo ago 4
1.21.11
Fabric
2mo ago 4
1.21.11
Neoforge
2mo ago 4
1.21.11
Fabric
2mo ago 4
1.21.11
Neoforge
2mo ago 4
1.21.11
Fabric
2mo ago 4
1.21.11
Neoforge
2mo ago 4
1.21.11
Fabric
2mo ago 3
1.21.11
Neoforge
2mo ago 3
1.21.11
Fabric
2mo ago 3
1.21.11
Neoforge
2mo ago 3
1.21.11
Fabric
2mo ago 3
1.21.10
Neoforge
2mo ago 3
1.21.10
Fabric Quilt
2mo ago 3
1.21.9
Neoforge
2mo ago 3
1.21.9
Fabric Quilt
2mo ago 3
1.21.8
Neoforge
2mo ago 3
1.21.8
Fabric Quilt
2mo ago 3
1.21.8
Neoforge
2mo ago 3
1.21.8
Fabric Quilt
2mo ago 3
1.21.8
Fabric Quilt
2mo ago 2
1.21.7
Fabric Quilt
2mo ago 2
1.21.6
Fabric Quilt
2mo ago 2
1.20.x
Fabric
2mo ago 2
1.20.4
Fabric
2mo ago 2
1.20.2
Fabric
2mo ago 2
1.20.1
Fabric
2mo ago 2
1.21.5
Fabric Quilt
2mo ago 2
1.21.4
Fabric Quilt
2mo ago 2
1.21.x
Fabric Quilt
2mo ago 2
1.21.x
Fabric Quilt
2mo ago 2
1.21.4
Fabric Quilt
2mo ago 2
1.21.x
Fabric Quilt
2mo ago 2
1.21.x
Fabric Quilt
2mo ago 2
1.21.4
Fabric Quilt
2mo ago 2
1.21.x
Fabric Quilt
2mo ago 2
1.21.x
Fabric Quilt
2mo ago 2
1.21.x
Fabric Quilt
2mo ago 2
1.21.x
Fabric Quilt
2mo ago 2
1.20.x
Fabric Quilt
2mo ago 2
1.20.4
Fabric Quilt
2mo ago 2
1.20.2
Fabric Quilt
2mo ago 2
1.20.1
Fabric Quilt
2mo ago 2
1.20.1
Fabric Quilt
2mo ago 2
1.20.2
Fabric Quilt
2mo ago 2
1.20.4
Fabric Quilt
2mo ago 2
1.21
Fabric Quilt
2mo ago 2
1.20.x
Fabric Quilt
2mo ago 2
1.21
Fabric Quilt
2mo ago 2
1.20.x
Fabric Quilt
2mo ago 2
1.21
Fabric Quilt
2mo ago 2
1.20.x
Fabric Quilt
2mo ago 1
1.21
Fabric Quilt
2mo ago 1
1.20.x
Fabric Quilt
2mo ago 1
1.21
Fabric Quilt
2mo ago 1
1.20.x
Fabric Quilt
2mo ago 1
1.20.x
Fabric Quilt
2mo ago 1
1.20.x
Fabric Quilt
2mo ago 1
1.20.x
Fabric Quilt
2mo ago 1
1.20.2
Fabric Quilt
2mo ago 1
1.20.x
Fabric Quilt
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.20.2
Fabric
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.20.2
Fabric
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.20.2
Fabric
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.20.2
Fabric
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.20.2
Fabric
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.20.2
Fabric
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.20.2
Fabric
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.20.2
Fabric
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.20.4
Fabric
2mo ago 1
1.20.2
Fabric
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.20.2
Fabric
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.20.2
Fabric
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.20.2
Fabric
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.20.2
Fabric
2mo ago 1
1.20.2
Fabric
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.20.x
Fabric
2mo ago 1
1.19.4
Fabric
2mo ago 1
1.19.3
Fabric
2mo ago 1
1.19.2
Fabric
2mo ago 1
1.18.2
Fabric
2mo ago 1
1.19.4
Fabric
2mo ago 1
1.19.3
Fabric
2mo ago 1
1.19.2
Fabric
2mo ago 1
1.18.2
Fabric
2mo ago 1
1.19.4
Fabric
2mo ago 1
1.19.3
Fabric
2mo ago 1
1.19.2
Fabric
2mo ago 1
1.18.2
Fabric
2mo ago 1
1.19.4
Fabric
2mo ago 1
1.19.3
Fabric
2mo ago 1
1.19.2
Fabric
2mo ago 1
1.18.2
Fabric
2mo ago 1
1.19.4
Fabric
2mo ago 1
1.19.4
Fabric
2mo ago 1
1.19.3
Fabric
2mo ago 1
1.19.3
Fabric
2mo ago 1
1.19.2
Fabric
2mo ago 1
1.18.2
Fabric
2mo ago 1
1.19.3
Fabric
2mo ago 1
1.19.2
Fabric
2mo ago 1
1.18.2
Fabric
2mo ago 1
1.19.2
Forge
2mo ago 1
1.18.2
Forge
2mo ago 1
1.19.3
Fabric
2mo ago 1
1.19.2
Fabric
2mo ago 1
1.18.2
Fabric
2mo ago 1
1.19.3
Fabric
2mo ago 1
1.19.2
Fabric
2mo ago 1
1.18.2
Fabric
2mo ago 1
1.19.2
Forge
2mo ago 1
1.18.2
Forge
2mo ago 1
1.19.2
Forge
2mo ago 1
1.18.2
Forge
2mo ago 1
1.19.3
Fabric
2mo ago 1
1.19.2
Fabric
2mo ago 1
1.18.2
Fabric
2mo ago 1
1.19.2
Fabric
2mo ago 1
1.18.2
Fabric
2mo ago 1
[LogichniyPeop](https://github.com/LogichniyPeop) translated this mod to Ukrainian - Thank you so much for your translations. As always, anyone is welcome to contribute translations at any time.
(Incomplete) port to Minecraft 26.3.

  • Note on this beta release:**
In 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.
Backported latest mod version to 26.1.
Mitigated **__a__** crash on NeoForge 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:**
This crash was related to 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.

Reminder than anyone (yes you) is welcome to translate this mod at any time!

Reminder than anyone (yes you) is welcome to translate this mod at any time!

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!
### User-facing changelog

### 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()
Added Russian translations by [ADevnin](https://github.com/ADevnin) - Thank you for translating this mod.
Port to 26.2.
  • Added extra miscellaneous translation keys
  • Fixed rendering bug related to TBlockStateElement where some blocks wouldn't render properly
### User-facing changelog

### 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's Codec<A> implementations for Mojang's DFU
  • Added dropShadowProperty() to TLabelElement
  • Added miscellaneous TElement implementations 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.
TCDCommons API Icon
Download TCDCommons API
Select game version
Select platform