Skip to content

About

Quality of Life Macros for Minecraft Bedrock and Java Clients

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

Contributors Forks Stargazers Issues License LinkedIn


MacroCrafter Icon

MacroCrafter

A simple collection of AutoHotKey macros/shortcuts for Minecraft.
Explore the docs »
Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

Needed some quality-of-life improvements ingame, but didn't want to install mods.
Wanting to keep things as Vanilla as possible.

Tools used during development

Getting Started

If you're feeling lazy, you can download the pre-compiled binary and run it.
It'll self-deploy to its current folder (so save it somewhere sensible, and maybe make a shortcut to it).
(See the example screenshot in the Documentation folder for reference.)

If you want to customize the script itself, you can download the source code in its entirety.
Either clone the repository as a whole, or download the packaged source code from the releases.
Once you've got the source code, you can edit it with VS Code, SciTE4AutoHotkey, or Notepad++.
(SciTE4AutoHotkey is the original editor, but I personally prefer VS Code.)

To run the script directly from source code, there's two ways to go about it.
You can directly launch MacroCrafter.ahk using the AutoHotkey v2.0 runtime.
Or, if you've installed AutoHotkey v2.0, it comes with Ahk2Exe, which can compile your script to an executable binary.

Prerequisites / Recommendations

Pick an editor for changing the script:

  • VS Code (What I've personally been using as of late.)
    https://www.autohotkey.com/
  • SciTE4AHK (The original editor for AutoHotkey scripts)
    https://www.autohotkey.com/scite4ahk/
  • Notepad++ (A bit less integrated, but a solid editor.)
    https://notepad-plus-plus.org/

To run script source code directly or compile source code to a .exe:

  • AutoHotkey v2.0
    https://www.autohotkey.com/

Installation (The Easy Way)

  1. Create a folder for the script. (On your desktop, or wherever makes sense.)
  2. Download and save MacroCrafter.exe to that folder.
  3. Launch it for the first time. It will create folders for its components, and set up default settings.
  4. In the ScriptFiles folder, there will be a DefaultSettingsFile.ini. Open this in Notepad.
  5. Modify the line where it says SettingsFileLocation. Change "DefaultSettingsFile.ini" to "CustomSettingsFile.ini"
  6. Save the file. Then, save as a copy to "CustomSettingsFile.ini"
    (This way, there's a separate .ini settings file for custom settings, instead of directly editing the default.)
    (The DefaultSettinsFile will reference the CustomSettingsFile, so you have a custom one, and one you can use for reference.)
  7. Edit your CustomSettingsFile to your taste.
    (Try changing the names of homes under the "HomesSettings" section, for example: home, nether, shop, outpost, etc.)
  8. Once you've saved your CustomSettingsFile, launch the script again for your settings to take effect.
    (If there's any syntax errors in your settings, it'll warn you about it.)

Usage In-Game

  1. Have a read through the documentation folder. (Some useful info in there.)
  2. By default, pressing Ctrl+NumPad0, Ctrl+NumPad1, etc. will use "/home home" and "/home home01" as specified in the settings.
  3. Pressing Ctrl+NumPadDot (the decimal on your NumPad) will use /spawn to respawn you at, well, spawn.
  4. Launch the script, or your compiled version.
  5. Use the hotkeys to trigger the functions.
    • Ctrl + NumPad0-9: Teleport to your choice of 10 /home locations.
    • Ctrl + NumPadDot: Teleport to the /spawn location.
    • Ctrl + NumPadAdd to save your current location with "/sethome back".
    • Ctrl + NumPadSub to teleport to the "/home back" location that you saved with Ctrl+NumPadAdd.
    • Shift + F12: Reload the script (handy if you've just made a change to the Settings .ini file).
    • Ctrl + Shift + F12: Terminate the script. (Can also be closed through the tray icon's context menu.)
    • F10: Opens your settings file. (For when you're too lazy to open the folder.)
    • Pause: Pauses the script, halting it in its tracks. Also resumes the script if it's paused. (The "hol up" button.)

For some fun reading, please refer to the Documentation.

Roadmap / Ideas

  • [⏳] AttemptDepositAll()? Sweep across entirety of inventory, and attempt to deposit every item already in the chest? Possibly too cheaty. Will need some sort of server rule enforcement.
  • [⏳] Maybe a GUI for setting home names, instead of editing a .ini file? Might be super convenient, but possibly too convenient.

See the open issues for a full list of proposed features (and known issues).

Contributing

Contributions of ideas would be greatly appreciated.
I'm just doing this as a side project, so if you want to reproduce this as your own, I've licensed it so you can do so without worries. 😘
If you've got a suggestion that would make this better, please fork the repo and create a pull request.
You can also simply open an issue with the tag "enhancement".

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/CraftStuff)
  3. Commit your Changes (git commit -m 'Craft more stuff.')
  4. Push to the Branch (git push origin feature/CraftStuff)
  5. Open a Pull Request

Top contributors:

contrib.rocks image

License

MacroCrafter by Trevor Ray is marked CC0 1.0

Important

Obviously NOT an official Minecraft or Microsoft product.
This project is by no means official, approved, nor endorsed by Mojang or Microsoft.

Contact

Trevor Ray - @TrevorLaneRay - trevorlaneray@gmail.com

Project Link: https://github.com/TrevorLaneRay/MacroCrafter

Acknowledgments

  • MineCraft - We all diggy hole down here.
  • GroggyOtter - Made my life so much better with AHK integration for VSCode.
  • othneildrew - Definitely made creating this ReadMe easier.
  • dalps - Awesome work on themed icons.

(back to top)

About

Quality of Life Macros for Minecraft Bedrock and Java Clients

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages