Plugin Name: Extra Block Utils
Author: NAIZO
Tested MCreator Versions: 2024.1, 2024.2, 2024.3, 2024.4, 2025.1, 2025.2, 2025.3
Tested Minecraft Versions: Forge/NeoForge: 1.16.5, 1.18.2, 1.19.2, 1.20.1, 1.20.4, 1.21.1, 1.21.5, 1.21.8
Plugin Type: Procedures, Java Plugin
Tags: Custom Mechanics
Adds a procedure block that transfers nearby item entities into container blocks
This plugin introduces a new procedure block that automatically inserts items from an Item Entity (dropped item) into any container block such as chests, barrels, shulker boxes, furnaces, or modded inventories.
The system uses Minecraft’s native inventory logic and safely handles stacking, merging, and slot filling.
Note
If the input is a raw Item (not an ItemStack), you must convert it to an ItemStack before inserting it into a container.
MCreator procedures and Minecraft inventory logic require an ItemStack to properly set the count, copy tags, and handle stacking behavior.

✨ How it Works
The generated code:
- Detects an ItemEntity at the procedure’s location
- Copies the item stack and reads the total item count
- Locates the container block at the coordinates (x, y, z)
- Iterates through every slot in the container
- Inserts items by:
- Filling empty slots first
- Merging into matching stacks when possible
- Respecting max stack sizes
- Updates the block entity to apply changes visually and logically
This makes item insertion fast, safe, and fully automatic.
🚀 Features
- Works with all vanilla and modded containers.
- Automatically merges stacks and respects max stack limits.
- Inserts as many items as possible until the source stack is empty.
- Non-container blocks are safely ignored.
- Perfect for automation mechanics, custom machines, droppers, item collectors, and more.
Patch Notes
- 1.0.0 :
- Adds a Procedure in the Block Management Tab that allows you to add items to a chest or container safely.
