跳到正文

TMT – Cook-book

作者:totalniy

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.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

# 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.

常见问题

TMT – Cook-book 支持哪些 Minecraft 版本?

TMT – Cook-book 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

TMT – Cook-book 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

totalniy 的其他作品

查看全部 →