All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Automatic replacement

Automatic replacement

by xupengrui • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Automatic Replacement

✨ Features

Auto Totem Equip

  • Automatically moves Totem of Undying to offhand when empty
  • Toggle via ESC → Options menu button
  • Global setting, syncs to all players

Commands

Command Effect
/auto true Enable
/auto false Disable
/auto toggle Toggle
/auto status Check status

Stack Size Changes

Item Limit
Totem of Undying 8
Milk Bucket 16
Cake 8
Shield 4
All Boats / Chest Boats 8
All Minecarts 8
All Mob Heads 8
All Potions 16
Name Tag 16
Armor Stand 4
All Beds 16
Saddle 16
All Buckets 16
Bundle (empty) 16
Elytra 8
Book and Quill (empty) 8
All Music Discs 16

World Height

  • Min Y: -128
  • Max Y: 1024

🔧 Technical Details

  • Fabric API networking
  • Mixin for stack size
  • Mixin for Options button

📦 Requirements

  • Minecraft 1.20.1+
  • Fabric Loader ≥0.19.2
  • Fabric API (latest)

📄 License

MIT

How to Install Automatic replacement (Mod)

Automatic replacement by xupengrui is verified for Fabric, Forge across Minecraft versions 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.21, 1.21.1, 1.21.10 (latest release: 1.2.1+mc26.1, file size: 45 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.21, 1.21.1, 1.21.10) and platform (Fabric, Forge).
  2. Make sure you have the compatible loader or environment installed for Fabric, Forge.
  3. Move the downloaded Automatic replacement file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.1.x
Fabric
2mo ago 1
1.20.1
Forge
6mo ago 1
26.1.x
Fabric
6mo ago 1
1.20.x
Fabric
6mo ago 1
1.20.x
Fabric
6mo ago 1
1.21.x
Fabric
6mo ago 1
1.21.11
Fabric
6mo ago 1
1.21.11
Fabric
7mo ago 1
1.21.11
Fabric
7mo ago 1
1.21.11
Fabric
7mo ago 1
1.21.11
Fabric
7mo ago 1
1.21.11
Fabric
7mo ago 1
# 更新日志 / Changelog

## 1.2.1+mc26.1

### 中文

#### 修复
  • 修复 26.1 版本下物品无法堆叠的问题**:新版游戏重写了堆叠机制,导致原有功能失效。现已适配新版机制,普通物品恢复 64 个一组的堆叠上限,特殊物品(不死图腾 8 个、药水 16 个、唱片 16 个等)按配置生效,带耐久的工具和盔甲保持不可堆叠。
  • 修正一处导入错误导致的编译失败。

#### 适配
  • 完整适配 Minecraft 26.1(Fabric Loader 0.19.2 / Fabric API 0.149.1+26.1.2,Java 25)。
  • 所有改动均通过启动实测验证生效。

#### 未变
  • 自动补图腾、世界高度扩展(最低高度 -128 / 高度 1024)、多语言支持等既有功能保持不变。

### English

#### Fixed
  • Fixed items failing to stack on MC 26.1**: the stacking system was rewritten in this version, breaking the previous implementation. The mod now follows the new mechanics — normal items stack up to 256 again, special items (Totem of Undying 8, Potions 16, Music Discs 16, etc.) use their configured values, and tools/armor with durability remain non-stackable.
  • Fixed an import error that caused a compile failure.

#### Adapted
  • Full compatibility with Minecraft 26.1 (Fabric Loader 0.19.2 / Fabric API 0.149.1+26.1.2, Java 25).
  • All changes verified through a live startup test.

#### Unchanged
  • Auto-totem, world height expansion (min height -128 / height 1024), and multi-language support remain unchanged.
# Version 1.2.1+mc1.20.1 – Changelog
  • Forge Exclusive Version*

## ⚠️ Important Announcement
  • The expanded world height feature (Y: -128 ~ 1024) is removed in this 1.20.1 Forge update.**
  • Cause: The function leads to client-server registry desync in multiplayer games, causing biome display anomalies and abnormal disconnections.
  • Changes: The mod rolls back to vanilla’s default world height range (Y: -64 ~ 320). It runs stably in single-player and multiplayer, compatible with vanilla servers without this mod.

## 🧪 How to keep extended world height
> The Y=-128 to 1024 world expansion is reserved for the mod’s **1.21.x Forge editions**.
> Full multiplayer support is finished on 1.21.x, requiring the mod installed on both client and server.

If you need tall world on 1.20.1 Forge, keep the old build **1.2.0+mc1.20.1**, which is only fit for single-player or experimental tests.

## 📦 Other Optimizations
  • Optimized the auto off-hand totem fill for higher stability.
  • Button text refreshes immediately after switching in-game language.
  • Item stack limit modifying mixins are moved to server-only to fix registry conflicts.

Thanks for your support. To experience full extended world height, update to the mod’s newest 1.21.x Forge build.
# Automatic Replacement – Version 1.2.1+mc26.1

## 🚀 New Features (for 26.1)
  • Auto Totem Refill** – When your offhand totem is consumed, the mod automatically replaces it with a new totem from your inventory.
  • Commands** – /auto true, /auto false, /auto toggle, /auto status to control the feature globally.
  • Network Sync** – The server synchronises the current state to all connected clients, ensuring buttons display correctly.

## ❌ Removed Features (for 26.1 only)
  • Stack size modifications** have been temporarily removed due to API changes in Minecraft 26.1.
All items now use their vanilla stack sizes.
  • If you need custom stack sizes, please use dedicated stack‑size mods like Sensible Stackables.*

## 🐛 Bug Fixes
  • Fixed a rare crash related to registry synchronisation when joining multiplayer servers.

## ⚙️ Technical Notes
  • Requires **Fabric API 0.149.1+26.1.2**.
  • Java 25 is required.
  • No mixins are used for this version (only commands, events, and networking).

## 📦 Full Support
  • Singleplayer** – fully tested.
  • Multiplayer** – **both client and server must install this mod** for auto totem refill to work correctly. The server needs the mod to run the refill logic.

## 🔮 Future Plans
Once Fabric provides a stable API for modifying default item components in 26.1, stack size tweaks will be reintroduced.


## 📥 Download

  • Enjoy the mod!*
# Version 1.2.1+mc1.20.1 – Changelog

## ⚠️ Important Announcement

  • World height extension (Y = -128 ~ 1024) has been removed in this release for Minecraft 1.20.1.**

  • Why**: This feature caused registry synchronisation issues between client and server in multiplayer, leading to corrupted biome data on screen and broken connections.
  • What this means**: This version fully restores the vanilla world height (Y = -64 ~ 320). It now works reliably in **both singleplayer and multiplayer**, even when the server does not have the mod installed.

## 🧪 Want to play with extended world height?

> **Please use the higher Minecraft version (1.21.x) of this mod.**
> The 1.21.x versions include the full world height extension (Y = -128 to 1024) and are fully compatible with multiplayer (server must also have the mod installed).

If you still wish to use the extended height on 1.20.1, you can keep using the older **1.2.0+mc1.20.1** release, but remember it is **only recommended for singleplayer / beta testing**.

## 📦 Other improvements

  • Auto totem refill now works more reliably.
  • Button text updates correctly when language changes.
  • Stack size tweak mixin is now server‑side only, avoiding registry conflicts.


  • Thank you for your support. For the best experience with world height extension, upgrade to Minecraft 1.21.x and use the latest version of this mod.*
# Automatic Replacement Mod – Singleplayer Overview

This mod is designed for **Minecraft 1.20.x** (1.20.1 – 1.20.6) and has been fully tested on **1.20.1**. It adds two major features for singleplayer: **auto totem refill** and **extended world height**.
  • Please read the “Known Issues” section before using.**


## ✨ Features

### 1. Auto Totem Refill
  • When your totem of undying in the offhand (or main hand, depending on configuration) is used, the mod **automatically takes another totem from your inventory and places it into your offhand**.
  • Commands** (available in singleplayer or as operator):
  • /auto true – enable auto refill
  • /auto false – disable auto refill
  • /auto toggle – toggle the feature
  • /auto status – show current state
  • Convenient buttons** are added to:
  • Inventory screen (top‑left corner)
  • Creative inventory screen (top‑left corner)
  • Options screen (bottom‑right corner)

### 2. Extended World Height
  • The world height limit is expanded:
  • Minimum Y = -128** (was -64)
  • Maximum Y = 1024** (was 319)
  • This gives you much more vertical building space and deeper underground exploration.


## ⚠️ Known Issues (Singleplayer)

  • Multiplayer compatibility**
The mod is **not guaranteed to work on multiplayer servers** (unless the server also runs the exact same version of the mod). When connecting to a server without the mod, you may see registry synchronization errors (e.g., raw biome data printed on screen).
→ **For singleplayer / local worlds only.**

  • World height extension**
Generated worlds that use the new height range may not load correctly if you downgrade to an older Minecraft version or remove the mod.
→ **Backup your worlds before creating them with the extended height.**

  • Auto refill button**
In some rare cases, the button text may not refresh immediately after toggling the feature via command. Re‑opening the inventory screen fixes it.


## 📦 Requirements

  • Fabric API (latest version for 1.20.x)
  • Minecraft 1.20.1 – 1.20.6


## 🧪 How to Use (Singleplayer)

1. Install the mod and Fabric API.
2. Start a singleplayer world (or create a new one to benefit from the extended height).
3. Use /auto toggle to enable/disable totem refill, or click the button in your inventory/options screen.
4. Enjoy automatic totem replacement and a taller world!


## 📜 License

MIT – free to use, modify, and redistribute.


## 🙏 Credits

Developed by Monkey. Totem refill inspired by classic “auto totem” utilities; world height extension made possible by Fabric API.
# Version 1.2.0 Changelog

## 🚀 New Features

  • Automatic Totem Replacement**
When your main hand totem is used, the mod automatically replaces it with a new totem from your inventory (places it into your offhand).

  • Stack Size Tweaks**
Many items now have increased (or adjusted) stack sizes for better inventory management. Examples:
  • Potions → 16
  • Beds → 16
  • Boats & Chest Boats → 8
  • Minecarts → 8
  • Totems of Undying → 8
  • Heads → 8
  • Music Discs → 16
  • Buckets (all types) → 16
  • Shields → 4
  • Armor Stands → 4
  • Elytra → 8
  • Saddles → 16

  • World Height Extension**
The world height limit has been extended:
  • Minimum Y = -128** (was -64)
  • Maximum Y = 1024** (was 320)

  • Full Modded Item Support**
Modded items are automatically detected and can follow the same stacking rules via vanilla tags (e.g., #minecraft:beds, #minecraft:skulls, #minecraft:buckets, etc.).
Potion‑like items (with PotionContents component) always stack to 16.

## 🐛 Bug Fixes

  • Fixed an issue where some special items (e.g., bundles, written books) did not respect custom stack sizes.
  • Improved compatibility with other mods that modify item stack logic.

## ⚙️ Technical Changes

  • Updated to Minecraft **1.21.1 – 1.21.10** (tested on all minor versions).
  • Requires Fabric API (latest version for 1.21.x).

## 📦 Mod Version

  • 1.2.0+mc1.21.1** – supports all Minecraft versions from 1.21.1 through 1.21.10.


For full details, check the [GitHub repository](https://github.com/XPR2014/automatic-replacement-template-1.21.11).
[1.2.0] 1.2.0+mc1.21.11 by xupengrui on May 19, 2026
Download
# Custom Stack Size Mod – Overview

This mod adjusts the maximum stack size of various items in Minecraft to improve inventory management and balance. It works with both vanilla and modded items, using flexible detection methods such as item tags and data components.

## ✨ Features

  • Vanilla item adjustments**
Many vanilla items have their stack sizes changed to more practical values (e.g., boats stack to 8, totems to 8, potions to 16, beds to 16, etc.).

  • Automatic detection of modded potions**
Any item that behaves like a potion (contains a PotionContents component) automatically gets a stack size of 16 – no extra configuration needed.

  • Tag‑based support for modded items**
Mod authors can make their items follow the same rules by adding them to existing vanilla tags (e.g., #minecraft:beds, #minecraft:boats, #minecraft:skulls, #minecraft:buckets, #minecraft:creeper_drop_music_discs).

  • Optional default rule for all modded items**
(Configurable) All non‑vanilla items can be assigned a default stack size (e.g., 64), with the possibility to exempt tools/armor via type checks.

## 🎯 Why this mod?

Vanilla Minecraft has inconsistent stack sizes for many items – some are limited to 1 or 16 for no obvious reason. This mod normalises them while respecting game balance:

| Item Category | New Stack Size |
|---------------------|----------------|
| Potions (all types) | 16 |
| Beds | 16 |
| Boats & Chest Boats | 8 |
| Minecarts | 8 |
| Totems of Undying | 8 |
| Heads | 8 |
| Music Discs | 16 |
| Buckets (all kinds) | 16 |
| Shields | 4 |
| Armor Stands | 4 |
| Elytra | 8 |
| Saddle | 16 |

  • (Full list in the mod’s documentation)*

## 🔌 Compatibility

  • Fabric** (Minecraft 1.21.11)
  • Works with any mod that uses standard Minecraft systems (tags, components).
  • For modded items to be recognised, they only need to be added to the appropriate vanilla tags – no special API required.

## 🛠️ Usage

Simply install the mod. No configuration is needed for the default behaviour.
If you want to change any stack size value, edit the config file (if provided by the mod) or modify the source code (the mod is open‑source).

## 📜 License

MIT – free to use, modify, and redistribute.

## 🙏 Credits

Inspired by the need for better inventory management and consistent item stacking rules.
Developed by Monkey.
[1.1.3] 1.1.3+mc1.21.11 by xupengrui on May 09, 2026
Download
# Automatic Replacement 1.1.3

## 🔧 Changes

  • Fixed some known issues



[1.1.2] 1.1.2+mc1.21.11 by xupengrui on May 09, 2026
Download
# Automatic Replacement 1.1.2

## 🔧 Changes

  • Fixed some known issues



[1.1.1] 1.1.1+mc1.21.11 by xupengrui on May 08, 2026
Download
# Automatic Replacement 1.1.1

## 🔧 Changes

  • Fixed some known issues
  • License changed to MIT
[1.1.0] 1.1.0+mc1.21.11 by xupengrui on May 05, 2026
Download
# Automatic Replacement 1.1.0

## ✨ New Features

### 🌍 Multi-Language Support
Added **8 languages**, automatically switches with game language settings:

| Language | Code | Status |
|----------|------|--------|
| Simplified Chinese | zh_cn | ✅ |
| English (US) | en_us | ✅ |
| English (UK) | en_gb | ✅ |
| Traditional Chinese | zh_tw | ✅ |
| Japanese | ja_jp | ✅ |
| Korean | ko_kr | ✅ |
| Swedish | sv_se | ✅ |
| Russian | ru_ru | ✅ |

### 📝 Localized Content
  • Button text
  • Command outputs (/auto true/false/toggle/status)
  • Network sync messages

## 🔧 Technical Improvements
  • Replaced hardcoded Chinese with Component.translatable()
  • Optimized language file structure
  • Added language fallback (Traditional Chinese falls back to Simplified Chinese)

## ✅ Other
  • No functional changes
  • No API changes
  • Fully backward compatible with 1.0.0

## 📄 License
CC0-1.0
[1.0.0] 1.0.0+mc1.21.11 by xupengrui on May 02, 2026
Download
# Automatic Replacement 1.0.0

## ✨ New Features

### 1. Auto Totem Equip
  • Automatically moves a Totem of Undying from your inventory to your offhand when empty
  • Toggle on/off via a **button in the ESC → Options menu**
  • Global setting, synchronized to all players

### 2. Commands

| Command | Effect |
|---------|--------|
| /auto true | Enable auto totem equip |
| /auto false | Disable auto totem equip |
| /auto toggle | Toggle on/off |
| /auto status | Check current status |

### 3. Stack Size Changes

| Item | New Stack Limit |
|------|----------------|
| Totem of Undying | 8 |
| Milk Bucket | 16 |
| Cake | 8 |
| Shield | 4 |
| All Boats / Chest Boats | 8 |
| All Minecarts | 8 |
| All Mob Heads | 8 |
| All Potions | 16 |
| Name Tag | 16 |
| Armor Stand | 4 |
| All Beds | 16 |
| Saddle | 16 |
| All Buckets | 16 |
| Bundle (empty) | 16 |
| Elytra | 8 |
| Book and Quill (empty) | 8 |
| All Music Discs | 16 |

### 4. World Height Expansion
  • Min Y: **-128**
  • Max Y: **1024**

## 🔧 Technical Details
  • Fabric API networking for state synchronization
  • Mixin modifying ItemStack.getMaxStackSize()
  • Client button added to Options menu via Mixin

## ⚠️ Known Issues
  • None

## 📦 Requirements
  • Minecraft 1.21.11+
  • Fabric Loader ≥0.17.2
  • Fabric API (latest)

## 📄 License
CC0-1.0
Automatic replacement Icon
Download Automatic replacement
Select game version
Select platform