AutoBlockRefiller features

Place, empty, refill. Blocks, snowballs, rockets, and a winter touch.

The core loop

When you right-click to place a block, the mod notes which hand you used and what you were holding. Two ticks later, once the game has finished resolving the placement, it looks at that slot: if placing the block emptied it, and more of the same block sit in your inventory, a full stack slides into the empty slot. The short delay is on purpose. Loader hooks fire before the block is placed, so checking immediately would see a slot that is not empty yet.

Two inventories: before, one plank in the hotbar and two stacks of 64 planks in the main inventory; after, 64 planks in the hotbar and one stack left in the inventory.
The stack moves out of your main inventory into the emptied hotbar slot.

Blocks and used-up items

Where refills come from

Both hands covered

Placing from the selected hotbar slot refills that slot; placing from the offhand refills the offhand. Each hand is handled independently.

Running low

When the last matching stack goes into your hand, a note above the hotbar says Last stack of Oak Planks. When the slot runs empty and nothing is left, it says Out of Oak Planks. Each refill also plays a quiet pickup sound that only you hear. Both can be turned off: runningLowWarning and refillSound.

Winter update

On by default, and off with /autoblockrefiller set winter false.

The /autoblockrefiller command

Also available as /abr.

CommandWhoWhat it does
/autoblockrefillerEveryoneShows every setting and its value. Operators can click a value to flip it; hover a setting to see what it does.
/autoblockrefiller toggleEveryoneTurns refilling off or on just for you. Remembered across restarts. Servers can switch this off with playerToggle.
/autoblockrefiller set <setting> <value>OperatorsChanges a setting right away and saves it. Tab completes setting names and values.
/autoblockrefiller reset <setting>|allOperatorsPuts one setting, or all of them, back to the default.

Installed without Mycel?

The game still starts. AutoBlockRefiller stays off, writes one warning to the log, and tells every player who joins in chat that Mycel is missing, with a link to download it. Install Mycel for the same Minecraft version and loader and it works.

Performance

The mod does nothing until you right-click with a block or item, then one small inventory scan two ticks later. There are no per-tick loops and nothing runs on the client.