Fun Friday: Minecraft hotkeys and UI for OP /give in SMP in AutoHotKey

Minecraft. AutoHotKey. Awesome goodness.

Fun Friday is something that Alli does in kindergarten at the moment. Generally, they just have a lot of fun activities (which honestly isn’t much unlike the rest of the week). Along that line, I give you my own version of Fun Friday for the Minecraft playing, AutoHotKey loving community.

I don’t play Minecraft a lot, but when I do I go hard core (insert laugh track here). Since I like to play multiplayer with friends on our little private island, I’ve got OP. So I like to be able to give items to not only myself, but to others. I of course can’t be bothered with remembering item id’s, so I came up with a little GUI to handle that. Below is the screenshot of it in action.

My Autohotkey GUI hotkeyed to F4

Basically, you hit F4 while in the game, the GUI pops up, enter the item id, quantity (if needed for something like one door), and the loop number (how many times to give to the player). Bam! Awesome action.

Download Minecraft Hackery v1.0

MinecraftHackery.ahk v1.0 The item id image was not created by me and must downloaded from Marvin @ marvk.net.

Making the script work

You’ll need AutoHotKey for one (I have not tested this with AutoHotKey_L!). to edit the script to point to the location of the image you downloaded from marvk.net as well as your player handle. The script has full instructions in the comments, but the gist of it is, you need to edit the SetMineCraftDefaults() function vars.

SetMineCraftDefaults() { ; JDR: do not remove global ; JDR: set your default user dfplayerhandle := "justinribeiro" ; JDR: image used to be in the Minecraft wiki dfitemkeyimg := "ItemslistV110.png" dfquantity := 64 dfloop := 1 }

Mappings

  1. From Desi’s Remaps: F1 toggles hold-left-click. Handy for breaking lots of blocks or mining obsidian.
  2. From Desi’s Remaps: F2 toggles hold-W, making you move forward automatically. Use with F1 for automated mining action!
  3. JDR: F3 toggles hold-s, making you move backward automatically.
  4. JDR: F4 prompts for itemid, for use as OP in SMP: make sure to set player var
  5. JDR: Ctrl-R toggles crouching.

Credits

  1. F1/F2 mappings from Desi Quintans' Minecraft Remaps v2.1 (desiquintans.com) autopilot code from jaceguay
  2. autocrouch from avien
  3. item id key image from Marvin
  4. AutoHotKey. Seriously, my desktop would not be useable without you.

That is all

That’s pretty much it. Read the comments in the ahk file, as they’ll lead you on the path to Minecraft hotkey success.