
Better Dispenser+
Vanilla-style dispensers that plant, farm, chop, mine, feed, fight and place blocks.
Better Dispenser+ upgrades the normal dispenser. There is no new block, item or recipe: you load tools, seeds, food or blocks into a dispenser and power it with redstone. One pulse does one action. Collection is up to you, so use hoppers, hopper minecarts, water streams or any vanilla design.
- Minecraft 26.3 · Fabric Loader 0.19.5+ · Fabric API · Java 25
- Optional: Mod Menu for the in-game settings screen
- License: MIT

How it works
Put ANY items in a dispenser and give it a redstone pulse. The dispenser tries these actions in this order and does the first one that is possible:
- Sword attack
- Feed animals
- Bone meal on crops
- Cauldron with a bucket
- Tool use (axe, pickaxe, shovel, hoe)
- Plant seeds or saplings
- Place a block (Yes it can)
If an item is not handled by the mod, a blacklisted item, or nothing can be done, the dispenser behaves like vanilla (items it can't use stay inside). A dispenser with a mix of items uses the matching one automatically, so you can fill it with several tools at once.
Features
Planting
- Saplings: plants one sapling directly in front.
- 2x2 saplings: four of the same sapling in a 2x2 layout of the dispenser's inventory plant a 2x2 square (or just one if a spot is blocked). Can be turned off.

- Seeds: plants every valid empty spot up to 8 blocks straight ahead, one seed each. With several seed types in the dispenser, each spot gets a random one.
- Follows vanilla rules: farmland, light, and soil requirements.
Hoe
- Harvests only fully grown crops (wheat, carrots, potatoes, beetroot, nether wart and similar).
- Tills bare dirt, grass and paths into farmland.
- With seeds in the same dispenser it replants each spot, choosing randomly between seed types. A one-dispenser farm.
Bone meal
- Grows growing crops and stems that stand on farmland, up to 8 blocks straight ahead. It does not touch saplings, grass,flowers or other.
- Can be turned off, which gives vanilla bone meal behavior.
Axe and trees
- Chops the whole natural tree (can be turned off) in front (up to 64 logs). A structure without natural leaves, such as a log wall, loses only one log.
- Leaf decay: after the tree falls, its leaves break instantly and drop saplings, sticks and apples, with no extra durability cost. Leaves of a neighboring tree stay.
- Auto replant: plants the matching sapling if the dispenser holds one. 2x2 trunks are replanted as 2x2 when four saplings are available.
- Melons and pumpkins: an axe harvests ripe fruit next to a stem, up to 8 blocks ahead, and leaves the stem.
Pickaxe and shovel
- Mines or digs the single ANY block in front, only if the tool is the right one for it. Silk Touch and Fortune work.
Animal feeding
- Feeds every animal in the 3x3 area with its normal vanilla food, using one item each and mixed foods are fine. Works for wolves (meat, rotten flesh), cats, horses, bees, pigs and so on.
- Breeds ready adults and heals hurt tamed pets.
- Never tames wild animals.
- Sideways dispenser: a 3x3 area in front. Facing down: below. Facing up: around and above.
Sword
- Hits mobs on a flat 3-wide area, 3 blocks deep in front of the dispenser (the reach can be changed in the settings). Facing up or down it is the 3x3 layer next to it.
- One mob per pulse, like vanilla. With Sweeping Edge it hits every mob in the area, with the nearest taking full damage.
- Hits any mob except players. Tamed pets are protected (setting, on by default). A mob blacklist lets you exclude any mob.
- Counts as a player kill: Looting, Sharpness, Fire Aspect and similar enchantments work, and XP and player-only drops are given.
- Uses durability, and Mending repairs the sword by absorbing XP orbs in the area, which makes mob farms self-repairing.
Cauldrons
- An empty bucket takes liquid from a full water or powder snow cauldron, or any lava cauldron. (YES! Finally it does that)
- A filled bucket fills an empty cauldron, and tops up a water cauldron.
Block placement
- Places any block in front when the spot is empty, with vanilla placement rules. Blocks that dispensers already handle (TNT, shulker boxes, skulls, carved pumpkins) keep vanilla behavior.
- Use a blacklist to stop any block from being placed.
Everything else stays vanilla
Arrows, buckets, spawn eggs, fire charges, honey bottles, bone meal on non-crops and every other dispenser behavior is unchanged. Droppers are not affected.
Settings
Open Mod Menu → Better Dispenser+ → Configure. Every button has a tooltip. Changes are saved in config/betterdispenser.json.
| Setting | Default | What it does |
|---|---|---|
| Whole tree | ON | An axe cuts the whole natural tree. OFF: one log per pulse |
| Leaf decay | ON | Leaves break and drop items when the tree is cut |
| Auto replant | ON | Plants a sapling after a tree is cut |
| 2x2 tree farm | ON | 2x2 sapling planting and 2x2 replanting |
| 8-range bone meal | ON | Bone meal on crops far ahead. OFF: vanilla |
| Sword | ON | Dispensers can attack with swords |
| Protect tamed pets | ON | The sword never hits tamed pets |
| Item blacklist | empty | Items and blocks that behave like vanilla |
| Tool blacklist | empty | Tools the dispenser ignores, like vanilla |
| Mob blacklist | empty | Mobs the sword never attacks |
| Seed planting range | 8 | Blocks ahead for seeds (1 to 32) |
| Hoe range | 8 | Blocks ahead for the hoe (1 to 32) |
| Bone meal range | 8 | Blocks ahead for bone meal (1 to 32) |
| Melon/pumpkin range | 8 | Blocks ahead for the axe harvest (1 to 32) |
| Sword reach | 3 | Depth of the sword area (1 to 8) |
| Max logs per tree | 64 | Most logs per chop (1 to 256) |
On a dedicated server, edit the server's own config/betterdispenser.json file. In singleplayer and LAN worlds the settings screen works directly.
Ideas
- Creativity is your only limit!
Backport
- I'm planing to backpot it into 1.21.11 soon other version if highly requested
Known limits
- The hoe does not harvest pitcher plants, cocoa or sweet berries.
- A huge nether fungus gives one stem, since it has no leaves.
- Only natural leaves (not placed by a player) decay after a tree is cut.
License
MIT, see LICENSE.