Official & Community Script Repository
Ready-to-Use Macro Scripts (.mcm)
Copy robust automation scripts directly or download .mcm files to place
into your .minecraft/config/macromod/scripts/ directory.
Inventory
# AutoStash.mcm - Safely deposit items into open chest if $containeropen == 1 execute "{ECHO &a[Macro] Auto-stashing items...}" execute "{STASHALL}" delay 10 execute "{CLOSESCREEN}" execute "{ECHO &e[Macro] Stash complete!}" else execute "{ECHO &c[Macro] Open a chest first!}" endif
Combat
# AutoHeal.mcm - Emergency Health Loop while $health < 14 if $hunger < 10 execute "{KEYDOWN use}" delay 32 # Eat duration execute "{KEYUP use}" endif execute "/heal" delay 40 # 2 second cooldown endwhile
Farming
# SmartMiner.mcm - Auto strip mining loop with safety execute "{LOOK 90 0}" while $durability > 10 if $invfull == 1 execute "{ECHO &cInventory Full! Halting mine loop.}" break endif execute "{KEYDOWN forward}" execute "{KEYDOWN attack}" delay 20 endwhile execute "{KEYUP attack}" execute "{KEYUP forward}" execute "{ECHO &aMining stopped: Pickaxe durability at $durability%}"
Inventory
# ChestLooter.mcm - Loot single chest (27 slots) if $containeropen == 1 for i 0 26 execute "{SHIFTCLICK $i}" delay 2 endfor execute "{CLOSESCREEN}" endif
Utility
# ToolSwitcher.mcm - Equip pickaxe from inventory execute "{INVENTORYGETSLOT minecraft:diamond_pickaxe pickSlot}" if $pickSlot >= 0 execute "{SWAPSLOT $pickSlot 36}" # Swap with hotbar slot 1 execute "{SLOT 1}" execute "{ECHO &aEquipped Diamond Pickaxe!}" else execute "{ECHO &cNo Diamond Pickaxe found in inventory.}" endif
Farming
# AutoFarm.mcm - Harvest and replant row for step 1 16 execute "{LEFTCLICK}" delay 5 execute "{RIGHTCLICK}" delay 5 execute "{KEY D}" delay 10 endfor
Have a Script to Share with the Community?
Submit your .mcm macro scripts to our GitHub Repository or open a Pull
Request to be featured in the official MacroMod library.