Get Premium
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 & Protect Tools

Deposits non-hotbar inventory items into open chest screens while protecting pickaxes & shovels.

# 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

Emergency Auto-Healer

Monitors player health, eats food when hunger drops, and dispatches `/heal` command automatically.

# 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

Smart Strip Miner

Mines forward with durability safety checks and auto-pauses before pickaxe breaking.

# 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

Chest Quick Looter

Iterates container slots 0 to 26 and shift-clicks all items into main player 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

Dynamic Tool Switcher

Locates diamond pickaxe in inventory and automatically swaps it to your active hotbar slot.

# 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

Crop Harvester & Re-Seeder

Alternates between right-click seed replanting and left-click harvesting along crop rows.

# 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.

Submit a Script on GitHub