Back to mods
Biscuit! project artwork

Modrinth · Minecraft mod

Biscuit!

A simple API for working with 1.20.5 cookies and transfers in an easy and secure way!

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Biscuit! release matches 1.20.3?

Updated 1 year ago
Best match for your filters 1.1.1
Game version 1.20, 1.20.1, 1.20.2
Loader Fabric, Quilt

Biscuit! 1.1.1 targets 1.20, 1.20.1, 1.20.2 with Fabric, Quilt. Do not install it on the client. It must be installed on the dedicated server. All 1 required mods have matching files.

Where it goes

Is Biscuit! required on the client, server, or both?

Do not install it on the client. It must be installed on the dedicated server.

Client Not supported
Dedicated server Required
Loader for this release Fabric, Quilt
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked server-only.

What else does Biscuit! 1.1.1 need?

1.1.1 on 1.20.3. Every mod below is checked against that same setup.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup.

Fabric API Needed by Biscuit! 1.1.1
required
Matching file found Matched file: [1.20.3] Fabric API 0.91.1+1.20.3

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Biscuit! without breaking your instance.

Built for Biscuit! 1.1.1 on 1.20.3. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.1.1. It targets 1.20, 1.20.1, 1.20.2 with Fabric, Quilt; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    Do not install it on the client. It must be installed on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.1.1. It opens that exact file at the source.

About this project

What does Biscuit! add?

Maintenance
PRs Welcome

ko-fi

Biscuit!

A simple API for working with 1.20.5 cookies and transfers in an easy and secure way!

Features

  • Cookies as POJOs
  • Injected interfaces on many networking classes
  • Cookie Signing for tamper detection
  • Event system
  • Automatic identifier generation (May not be possbile)
  • Encryption
  • Spreading large data across many cookies

Setup

In your build.gradle include:

repositories {
    maven { url "https://api.modrinth.com/maven" }
}

dependencies {
  modImplementation("maven.modrinth:biscuit!:1.1.0")
}

Dev

// Make a class to represent your cookie
public static class TestCookie {

    private final String data;
    
    public TestCookie(String data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return data;
    }
}

// Register the cookie:
Biscuit.register(new Identifier("test", "cookie"), TestCookie.class);

// Register the cookie with a secret for tamper detection. The secret must be the same on all servers requesting this cookie:
Biscuit.register(new Identifier("test", "cookie"), TestCookie.class).setSecret("my_secret");

// Set/Get the cookie from the ServerPlayerEntity, ClientConnection, or any of the network handlers (Not handshake)
TestCookie cookie = new TestCookie("whoohoo!");
player.setCookie(cookie);

player.getCookie(TestCookie.class).whenComplete((cookie, throwable) -> {
    System.out.println(cookie);
});

Set a cookie before your mod (or another mod/the transfer command) transfers the player:

BiscuitEvents.PRE_TRANSFER.register((packet, profile, cookieJar, ci) -> {
    cookieJar.setCookie(cookie);
});

Project description from Modrinth.

Pick your setup

Biscuit! by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

36 available setups

Showing the newest 12 of 18 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Biscuit! versions and loaders

2 of 3 releases match
Clear filters

Looking for an older file? The official Modrinth project page is in Resources.