Skip to content
TMT - Cook-book

Quick rating

Community listing page, reviews may not be monitored by the author.

TMT - Cook-book

No reviews yet

TMT Cookbook Fix — a client-side patch for Jordy's Cookbook 1.0.0 on NeoForge 1.21.1. It resolves a game-crashing IllegalArgumentException: duplicate element bug that occurs when opening the cookbook screen under specific block conditions.

Mod Loaders
Minecraft

About

Description

# TMT Cookbook Fix

TMT Cookbook Fix is a lightweight, **client-side only** patch designed for servers and players using **Jordy's Cookbook** on **NeoForge 1.21.1**. It resolves a critical crash that occurs when opening the cookbook screen, ensuring a smooth and uninterrupted gameplay experience.

## The Problem

In version 1.0.0 of Jordy's Cookbook, the game crashes with an `IllegalArgumentException: duplicate element` when opening the cookbook screen. This happens if there is a block in the game whose registry path contains a repeated word (e.g., `minecraft:stone_stone`). The original mod uses `Set.of()`, which throws an exception upon receiving duplicate elements, causing the client to crash.

## The Solution

This patch applies a mixin that safely replaces the problematic `Set.of` logic with a `HashSet`. This prevents the crash entirely and allows the cookbook screen to open normally without any errors.

## Features

- **Crash Prevention** — completely fixes the `IllegalArgumentException: duplicate element` bug.
- **Client-Side Only** — you only need to install this on your client. The server does not require it.
- **Lightweight & Seamless** — a tiny mixin-based patch that runs in the background without affecting performance or adding any new items.
- **Drop-in Fix** — simply place it in your `mods` folder alongside Jordy's Cookbook, and the issue is gone.

## Dependencies

| Mod | Version | Required |
|---|---|---|
| Jordy's Cookbook | 1.0.0+ | Yes |
| Minecraft | 1.21.1 | Yes |
| NeoForge | 21.1+ | Yes |

## Installation

1. Download the `.jar` file.
2. Place it in the `mods` folder of your **client**.
3. Make sure **Jordy's Cookbook** is also installed on your client.
4. Launch the game.
5. The crash is fixed!

## Known Issues

- Currently none known.

## Credits

- Developed by **_TIV / TMT (Totalnaya Mod Team)**
- Created for the **Monotopia** server
- Rights holder: **Totalniy**

## Copyright & License

Copyright © 2026 Totalniy / TMT (Totalnaya Mod Team). All rights reserved.

This mod is proprietary software. You may not redistribute, decompile, modify, or claim ownership of this mod without explicit written permission from TMT.