Repository navigation
Releases
Releases · PunJarrr/AutoItem
AutoItem 1.0.0
First release.
Added
- When you place your last block, or eat or drink your last item, the slot is refilled with an identical stack from your inventory (main inventory first, smallest stack first, then the hotbar). Works for the main hand and the offhand.
- Stews, potions, honey bottles and milk leave their bowl, bottle or bucket in your inventory instead of in the refilled slot: it takes the place of the stack that was moved in, so it never drops and never lands in your hand.
config.ymlwith every option documented: triggers,sources.hotbar,ignored-items(material names or#tags), theremainderstable anddisabled-worlds. Invalid values, unknown items and typos in keys are reported in the console with the key path, and the default is used.- Buckets: emptying your last water, lava or other filled bucket refills it; filling your last empty bucket (water, lava, milking, catching a fish or axolotl) gives you another empty bucket and moves the filled one into your inventory.
- Throwables: snowballs, eggs, ender pearls, splash and lingering potions, experience bottles and wind charges refill when you throw the last one. Tridents never do (they come back with Loyalty).
- Right-click items: spawn eggs, boats, minecarts, bone meal, firework rockets (also during elytra flight), end crystals, eyes of ender, item frames, paintings, armor stands, feeding and breeding animals, name tags, leads, and filling bottles and bowls. Armor and elytra equipped by right-click are never refilled.
- Bows and crossbows: the last arrow or rocket in the hand opposite the bow or crossbow is refilled. Tipped arrows only refill from identical tipped arrows.
- Turning off a trigger (for example
triggers.block-place: false) also stops the right-click trigger from refilling that same action. - A slot is never refilled when you emptied it some other way in the same tick: dropping with Q, swapping hands, an inventory click or a totem popping. Holding right-click with a totem can't be used as an auto-totem.
- Broken tools (
triggers.tool-break, off by default): when a tool breaks, the same tool from your inventory takes its place. It has to be the same tool apart from wear (durability, enchantments, repair cost): custom tools from other plugins (different lore, model or data) never stand in for plain ones, or the other way round. One with identical enchantments is preferred, and a renamed tool never replaces an unnamed one (or one with a different name). /autoitem toggleturns refills on or off for yourself (autoitem.toggle, everyone by default); the setting is saved on the player./autoitem reloadreloadsconfig.yml(autoitem.reload, ops); a file with a YAML error is rejected and the previous settings stay.autoitem.use(everyone by default): without it, nothing is refilled.- A quiet pickup sound and an action-bar message after each refill. Both can be turned off (
feedback.sound,feedback.action-bar), and the message is set inmessages.refilled(MiniMessage,<item>shows the item's name). - Pick block, choosing a villager trade and the recipe book in the same tick as a use don't cause a refill.
- Supports Paper (and forks) 1.21 through 26.3, and Folia 1.21.4 through 26.3.
- Anonymous usage statistics through bStats: server count, Minecraft version, server software, and which triggers are turned on. Turn it off with
metrics: falseinconfig.yml(restart needed), or for every plugin inplugins/bStats/config.yml.