Guide menu ▾

Macros

Chest, drop and virtual menu steps

Chest action (take, take all, put item and target slot), Drop item, Click slot and moving items in server menus (virtual GUI) in macros.

Last updated: December 1, 2026

The Chest action step takes items from a chest, puts items into it or takes everything. It also works in the server's virtual menus (ender chest, server menu, virtual GUI). Together with the Drop item and Click slot steps it manages the bot's inventory.

  1. 1Put /ec into a Send message step; the ender chest menu opens.
  2. 2In a Chest action step pick Chest from where: Open window (opened by an earlier step) and Action: Take all.
  3. 3Add a Close window step.
  4. 4In a Drop item step pick What to drop: Everything except kept items (3.5).

The Chest action step

The Chest action step is in the Interaction group. Chest from where decides how the window is found:

  • Open window (opened by an earlier step): uses a window opened earlier. 3.5 only.
  • Targeted block, Nearest (by name) (an empty Block name searches for chest) and Coordinates: open a container in the world. Max distance (blocks) is 1-32; the bot walks to a far container. If it does not open within 5 seconds the step fails.

Take item, Take all and Put item

  • Take item: takes the item in Item name or pattern. Leave Amount (0 = all) at 0 to take every match; at most 2304.
  • Take all: takes every item in the window. It leaves menu fillers (glass panes, barriers); tick Also take menu fillers (glass panes, barriers) to take them too. The same box appears in a Take item step whose item is *.
  • Put item: finds the item in the inventory and puts it into the window.

Put item: Target slot

When the action is Put item, the Target slot (-1 = first free spot) field appears. Enter the slot number in the menu (menu slots start at 0; 0-26 in a 27-slot menu, 0-53 in a 54-slot one). The item is found in the inventory by name and put only into this slot; if the slot is taken the step stops. Leave it at -1 to use the first free spot. Example: to put coal into slot 13, set Item name coal, Amount 1 and Target slot 13. This option only works on the 3.5 bot engine.

Take item and Take all steps have Slot range: from (0-89) and Slot range: to (-1 = to the end) instead of Target slot; they take only from those slots.

Speed in the Chest action step

The Speed list offers All at once (fast), Stack by stack (paced) and One by one (slowest). All at once is fastest. Stack by stack waits after each stack and One by one after each item for Gap (ms) (0-5000). If the server warns about a packet limit, raise the gap.

Open windows and virtual menus

  • The window must have been opened by an earlier step (e.g. Send message /ec). Otherwise the step waits for Seconds to wait for the window (1-30, default 5) and then fails.
  • The window stays open by default. Tick Close the window when done or add a Close window step; if no window is open that step is skipped.
  • If the inventory fills up, the step stops and the console says "Envanter doldu, X alındı" (inventory full, X taken); the macro moves on to the next step.

Quick transfer: .chest steal and .chest store

  • .chest steal takes everything in the open chest into the inventory; .chest store puts everything in the inventory (hotbar included) into the open chest. Type it in the console; in a macro, pick Chest in the Bot module command list of the Write to console step.
  • The command only works on an open window; it does not open the chest itself. Without a window the console says "No open window." If the chest or the inventory fills up it stops and says how many items moved. The window stays open.
  • In live view and play, the chest window has Steal and Store buttons at the top that do the same. Only on the 3.5 bot engine.

The Drop item step

  • One item: drops the item in Item name or pattern. Amount (0 = whole stack) is at most 64.
  • Everything except kept items (3.5): drops everything in the inventory except what you keep. Type patterns into Items to keep (comma separated) (e.g. *_sword, bread, @held) or press Armor, Tools and weapons, Food and Item in hand; Clear empties the list.
  • The Also use the bot's keep list (bot settings) box adds the Kept items list from the bot settings. Worn armor and the off hand are never dropped; an open menu is closed first. Speed is chosen here too.

The Click slot and Close window steps

The Click slot step sends the chosen Button (Left click or Right click) to the slot in Slot (0-89); the Shift held box shift-clicks. In the inventory 5-8 are armor, 9-35 inventory, 36-44 hotbar and 45 the off hand. If a menu (chest, server menu) is open, its slots come first starting at 0, then the inventory. Close window closes an open chest or menu.

Frequently asked questions

How do I take everything from the ender chest with a macro?

Put `/ec` in a Send message step, then in a Chest action step pick **Chest from where** Open window and **Action** Take all, and add a Close window step.

How do I put an item into a specific slot of a server menu?

In a Chest action step choose Put item as the **Action** and type the menu slot number into **Target slot**. Slot numbers start at 0.

Why does Take all not take the glass panes in the menu?

Menu fillers (glass panes, barriers) are left behind by default. Tick **Also take menu fillers (glass panes, barriers)** if you want them.

Will Drop item also drop my armor and sword?

Worn armor and the off hand are never dropped. Use the **Armor**, **Tools and weapons**, **Food** and **Item in hand** buttons to protect other items.

Chest, drop and virtual menu steps — AFKBot