The Best Resource for Minecraft
The Best Resource for Minecraft

Carrots Library Wiki

A foundational library mod providing shared logic, fluid systems, and armor modification frameworks for The_Wabbit0101's mod ecosystem, including essential support for temperature and wellness mechanics.

7 sections · 757 words

Overview#

Carrots Library is a technical dependency mod developed by The_Wabbit0101. It serves as the core framework for a suite of mods designed to enhance survival, aesthetics, and utility in Minecraft. While it does not introduce significant world-altering content like biomes or dimensions on its own, it provides the essential backend code required for advanced features such as armor liners, custom fluid handling, and cross-mod integration.

Primarily utilized in versions 1.12.2 through 1.19.4, the library ensures that all dependent mods share a stable set of APIs for NBT management, recipe conditions, and GUI elements. It is a mandatory installation for players using mods like Armor Underwear or Vanilla Food Pantry.

Core Mechanics#

The library introduces several backend systems that modify how items and data are handled in the game engine.

Armor Liner Framework

One of the most significant systems provided by the library is the logic for the Armor Liner system. This allows other mods to attach "liners" to existing armor pieces via NBT data. This system is designed to be non-destructive, meaning it can apply temperature-regulating properties to any vanilla or modded armor without overwriting the armor's original stats or enchantments.

Recipe Conditions

Carrots Library adds custom recipe conditions to the Forge loading system, specifically the carrots:tag_exists condition. This allows modpack creators and the library's own dependent mods to dynamically enable or disable recipes based on whether specific item tags, potions, or enchantments are present in the current mod environment.

Tag and NBT Support

The library includes specialized classes for handling complex item tags. This includes a denylist for random enchantments (carrots:random_enchants_denylist), ensuring that certain powerful or incompatible enchantments are excluded from loot tables and random generation functions.

Items#

While primarily a library, the mod adds several base items that serve as templates or functional tools for its dependent mods. These items often feature advanced logic, such as the ability to be consumed directly or used in fluid tanks.

Item Description Special Properties
Cow's Milk Bucket A drinkable version of the standard milk bucket. Can be consumed directly; supports fluid tank storage.
Oat Milk Bucket A plant-based milk alternative. Used in various food recipes; features a custom 'flat' color set.
Potable Water Bucket Purified water used for survival. Can be chilled or heated when integration plugins are active.
XP Bucket A bucket containing liquid experience. Allows for the transport and storage of experience points as a fluid.
Tonic Bucket A high-capacity container for potion effects. Provides 4x the duration of a standard potion bottle.

Tonic Buckets

Tonic Buckets are a unique item class within the library. They track specific NBT tags such as 'fortified' and 'hidden', which are used by the Vanilla Food Pantry mod to create advanced status-effect liquids. They are compatible with most generic fluid tanks and display the dominant potion color when stored.

Fluids#

Carrots Library registers several fluids that are used across the Wabbit's mod suite. These fluids can exist as blocks in the world if placed, though they are primarily intended for use in buckets and machines.

  • Seed Oil: A basic vegetable oil used in cooking and industrial recipes.
  • Potable Water: A clean water source that interacts with temperature mods.
  • Milk Fluids: Includes Cow's Milk and Oat Milk, featuring custom translucency and color settings for realistic rendering in tanks.
  • Liquid Experience: A glowing fluid that represents raw XP.

Integration Plugins#

The library acts as a bridge between survival mods and the player's equipment. Specific plugins are often required to activate these features:

  • Tough As Nails Plugin: Enables the Armor Liner system to interact with the Tough As Nails temperature bar, allowing liners to provide hyperthermia or hypothermia resistance.
  • Survive Plugin: Provides wellness and hydration logic for the library's fluids, making Potable Water essential for survival.

Dependent Mods#

The following mods require Carrots Library to function correctly:

  • Armor Underwear: Adds the physical liners that use the library's NBT framework.
  • Vanilla Food Pantry: A massive expansion to the food and farming system.
  • Super Blocks / Styled Blocks: Decorative block mods that utilize the library's shared rendering code.
  • Upsizer Mod: Uses the library's inventory logic to increase stack sizes.
  • Personal Effects: A death-chest style mod that utilizes the library's NBT saving framework.

Configuration#

The mod uses the standard Forge configuration framework. The main config file is typically named carrotslib-common.toml and can be found in the /config folder of your Minecraft directory.

Option Type Default Description
debugMode Boolean false Enables verbose logging for troubleshooting API calls.
enableLinerLogic Boolean true Toggles the core framework for armor modifications.
fluidTranslucency Boolean true Controls whether custom fluids like Seed Oil use advanced rendering.