# Home

[JackFredLib](https://github.com/JackFred2/JackFredLib) is a collection of small mods I use on the Fabric Toolchain. They've been documented here in case you wish to use them in your own setups. For information how to do that, see [Setup with Gradle](/jackfredlib/setup-with-gradle.md).

All modules have [JavaDoc](https://maven.jackf.red/javadoc/releases/red/jackf/jackfredlib/jackfredlib/latest) available online or in the sources.

## [JackFredLib: Base](/jackfredlib/jackfredlib-base/overview.md)

A collection of small utility classes, such as a `ResultHolder` class for working with Fabric's events as well as common methods for Minecraft's Codec system.

## [JackFredLib: Colour](/jackfredlib/jackfredlib-colour/overview.md)

Data structures representing colours and gradients, including builder-style gradient creation and client-side rendering methods for them. Also contains a collection of commonly used colours and gradients, such as pride flags.

## [JackFredLib: Extra Command Source Data](/jackfredlib/jackfredlib-ecsd/overview.md)

Adds a system for attaching and modifying data from a [`CommandSourceStack`](#user-content-fn-1)[^1]. This allows you to add additional data in the same vein of position or dimension, but allow allows for things such as repeatable arguments.

## [JackFredLib: GPS](/jackfredlib/jackfredlib-gps/overview.md)

Client-sided module for working out where the player is currently connected. Adds a static method to generate a unique ID based on a specific server, Realm or world, useful for minimap data. Also contains methods for grabbing information from the right-hand scoreboard or player list to further determine position.

## [JackFredLib: Lying](/jackfredlib/jackfredlib-lying/overview.md)

A server-oriented module for sending fake data to players on the packet level. Allows you to create and update fake entities and glowing highlights to clients on a per-player basis. Future plans include managed fake blocks, particules and sound helpers.

## [JackFredLib: Toasts](/jackfredlib/jackfredlib-toasts/overview.md)

Wrapper for easily creating [Toasts](https://en.wikipedia.org/wiki/Pop-up_notification) in-game, which support for custom icons (items or images), backgrounds and progress bars (updatable either at a constant rate or with an external source).

## [JackFredLib: Config](/jackfredlib/jackfredlib-config/overview.md)

A small config system designed for server-side mods using [Jankson](https://github.com/falkreon/Jankson). Includes basic support for migrations but no GUI support. Possibly deprecated in the future.

[^1]: **Yarn**: `ServerCommandSource`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.jackf.red/jackfredlib/home.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
