[{"data":1,"prerenderedAt":937},["ShallowReactive",2],{"docs-navigation":3,"discord-invite":321,"\u002Fdocs\u002Ffeatures\u002Fvillager-trading\u002F":375,"\u002Fdocs\u002Ffeatures\u002Fvillager-trading\u002F-surround":932},[4],{"title":5,"path":6,"stem":7,"children":8},"Docs","\u002Fdocs","docs",[9,13,45,170,285],{"title":10,"path":6,"stem":11,"icon":12},"Documentation","docs\u002Findex","i-lucide-house",{"title":14,"icon":15,"path":16,"stem":17,"children":18,"page":44},"Getting Started","i-lucide-rocket","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started",[19,24,29,34,39],{"title":20,"path":21,"stem":22,"icon":23},"Client access","\u002Fdocs\u002Fgetting-started\u002Fclient-access","docs\u002F1.getting-started\u002F1.client-access","i-lucide-check",{"title":25,"path":26,"stem":27,"icon":28},"Add a server","\u002Fdocs\u002Fgetting-started\u002Fadd-a-server","docs\u002F1.getting-started\u002F2.add-a-server","i-lucide-globe",{"title":30,"path":31,"stem":32,"icon":33},"Add your accounts","\u002Fdocs\u002Fgetting-started\u002Fadd-your-accounts","docs\u002F1.getting-started\u002F3.add-your-accounts","i-lucide-user-plus",{"title":35,"path":36,"stem":37,"icon":38},"Connect to a server","\u002Fdocs\u002Fgetting-started\u002Fconnect-to-a-server","docs\u002F1.getting-started\u002F4.connect-to-a-server","i-lucide-plug",{"title":40,"path":41,"stem":42,"icon":43},"Fix connection problems","\u002Fdocs\u002Fgetting-started\u002Ffix-connection-problems","docs\u002F1.getting-started\u002F5.fix-connection-problems","i-lucide-wrench",false,{"title":46,"icon":47,"path":48,"stem":49,"children":50,"page":44},"Features","i-lucide-book-open","\u002Fdocs\u002Ffeatures","docs\u002F2.features",[51,56,61,66,71,76,81,86,91,96,101,106,111,116,121,126,131,136,141,146,151,156,161,166],{"title":52,"path":53,"stem":54,"icon":55},"Anti-AFK","\u002Fdocs\u002Ffeatures\u002Fanti-afk","docs\u002F2.features\u002F01.anti-afk","i-lucide-activity",{"title":57,"path":58,"stem":59,"icon":60},"Chat and spam","\u002Fdocs\u002Ffeatures\u002Fchat-and-spam","docs\u002F2.features\u002F02.chat-and-spam","i-lucide-message-square",{"title":62,"path":63,"stem":64,"icon":65},"Movement","\u002Fdocs\u002Ffeatures\u002Fmovement","docs\u002F2.features\u002F03.movement","i-lucide-move",{"title":67,"path":68,"stem":69,"icon":70},"Pathfinding and waypoints","\u002Fdocs\u002Ffeatures\u002Fpathfinding","docs\u002F2.features\u002F04.pathfinding","i-lucide-footprints",{"title":72,"path":73,"stem":74,"icon":75},"Auto eat","\u002Fdocs\u002Ffeatures\u002Fauto-eat","docs\u002F2.features\u002F05.auto-eat","i-lucide-utensils",{"title":77,"path":78,"stem":79,"icon":80},"Inventory","\u002Fdocs\u002Ffeatures\u002Finventory","docs\u002F2.features\u002F06.inventory","i-lucide-box",{"title":82,"path":83,"stem":84,"icon":85},"POV","\u002Fdocs\u002Ffeatures\u002Fpov","docs\u002F2.features\u002F07.pov","i-lucide-eye",{"title":87,"path":88,"stem":89,"icon":90},"Save builds as schematics","\u002Fdocs\u002Ffeatures\u002Fschematics","docs\u002F2.features\u002F08.schematics","i-lucide-blocks",{"title":92,"path":93,"stem":94,"icon":95},"Proxies","\u002Fdocs\u002Ffeatures\u002Fproxies","docs\u002F2.features\u002F09.proxies","i-lucide-wifi",{"title":97,"path":98,"stem":99,"icon":100},"Macros","\u002Fdocs\u002Ffeatures\u002Fmacros","docs\u002F2.features\u002F10.macros","i-lucide-zap",{"title":102,"path":103,"stem":104,"icon":105},"Running macros","\u002Fdocs\u002Ffeatures\u002Frunning-macros","docs\u002F2.features\u002F11.running-macros","i-lucide-play",{"title":107,"path":108,"stem":109,"icon":110},"Macro variables","\u002Fdocs\u002Ffeatures\u002Fmacro-variables","docs\u002F2.features\u002F12.macro-variables","i-lucide-variable",{"title":112,"path":113,"stem":114,"icon":115},"Macro library and sharing","\u002Fdocs\u002Ffeatures\u002Fmacro-library","docs\u002F2.features\u002F13.macro-library","i-lucide-library",{"title":117,"path":118,"stem":119,"icon":120},"Discord webhooks","\u002Fdocs\u002Ffeatures\u002Fdiscord-webhooks","docs\u002F2.features\u002F14.discord-webhooks","i-lucide-webhook",{"title":122,"path":123,"stem":124,"icon":125},"Push notifications","\u002Fdocs\u002Ffeatures\u002Fpush-notifications","docs\u002F2.features\u002F15.push-notifications","i-lucide-bell-ring",{"title":127,"path":128,"stem":129,"icon":130},"Server profile settings","\u002Fdocs\u002Ffeatures\u002Fserver-settings","docs\u002F2.features\u002F16.server-settings","i-lucide-settings",{"title":132,"path":133,"stem":134,"icon":135},"Play from your Minecraft client","\u002Fdocs\u002Ffeatures\u002Fplay-from-minecraft","docs\u002F2.features\u002F17.play-from-minecraft","i-lucide-gamepad-2",{"title":137,"path":138,"stem":139,"icon":140},"Waypoints","\u002Fdocs\u002Ffeatures\u002Fwaypoints","docs\u002F2.features\u002F18.waypoints","i-lucide-map-pin",{"title":142,"path":143,"stem":144,"icon":145},"Villager trading","\u002Fdocs\u002Ffeatures\u002Fvillager-trading","docs\u002F2.features\u002F19.villager-trading","i-lucide-arrow-right-left",{"title":147,"path":148,"stem":149,"icon":150},"Map, tracers and zoom","\u002Fdocs\u002Ffeatures\u002Fmap-tracers-and-zoom","docs\u002F2.features\u002F20.map-tracers-and-zoom","i-lucide-map",{"title":152,"path":153,"stem":154,"icon":155},"Skins and capes","\u002Fdocs\u002Ffeatures\u002Fskins-and-capes","docs\u002F2.features\u002F21.skins-and-capes","i-lucide-shirt",{"title":157,"path":158,"stem":159,"icon":160},"Streamer mode","\u002Fdocs\u002Ffeatures\u002Fstreamer-mode","docs\u002F2.features\u002F22.streamer-mode","i-lucide-video",{"title":162,"path":163,"stem":164,"icon":165},"Ready-made server setups","\u002Fdocs\u002Ffeatures\u002Fready-made-setups","docs\u002F2.features\u002F23.ready-made-setups","i-lucide-wand-sparkles",{"title":167,"path":168,"stem":169,"icon":150},"Minimap","\u002Fdocs\u002Ffeatures\u002Fminimap","docs\u002F2.features\u002F24.minimap",{"title":171,"icon":172,"path":173,"stem":174,"children":175,"page":44},"FAQ","i-lucide-help-circle","\u002Fdocs\u002Ffaq","docs\u002F3.faq",[176,181,186,191,196,201,206,211,216,221,226,230,235,240,245,250,255,260,265,270,275,280],{"title":177,"path":178,"stem":179,"icon":180},"VPN blocks","\u002Fdocs\u002Ffaq\u002Fvpn-blocks","docs\u002F3.faq\u002F01.vpn-blocks","i-lucide-shield-alert",{"title":182,"path":183,"stem":184,"icon":185},"What are bot physics?","\u002Fdocs\u002Ffaq\u002Fwhat-are-bot-physics","docs\u002F3.faq\u002F02.what-are-bot-physics","i-lucide-atom",{"title":187,"path":188,"stem":189,"icon":190},"Can I AFK with my computer turned off?","\u002Fdocs\u002Ffaq\u002Fafk-with-computer-off","docs\u002F3.faq\u002F03.afk-with-computer-off","i-lucide-power-off",{"title":192,"path":193,"stem":194,"icon":195},"How do I AFK in singleplayer?","\u002Fdocs\u002Ffaq\u002Fafk-in-singleplayer","docs\u002F3.faq\u002F04.afk-in-singleplayer","i-lucide-user",{"title":197,"path":198,"stem":199,"icon":200},"How do I get shards on DonutSMP?","\u002Fdocs\u002Ffaq\u002Fshards-on-donutsmp","docs\u002F3.faq\u002F05.shards-on-donutsmp","i-lucide-gem",{"title":202,"path":203,"stem":204,"icon":205},"What are the best settings?","\u002Fdocs\u002Ffaq\u002Fbest-settings","docs\u002F3.faq\u002F06.best-settings","i-lucide-sliders",{"title":207,"path":208,"stem":209,"icon":210},"How do I manage my plan?","\u002Fdocs\u002Ffaq\u002Fmanage-my-plan","docs\u002F3.faq\u002F07.manage-my-plan","i-lucide-credit-card",{"title":212,"path":213,"stem":214,"icon":215},"Is AFK Console Client safe?","\u002Fdocs\u002Ffaq\u002Fis-afk-console-client-safe","docs\u002F3.faq\u002F08.is-afk-console-client-safe","i-lucide-shield-check",{"title":217,"path":218,"stem":219,"icon":220},"Does MinecraftAFK support Bedrock?","\u002Fdocs\u002Ffaq\u002Fbedrock-support","docs\u002F3.faq\u002F09.bedrock-support","i-lucide-square-stack",{"title":222,"path":223,"stem":224,"icon":225},"Link your Discord account","\u002Fdocs\u002Ffaq\u002Flink-discord","docs\u002F3.faq\u002F10.link-discord","i-lucide-link",{"title":227,"path":228,"stem":229,"icon":215},"Minehut captcha bypass","\u002Fdocs\u002Ffaq\u002Fminehut-captcha-bypass","docs\u002F3.faq\u002F11.minehut-captcha-bypass",{"title":231,"path":232,"stem":233,"icon":234},"How do I get stars on HugoSMP?","\u002Fdocs\u002Ffaq\u002Fstars-on-hugosmp","docs\u002F3.faq\u002F12.stars-on-hugosmp","i-lucide-star",{"title":236,"path":237,"stem":238,"icon":239},"Can I get banned for only AFKing?","\u002Fdocs\u002Ffaq\u002Fafk-only-bans","docs\u002F3.faq\u002F13.afk-only-bans","i-lucide-gavel",{"title":241,"path":242,"stem":243,"icon":244},"Paying with SEPA Direct Debit","\u002Fdocs\u002Ffaq\u002Fsepa-direct-debit","docs\u002F3.faq\u002F14.sepa-direct-debit","i-lucide-landmark",{"title":246,"path":247,"stem":248,"icon":249},"Which Minecraft versions are supported?","\u002Fdocs\u002Ffaq\u002Fsupported-versions","docs\u002F3.faq\u002F15.supported-versions","i-lucide-history",{"title":251,"path":252,"stem":253,"icon":254},"Local client or web client?","\u002Fdocs\u002Ffaq\u002Flocal-vs-web-client","docs\u002F3.faq\u002F16.local-vs-web-client","i-lucide-monitor",{"title":256,"path":257,"stem":258,"icon":259},"What does each plan include?","\u002Fdocs\u002Ffaq\u002Fplans-and-limits","docs\u002F3.faq\u002F17.plans-and-limits","i-lucide-layers",{"title":261,"path":262,"stem":263,"icon":264},"How do payments and renewals work?","\u002Fdocs\u002Ffaq\u002Fpayments-and-renewals","docs\u002F3.faq\u002F18.payments-and-renewals","i-lucide-receipt",{"title":266,"path":267,"stem":268,"icon":269},"How do gift codes work?","\u002Fdocs\u002Ffaq\u002Fgifts","docs\u002F3.faq\u002F19.gifts","i-lucide-gift",{"title":271,"path":272,"stem":273,"icon":274},"How does the referral program work?","\u002Fdocs\u002Ffaq\u002Freferral-program","docs\u002F3.faq\u002F20.referral-program","i-lucide-handshake",{"title":276,"path":277,"stem":278,"icon":279},"How do I change my account settings?","\u002Fdocs\u002Ffaq\u002Faccount-settings","docs\u002F3.faq\u002F21.account-settings","i-lucide-user-cog",{"title":281,"path":282,"stem":283,"icon":284},"How do I get support?","\u002Fdocs\u002Ffaq\u002Fget-support","docs\u002F3.faq\u002F22.get-support","i-lucide-headset",{"title":286,"icon":287,"path":288,"stem":289,"children":290,"page":44},"Use cases","i-lucide-lightbulb","\u002Fdocs\u002Fuse-cases","docs\u002F4.use-cases",[291,296,301,306,311,316],{"title":292,"path":293,"stem":294,"icon":295},"Mob grinding","\u002Fdocs\u002Fuse-cases\u002Fmob-grinding","docs\u002F4.use-cases\u002F1.mob-grinding","i-lucide-sword",{"title":297,"path":298,"stem":299,"icon":300},"Auto sell","\u002Fdocs\u002Fuse-cases\u002Fauto-sell","docs\u002F4.use-cases\u002F2.auto-sell","i-lucide-coins",{"title":302,"path":303,"stem":304,"icon":305},"Spawner protection","\u002Fdocs\u002Fuse-cases\u002Fspawner-protection","docs\u002F4.use-cases\u002F3.spawner-protection","i-lucide-shield-x",{"title":307,"path":308,"stem":309,"icon":310},"PvP","\u002Fdocs\u002Fuse-cases\u002Fpvp","docs\u002F4.use-cases\u002F4.pvp","i-lucide-swords",{"title":312,"path":313,"stem":314,"icon":315},"Mining","\u002Fdocs\u002Fuse-cases\u002Fmining","docs\u002F4.use-cases\u002F5.mining","i-lucide-pickaxe",{"title":317,"path":318,"stem":319,"icon":320},"AFK fishing","\u002Fdocs\u002Fuse-cases\u002Fafk-fishing","docs\u002F4.use-cases\u002F6.afk-fishing","i-lucide-fish",{"guild":322,"approximate_member_count":373,"approximate_presence_count":374},{"id":323,"name":324,"splash":325,"banner":326,"description":327,"icon":328,"features":329,"verification_level":368,"vanity_url_code":369,"nsfw_level":370,"nsfw":44,"premium_subscription_count":371,"premium_tier":372},"1001858472234725396","AFK Console Client","50f7271c361cc129a2dcd341a56d0d80","a9802d55c61087c76f100d75fdbf7ad2","AFK 24\u002F7 from any device including your phone!","1d7903bbcf179a16da420719114adfa8",[330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367],"CONVERSATIONS_EXTRACTION_PROCESSING","DISCOVERABLE","GUILD_TAGS","PREVIEW_ENABLED","AUDIO_BITRATE_256_KBPS","COMMUNITY","ANIMATED_BANNER","VIDEO_QUALITY_720_60FPS","TIERLESS_BOOSTING_SYSTEM_MESSAGE","AUDIO_BITRATE_384_KBPS","TIERLESS_BOOSTING","REPORT_TO_MOD_SURVEY","AGE_VERIFICATION_LARGE_GUILD","INVITE_SPLASH","ROLE_ICONS","AUDIO_BITRATE_128_KBPS","BANNER","ANIMATED_ICON","AUTO_MODERATION","MAX_FILE_SIZE_100_MB","STAGE_CHANNEL_VIEWERS_50","CREATOR_ACCEPTED_NEW_TERMS","CONSIDERED_EXTERNALLY_DISCOVERABLE","CHANNEL_ICON_EMOJIS_GENERATED","ENABLED_DISCOVERABLE_BEFORE","VIDEO_BITRATE_ENHANCED","MAX_FILE_SIZE_50_MB","BYPASS_SLOWMODE_PERMISSION_MIGRATION_COMPLETE","GUILD_WEB_PAGE_VANITY_URL","NEWS","PIN_PERMISSION_MIGRATION_COMPLETE","SOUNDBOARD","GUILD_ONBOARDING_EVER_ENABLED","VIDEO_QUALITY_1080_60FPS","ENHANCED_ROLE_COLORS","STAGE_CHANNEL_VIEWERS_300","STAGE_CHANNEL_VIEWERS_150","VANITY_URL",2,"afkcc",0,20,3,30277,5241,{"id":376,"title":142,"body":377,"description":923,"extension":924,"head":925,"links":925,"meta":926,"navigation":927,"path":143,"schemaOrg":925,"seo":928,"sitemap":930,"stem":144,"__hash__":931},"docs\u002Fdocs\u002F2.features\u002F19.villager-trading.md",{"type":378,"value":379,"toc":914},"minimark",[380,384,387,417,422,429,432,478,486,490,533,543,546,557,568,572,575,609,613,616,658,663,669,673,678,681,753,768,775,778,815,825,829,837,902,908],[381,382,383],"p",{},"Bots trade with villagers and wandering traders the way a player does. A right click on the villager opens its trading window, with its trades listed down the left. Pick one, and the server moves the price out of the bot's inventory into the payment slots, and what the trade sells appears in the result slot for the bot to take.",[381,385,386],{},"There are three places to trade from:",[388,389,390,399,405],"ul",{},[391,392,393,394,398],"li",{},"The ",[395,396,82],"a",{"href":397},"\u002Fdocs\u002Ffeatures\u002Fpov\u002F",", in the game's own trading screen. You right-click the villager and pick the trade yourself.",[391,400,393,401,404],{},[395,402,77],{"href":403},"\u002Fdocs\u002Ffeatures\u002Finventory\u002F"," page, which lists the trades in a window the bot already has open.",[391,406,393,407,411,412,416],{},[408,409,410],"strong",{},"Trade"," step in a ",[395,413,415],{"href":414},"\u002Fdocs\u002Ffeatures\u002Fmacros\u002F","macro",", which names the item you want rather than a trade, so one step works on any villager that sells it.",[418,419,421],"h2",{"id":420},"what-you-need","What you need",[381,423,424,425,428],{},"On Java Edition, trades need Minecraft 1.14 or newer. On older versions a villager's trading window still opens, with its payment and result slots, but no trades in it, and a macro's Trade step is skipped. Where the list would be, the Inventory page says \"Trades show on Minecraft 1.14 and newer.\" Bedrock accounts skip the Trade step too. ",[395,426,246],{"href":427},"\u002Fdocs\u002Ffaq\u002Fsupported-versions\u002F#features-that-depend-on-the-version"," lists the other features that depend on the version.",[381,430,431],{},"Your plan decides where you can trade from:",[433,434,435,448],"table",{},[436,437,438],"thead",{},[439,440,441,445],"tr",{},[442,443,444],"th",{},"Where",[442,446,447],{},"Plans",[449,450,451,460,471],"tbody",{},[439,452,453,457],{},[454,455,456],"td",{},"The POV",[454,458,459],{},"Every plan",[439,461,462,465],{},[454,463,464],{},"The Inventory page",[454,466,467],{},[395,468,470],{"href":469},"\u002Fweb\u002F","Tier 3",[439,472,473,476],{},[454,474,475],{},"A macro's Trade step",[454,477,459],{},[381,479,480,481,485],{},"On other plans the Inventory page still shows the trades, greyed out, with the note \"Inventory management requires Tier 3.\" ",[395,482,484],{"href":483},"\u002Fdocs\u002Ffaq\u002Fplans-and-limits\u002F#features-by-plan","Plans and limits"," has the full list.",[418,487,489],{"id":488},"trade-in-the-pov","Trade in the POV",[491,492,493,501,504,507,515,523,526],"ol",{},[391,494,495,496,500],{},"Visit ",[395,497,499],{"href":498},"\u002Fdashboard\u002Fservers\u002F","minecraftafk.com\u002Fdashboard\u002Fservers\u002F",".",[391,502,503],{},"Click the server profile you wish to use.",[391,505,506],{},"Click the POV page.",[391,508,509,510,514],{},"Open the bot ",[395,511,513],{"href":512},"\u002Fdocs\u002Ffeatures\u002Fpov\u002F#fullscreen","fullscreen",", with the fullscreen button on its card.",[391,516,517,518,522],{},"With the bot standing next to the villager or wandering trader, aim at it and right-click (see ",[395,519,521],{"href":520},"\u002Fdocs\u002Ffeatures\u002Fpov\u002F#clicking","Clicking","). Its trading screen opens over the view.",[391,524,525],{},"Click the trade you want in the list on the left. Its price moves from the bot's inventory into the payment slots, and what it sells appears in the result slot.",[391,527,528,529,532],{},"Take it from the result slot as you would any item: click to pick it up, or ",[408,530,531],{},"Shift","-click to move it straight into the inventory.",[381,534,535,538,539,542],{},[408,536,537],{},"E"," or ",[408,540,541],{},"Esc"," closes the trading screen, on the server as well as on your screen.",[381,544,545],{},"The list shows seven trades at a time, as in game. Scroll it with the mouse wheel, or drag the scroll bar beside it. If the bot can't pay the full price, nothing appears in the result slot.",[381,547,548,549,552,553,556],{},"On a phone or tablet, aim the crosshair at the villager and tap ",[408,550,551],{},"Use"," to open its window. Swipe the list to scroll it and tap a trade to pick it. Then tap the result slot for what you can do with it, such as ",[408,554,555],{},"Quick move",", or hold it to quick-move it straight away.",[381,558,559,560,563,564,500],{},"A trading window a macro opens shows up read-only, so you can watch the macro trade without getting in its way. Press ",[408,561,562],{},"Take over"," to end its run and trade yourself: see ",[395,565,567],{"href":566},"\u002Fdocs\u002Ffeatures\u002Fpov\u002F#while-a-macro-is-running","While a macro is running",[418,569,571],{"id":570},"what-a-trade-shows","What a trade shows",[381,573,574],{},"The POV and the Inventory page draw a trade the same way: what it costs, one item or two, then an arrow and what it sells. Hover an item for its tooltip.",[388,576,577,583,593,599],{},[391,578,579,582],{},[408,580,581],{},"Prices that moved."," A price that has moved with demand or reputation shows the base price struck through beside the real one.",[391,584,585,588,589,592],{},[408,586,587],{},"Sold out."," The POV crosses out a sold-out trade's arrow, and the Inventory page fades the trade and marks it ",[408,590,591],{},"Out of stock",". Nothing appears in the result slot for a sold-out trade until the villager restocks.",[391,594,595,598],{},[408,596,597],{},"The cross in the POV."," When the selected trade is sold out, the POV also puts a large cross between the payment and result slots. On a villager, hovering the cross says \"Villagers restock up to two times per day.\" A wandering trader never restocks, so its cross has no note and its sold-out trades stay sold out.",[391,600,601,604,605,608],{},[408,602,603],{},"Level."," A villager's level runs from Novice through Apprentice, Journeyman and Expert to Master. The POV adds it to the trading screen's title, and the bar under the title fills as the villager earns experience towards its next level. With a trade's price in the payment slots, a lighter stretch of the bar shows how far that trade would take it. A Master has no bar. The Inventory page names the level beside ",[408,606,607],{},"Trades",". A wandering trader has no level, so neither shows one.",[418,610,612],{"id":611},"trade-on-the-inventory-page","Trade on the Inventory page",[381,614,615],{},"The Inventory page trades in a window the bot already has open, from the POV or a macro. It lists the trades beside the window's slots rather than drawing the game's screen.",[491,617,618,622,624,630,648,651],{},[391,619,495,620,500],{},[395,621,499],{"href":498},[391,623,503],{},[391,625,626,627,629],{},"Open its ",[408,628,77],{}," page.",[391,631,632,633,636,637,639,640,643,644,647],{},"Pick the account in the dropdown at the top. Its trading window shows under ",[408,634,635],{},"Open Container",": the ",[408,638,607],{}," list, with the ",[408,641,642],{},"Payment"," and ",[408,645,646],{},"Result"," slots to its right (under it on a phone).",[391,649,650],{},"Click a trade. The server moves its price from the bot's inventory into the payment slots, and the result appears in the result slot.",[391,652,653,654,657],{},"Take the result like any other item: click it and place it in the inventory, or ",[408,655,656],{},"Shift + Click"," it to quick move it.",[381,659,660,661,500],{},"The list holds every trade, rather than seven at a time, and highlights the trade picked last, whoever picked it. The cross on the container's corner closes the window. On a phone or tablet, tap a trade to pick it, and tap the result slot for its actions, such as ",[408,662,555],{},[381,664,665,666,668],{},"Picking a trade here needs ",[395,667,470],{"href":469},", like the rest of the page's controls.",[418,670,672],{"id":671},"trade-from-a-macro","Trade from a macro",[381,674,393,675,677],{},[408,676,410],{}," step buys from the villager or wandering trader whose window is open. It names the item you want, not a place in the list, so one step works on any villager that sells that item: the bot picks the trade that gives it, pays from its own inventory and takes what it bought. Selling is trading too. A farmer pays emeralds for wheat, so a step that sells wheat is a step that gets emeralds.",[381,679,680],{},"The window has to be open first, the same way you would open it: turn the bot to the villager, then right click.",[491,682,683,687,690,718,724,729,746],{},[391,684,495,685,500],{},[395,686,499],{"href":498},[391,688,689],{},"Click the server profile you wish to use, click the macros page, and open a macro.",[391,691,692,693,696,697,700,701,704,705,709,710,713,714,717],{},"Add a ",[408,694,695],{},"Look at entity"," step with the plus button. Under ",[408,698,699],{},"Match"," pick ",[408,702,703],{},"By name",", and type ",[706,707,708],"code",{},"villager"," under ",[408,711,712],{},"Name contains"," (or ",[706,715,716],{},"wandering_trader",").",[391,719,692,720,723],{},[408,721,722],{},"Right click once"," step after it, to open the trading window.",[391,725,692,726,728],{},[408,727,410],{}," step after that. It's with the Inventory steps.",[391,730,731,732,735,736,739,740,538,743,500],{},"Under ",[408,733,734],{},"Item to get",", pick what the bot should end up with. Under ",[408,737,738],{},"Amount",", pick ",[408,741,742],{},"One trade",[408,744,745],{},"As many as it can",[391,747,748,749,752],{},"End with a ",[408,750,751],{},"Close GUI"," step, which closes the window, and save the macro.",[381,754,755,756,759,760,763,764,500],{},"Look at entity turns the bot's head and doesn't move it, and a right click only reaches what's within arm's length, so the bot has to be standing by the villager. If it isn't parked there, put a ",[408,757,758],{},"Walk to"," step set to ",[408,761,762],{},"Nearest entity"," in front of the Look at entity: see ",[395,765,767],{"href":766},"\u002Fdocs\u002Ffeatures\u002Fpathfinding\u002F#walk-to-in-a-macro","Walk to in a macro",[381,769,770,771,500],{},"The Close GUI matters because the bot sends no chat while a window is open, and the builder can't see a window that a right click opened, so it won't warn you about this one or add the step for you. See ",[395,772,774],{"href":773},"\u002Fdocs\u002Ffeatures\u002Fmacros\u002F#use-gui","Use GUI",[381,776,777],{},"The Trade step's panel holds four settings:",[388,779,780,785,796,809],{},[391,781,782,784],{},[408,783,734],{}," is what the bot ends up with, picked from the game's item list. A new step starts on emeralds.",[391,786,787,789,790,792,793,795],{},[408,788,738],{}," is ",[408,791,742],{},", or ",[408,794,745],{},", the default: the bot keeps trading until it runs out of what the trade costs, the villager sells out, or its inventory is full.",[391,797,798,801,802,805,806,808],{},[408,799,800],{},"Only the trade paid with a certain item"," is for a villager that sells the item more than one way. A farmer can pay emeralds for both wheat and potatoes, so a step that sells wheat ticks the box and picks wheat under ",[408,803,804],{},"Paid with",". ",[408,807,804],{}," starts on emeralds, or empty when emeralds are the item to get, and the macro won't save while the box is ticked with nothing picked. Left unticked, any trade that gives the item will do.",[391,810,811,814],{},[408,812,813],{},"Wait for the window to open"," is ticked to begin with. If no villager window is open when the step starts, it waits up to 30 seconds for one, then the macro carries on. Unticked, the step is skipped at once.",[381,816,817,818,820,821,500],{},"Trade and the steps around it (Look at entity, Right click once, Walk to and Close GUI) are on every plan. A Join macro trades each time the bot joins. To trade on the clock, use a Timer or Schedule event, which needs ",[395,819,470],{"href":469},", or run the macro yourself with ",[395,822,824],{"href":823},"\u002Fdocs\u002Ffeatures\u002Frunning-macros\u002F#run-now","Run now",[418,826,828],{"id":827},"when-the-trade-step-is-skipped","When the Trade step is skipped",[381,830,831,832,836],{},"If the bot can't make the trade, the step is skipped and the macro carries on with the next step. The macro's ",[395,833,835],{"href":834},"\u002Fdocs\u002Ffeatures\u002Frunning-macros\u002F#logs-and-problems","log"," says why:",[433,838,839,849],{},[436,840,841],{},[439,842,843,846],{},[442,844,845],{},"Log",[442,847,848],{},"What happened",[449,850,851,863,872,882,892],{},[439,852,853,858],{},[454,854,855],{},[408,856,857],{},"No such trade",[454,859,860,861,500],{},"The villager has no trade that gives the item, or none paid with the item under ",[408,862,804],{},[439,864,865,869],{},[454,866,867],{},[408,868,591],{},[454,870,871],{},"The trade is sold out. Villagers restock up to two times per day; a wandering trader never does.",[439,873,874,879],{},[454,875,876],{},[408,877,878],{},"Cannot afford",[454,880,881],{},"The bot doesn't carry enough to pay for it.",[439,883,884,889],{},[454,885,886],{},[408,887,888],{},"Inventory full",[454,890,891],{},"The bot has no room for what it would buy.",[439,893,894,899],{},[454,895,896],{},[408,897,898],{},"Cannot trade here",[454,900,901],{},"The account is on Bedrock, or the profile's Java version is older than 1.14.",[381,903,904,905,907],{},"With no trading window open, the step waits as its ",[408,906,813],{}," box says, and the macro then carries on without trading.",[381,909,910,911,500],{},"To see what a villager sells, and for what, before you build the step, open its window in the ",[395,912,82],{"href":913},"#trade-in-the-pov",{"title":915,"searchDepth":368,"depth":368,"links":916},"",[917,918,919,920,921,922],{"id":420,"depth":368,"text":421},{"id":488,"depth":368,"text":489},{"id":570,"depth":368,"text":571},{"id":611,"depth":368,"text":612},{"id":671,"depth":368,"text":672},{"id":827,"depth":368,"text":828},"Trade with Minecraft villagers and wandering traders from the browser: in the POV's trading screen, from the Inventory page, or with a macro's Trade step.","md",null,{},{"icon":145},{"title":929,"description":923},"Villager trading for Minecraft bots",{"loc":143},"IksTIvAx8p89lbsprWHpfuSiVcO8VGQ7UfbqD3ZEkHo",[933,935],{"title":137,"path":138,"stem":139,"description":934,"icon":140,"children":-1},"Save the spots your bots keep going back to, like a farm or a spawner, and send them there by name from the POV, a macro or the Movement page.",{"title":147,"path":148,"stem":149,"description":936,"icon":150,"children":-1},"See what's around your Minecraft bot: a map from straight above with the players and mobs near it, a line to every other player, and a zoom for what's far off. The map is on the Movement page too.",1793484078754]