The Best Resource for Minecraft
The Best Resource for Minecraft

CoFH Core Wiki

CoFH Core is the essential library mod for the Thermal Series that provides a robust suite of admin-style commands, unique enchantments like Holding, and advanced game mechanics such as a friend list system and custom fluids.

7 sections · 961 words

Overview#

CoFH Core (Common Foundation Helper) is the foundational library required for all Team CoFH mods, including the Thermal Series (Expansion, Foundation, Dynamics), Redstone Arsenal, and Ensorcellation. Beyond providing shared code and APIs, it introduces a significant array of "Admin Powers" accessible to players through a comprehensive command system, unique enchantments, and gameplay tweaks.

In versions 1.20.1 and 1.19.2, CoFH Core acts as the central registry for various mechanics such as the Friend List system, custom status effects, and fluids like Essence of Knowledge. It also includes performance optimizations, such as the ability to disable all particles and optional color-blind textures for color-dependent features.

Commands (Admin Powers)#

CoFH Core adds a powerful set of commands prefixed with /cofh. These are designed for server administration, testing, and utility.

Command Syntax Description
friend /cofh friend <gui|list|add|remove> <player> Manages the CoFH Friend List for securing blocks.
heal /cofh heal [player] Restores health, hunger, and air; removes negative effects.
ignite /cofh ignite <targets> [duration] Sets the specified entity on fire for a set duration (ticks).
zap /cofh zap <targets> Strikes the target with a bolt of lightning.
tpx /cofh tpx [player] <dimension|coords> Advanced teleportation across dimensions.
enchant /cofh enchant [player] <enchantment> [level] Applies any enchantment to the held item, bypassing limits.
enderchest /cofh enderchest [player] Remotely opens a player's Ender Chest inventory.
repair /cofh repair [player] Fully repairs all equipment currently held or worn by the player.
invis /cofh invis <targets> <true|false> Toggles invisibility for the specified targets.
invuln /cofh invuln <targets> <true|false> Toggles invulnerability (God Mode) for the targets.
tps /cofh tps [o|a|dimension] Displays the server's Ticks Per Second (performance).
clearblocks /cofh clearblocks <player> <xR> <yR> <zR> [blocks] Removes specific blocks in a radius around a player.
killall /cofh killall [type] Removes all loaded entities of a specific type from the world.

Enchantments#

CoFH Core introduces several specialized enchantments that enhance storage, resource gathering, and combat. These are often used in conjunction with Thermal Series tools.

Enchantment Max Level Applicable To Effect
Holding IV Satchels, Energy Cells Increases the internal storage capacity of the item.
Insight III Tools, Weapons Increases the amount of Experience (XP) dropped when mining or killing.
Leech IV Weapons Restores a portion of the user's health upon killing a mob.
Multishot IV Bows Fires multiple projectiles (arrows) at the cost of only one.
Smashing I Pickaxes Automatically crushes ores into dust (Pulverizer equivalent).
Smelting I Tools Automatically smelts mined blocks (e.g., Iron Ore to Iron Ingot).
Soulbound I All Items The item remains in the player's inventory upon death.
Vorpal III Swords, Axes Grants a chance for massive critical damage and mob head drops.

Fluids#

The mod adds several utility fluids that are primarily used in Thermal Series machines but can be handled in buckets or tanks.

  • Essence of Knowledge (Liquid XP): A green fluid representing experience. 20mB is equivalent to 1 XP point. It can be consumed or used in various enchanting machines.
  • Honey: A thick, yellow fluid. It slows down entities that walk through it and can be used as a food source or crafting ingredient.
  • Steam: A gaseous fluid produced by boilers, used to power Steam Turbines and other industrial machinery.
  • Potion: A fluid form of various potion effects, allowing them to be stored in tanks or used in specialized dispensers.

Status Effects#

CoFH Core registers several unique status effects that can be applied via potions, commands, or environmental hazards.

Effect Type Description
Blast Resistance Positive Grants total immunity to explosion damage.
Chilled Negative Reduces movement speed and attack damage significantly.
Clarity Positive Increases XP gain by 40% per level of the effect.
Enderference Neutral Prevents Endermen from teleporting and players from using Ender Pearls.
Love Positive Forces animals into "Love Mode" for breeding without food.
Magic Resistance Positive Grants immunity to magic-based damage (e.g., Instant Damage potions).
Panacea Positive Automatically cures and grants immunity to all negative status effects.
Shock Resistance Positive Grants immunity to lightning strike damage.

Mechanics and Tweaks#

Friend List System

Players can manage a global "Friend List" using /cofh friend gui. This list is used by other CoFH mods (like Thermal Expansion) to manage permissions for secured blocks. If a block is set to "Restricted," only the owner and those on their friend list can access it.

Named Mob Death Messages

By default, Minecraft only shows death messages for players. CoFH Core enables death messages for any mob that has been given a custom name using a Name Tag, allowing players to track the fate of their pets or specific bosses.

Game Tweaks

  • Flat Bedrock: An optional configuration that flattens the bottom of the Overworld and Nether into a single layer of Bedrock.
  • Color-blind Textures: Provides alternative textures for items that rely on color (like Redstone Flux levels) to improve accessibility.
  • Particle Control: Includes a master toggle in the client configuration to disable all particles, significantly boosting FPS on lower-end machines.

Maintenance and Updates

As of the May 25 updates, the mod has undergone significant internal refactoring to improve compatibility with newer Forge versions. These updates focused on bugfixes regarding fluid rendering and command syntax consistency across the 1.19 and 1.20 versions.

Configuration#

CoFH Core uses the standard TOML configuration format. Settings are split into two primary files:

  1. cofh_core-client.toml: Located in the /config folder. Contains visual settings like color-blind mode, particle toggles, and UI preferences.
  2. cofh_core-server.toml: Located in the /saves/WORLD_NAME/serverconfigs folder (or /world/serverconfigs for dedicated servers). Contains gameplay settings, command permissions, and enchantment balancing.

To apply server configurations to all new worlds, copy the cofh_core-server.toml file to the /defaultconfigs folder in your main Minecraft directory.