Skip to content
Allay AI

WikiAllay plugin

Automation agents

Where they stand among Allay's agents: Agent hierarchy.

Automation agents do the chores at your base. Ask in chat, like “sort my chests by category” or “smelt all my raw gold evenly”, and Allay hands the job to an agent that works in the background while you keep playing.

#How an agent works

  1. You ask. The chat starts an agent and names it.
  2. It talks to you under its name. It asks with buttons (“go ahead?”), and a click answers back at once.
  3. It waits for free. Furnaces and brewing stands take time. An agent sleeps until they're done, and sleeping costs nothing.
  4. It ends with a report. Labels over chests show what went where.

An agent stays near you: it pauses while you're more than 64 blocks from where it started. Each player runs up to 2 agents at once, each working for at most 30 minutes. Pauses, waits for your items, and restarts don't count toward that.

#Leaving and restarts

Since 6.35 an agent doesn't end when you leave or the server restarts (with Allay Server 6.31 or newer). It goes to Allay's server as it is, and comes back when you join again: “back to work.” Furnaces and stands keep going on their own meanwhile, and the agent counts what they made while it was away. It takes back what it set aside, and finishes or carries on from there. When the Allay server itself is out of reach, an agent doesn't stop either: it says so once and goes on when the server is back, for up to automation.park_hours.

#Waiting for your items

When the job needs something only you can get, something mined, found, farmed, or traded, the agent says what and how many, and asks whether to wait. Say yes, and go get it: while it waits it holds none of your 2 agent slots, its time stands still, and you may go far from the base and start other agents. It reminds you every 10 minutes what's still missing. Bring it to the base, into your inventory or a chest there, and the agent carries on by itself. “Don't wait” or “take stone bricks instead of cobblestone” works at any time, and [Stop] under its line or /allay cancel stops it. After 24 hours (automation.park_hours) it gives up.

#Where agents take from

From your inventory and the chests around that you may open. Since 6.35 not from your ender chest until you allow it: the agent asks first. “Take only from these chests” makes it ask you to click them, and then it uses only those. Helpers take from the same.

#Helper agents

A step of another kind goes to a helper agent. A brewing agent short of glass bottles hands the glass to a furnaces agent, hears exactly what it made and where, and brews on. An agent can't finish while a helper it started still runs: it waits for the report.

#What agents may touch

  • Only your own things, in containers you could open yourself (see Integrations).
  • Blocks within 32 blocks (automation.radius, at most 52).
  • Furnaces, brewing stands, and crafting tables in plain sight: a wall of opaque blocks hides one, but glass, leaves, and slabs don't. Since 6.19 a step aside counts: a pillar or post you could walk around, up to 2 blocks, hides nothing.
  • Never the inside of a shulker box item. A placed shulker box is a chest like any other.
  • A chest someone has open stays out. A chest a hopper drains (one under it) is never taken from or rearranged. One hoppers only feed, like a sorter's output, can be taken from (since 6.21), and things go into any of them. Sorting and grouping leave every chest with a hopper alone.

If you or anyone else takes what an agent counts on, it stops and says so.

#Chests

Pick the chests first:

  1. Left-click each chest you want, or press [All nearby] to take every chest around (gaps of up to 6 blocks between them, up to 64 chests).
  2. Press [Done].

Then say what to do:

  • Sort each chest, or group everything by category across them.
  • Move what you name into a chest, from other chests, your inventory, or every chest around: “put all my wood into this chest”, “take 32 coal there”.
  • Stash: “put my loot away” puts your inventory into the chests that already hold each item, or that a sign or an item frame names. Your hotbar stays.
  • Take: “get me 64 iron”, “6 lapis and 8 coal”, or “top my torches up to a stack” takes it out of the chests around. When the chests hold fewer, the agent hands the rest to a crafting agent, which makes it from blocks or parts: 20 lapis from 5 loose and a couple of lapis blocks (since 6.21). It names the chests it passed over and why.

The agent reads the signs and item frames on chests, and asks when a sign doesn't say enough. Names work as in an inventory layout: “all the iron” means raw iron, ingots, nuggets, and blocks, and “except the enchanted” leaves those alone. Copper chests, barrels, and placed shulker boxes count too.

Your ender chest counts as well, since 6.26, while you stand by an ender chest, as in the game: “put the iron blocks into my ender chest”, “get my diamonds out of the ender chest”, “sort my ender chest”. You don't pick it, and [All nearby] never adds it to a plan, but a left click on an ender chest while picking does. Furnaces and brewing stands can put their output there too.

Every change is planned, checked, and written in one tick, or nothing moves. [Put back] undoes the last five changes, one by one, for 5 minutes, as long as nobody touched those chests since.

#Furnaces

“Smelt all my raw gold evenly.”

  • Smelting spreads evenly over free furnaces, blast furnaces, and smokers, each by what it can cook.
  • Each gets exactly the fuel it needs. Coal blocks split into coal. Without coal it burns your planks, sticks, or bamboo, and logs or a bucket of lava when you ask.
  • Ask by what you want out: “smelt iron” smelts raw iron first, then the ores.
  • Tell it where the output goes, and full furnaces empty themselves there. You get the experience, as if you took it out yourself (on Paper, while on Spigot it stays in the furnace).
  • “Add 20 more ore” joins a running job. Say “always into my inventory” once, and it remembers.

#Brewing

“Brew three night vision potions.”

  • Brewing starts where a stand already is (an awkward potion saves a step) and from the potions you carry, so “make my night vision longer” upgrades yours.
  • It fills stands three bottles at a time, brews several potions at once, and runs more than the stands hold in rounds.
  • It takes only what's needed and turns a blaze rod into powder.
  • It fills your glass bottles at water or a cauldron nearby, once nothing else is missing. A cauldron loses a level per bottle, as in the game.
  • “Three water bottles” needs no stand at all: the agent fills them at once (since 6.18).
  • Potions go by any name: “speed”, “healing II”, “splash healing”, “extended night vision”.
  • When a stand doesn't fit, the agent says why: still brewing, a reagent left in its top slot, or finished potions to collect.

Taking the bottles out of a stand mid-brew stops the agent.

#Crafting

“Craft me a set of diamond tools.”

  • 2×2 recipes need nothing, but 3×3 ones need a real crafting table nearby. A stonecutter in sight cuts what it can there.
  • Parts are made on the way, four levels deep (since 6.19, three before): sticks from planks, planks from logs, ingots from iron blocks.
  • What needs a furnace first, like iron armor from raw iron, goes to a furnaces agent: the crafting agent breaks raw ore blocks into raw ore, hands the smelting over, and crafts the rest when it's done (since 6.19). Tools and armor are never melted down.
  • A smithing table turns diamond gear into netherite in place, keeping its enchantments, name, and wear. Without a diamond piece, the agent crafts one from diamonds first (since 6.19).
  • One request crafts the whole order, up to a full inventory, at once: crafting is instant, so the agent never waits between crafts (since 6.21).
  • Fireworks to your description: colors, shapes (small or large ball, star, creeper face, burst), fades, trails, crackle, and how high they fly, from your paper, gunpowder, dyes, and the shape items (since 6.21).
  • A recipe that takes its own result works: one netherite upgrade template and 7 diamonds make two (since 6.21).
  • Ingredients come from your inventory, the ender chest when you allowed it and one stands near, and the chests around, with the bundles in each of them (since 6.21 in the ender chest and chests too), never from inside shulker boxes. When something you lack waits in your ender chest, the agent asks whether it may use it, or asks you to stand by one. Only server recipes count, and only plain ingredients, or a plugin's own items where its recipe asks for them. Nothing comes from nowhere.
  • Plugins', mods', and data packs' items craft by their ids from their own recipes, such as Red Bull's empty can (redbull:empty_can) or a whole can, its parts made on the way (since 6.18).
  • Water bottles fill from glass bottles at water or a cauldron within 8 blocks, a level a bottle, as in the game. Glass bottles are crafted from glass when there are none. A recipe that wants a water bottle gets one the same way (since 6.18).
  • What's left over goes back.

#The anvil

The crafting agent puts enchanted books and items of the same kind onto an item in the cheapest order, and renames it. It finds the books in your inventory, bundles, the ender chest, and chests near. It shows the result and the levels first and works only after your yes. You pay the levels, nothing costing 40 or more in survival is done, and the anvil wears down as in the game.

#The grindstone

Since 6.19 the crafting agent also works a grindstone near you. “Take the enchantments off this sword” takes off everything but curses and drops the experience at the grindstone, and an enchanted book with nothing left turns plain. “Join my two pickaxes” makes one of them with both durabilities and 5% more, but every enchantment except curses is gone from both. The agent shows what comes off and the experience first, and works only after your yes. It costs no levels and never wears the grindstone down.

When both an anvil and a grindstone are near and you ask to join two items, the agent asks which: the anvil keeps the enchantments for levels, the grindstone costs nothing and drops some experience but takes them off.

#Who may use them

Everyone, by default. Each kind needs allay.automation and its own permission: allay.automation.chests, .furnaces, .brewing, or .crafting. Take them away from regular players with your permission plugin to keep automation for, say, VIPs. automation.* in Configuration switches kinds off and sets the limits.

Next: Commands and permissions