# Auto Refill
**Never run out of blocks in the middle of building.** When the stack in your selected hotbar slot is used up, the next stack of the same item moves in from your inventory. You keep building, eating or shooting.
## What you get
- **Refills the slot you are using:** place your last block, eat your last piece of bread, shoot your last arrow: the next matching stack takes its place at once.
- **Matches exactly:** the item and its data must be identical. A plain pickaxe never replaces an enchanted one, and a renamed item never replaces a plain one.
- **Quiet:** switching to another slot does nothing. Only a slot that was holding something and is now empty gets refilled.
- **Optional offhand:** you can also let it refill from the offhand slot (off by default).
## Config
`config/autorefill-server.toml`
- `enabled`: turn the refill on or off
- `includeOffhand`: also use the offhand slot as a source
## Notes
- Throwing away the last item of a stack with Q refills the slot as well.
- Install on the server. In single player it just works.
- Minecraft 1.21.1, NeoForge 21.1.x.