This mod has the intention of hopefully being able to automate the player completely with both simple and complex macros.
Scripts can be written in Lua and triggered by events and key binds.
Some of the events are not setup yet as noted on the wiki
A revised version of the documentation can be found in the wiki link above.
All event info is up to date in the new wiki.
Some functions do not have documentation pages yet.
Features include:
- Colored chat logging with simple codes like &B for bold, &I for italics and &0 thru &9 and &a thru &f as colors, additional & codes added for clickable text, and tooltips
- Fast scripts powered by Lua on multiple threads
- A syntax highlighting text editor with strings clearly marked by boxes with text codes showing the effects.
- Log tables in an easy to read way
- Tooltips on many functions in the editor. (Just hover over it)
- Easy to re-order macros in the main menu.
- Multiple profiles for different configs.
- Easily kill scripts that don't exit/return (CNTRL + Macro Menu key)
- Easily add/remove/edit bindings
- Quickly access a script related to a binding for editing
- Event fired macros like
● Chat event ● Hunger changed ● And more
● Joined the world ● Weather changed
● Respawned ● Item Durabilty
● Died ● Leave the world
● Health changed ● XP gained/used - Key and Mouse button triggered macros
- Key events can be set to trigger on key up, key down, or both
- change profiles from a script
- make the player speak into the chat (commands work too)
- edit settings and bindings from scripts
- Get lots of information about the world and the things in it like:
● Connected players ● The current weather ● Current time in the world
● Nearby players ● Light level at a coordinate ● Biome names and a little bit of detail
● Items visible on other players ● Information about a block at some position ● All the entities that are loaded in your chunks - Render a 3D HUD into the world [see screenshots]
Currently includes:
● Blocks
● Text
● Panes - 2D HUD elements (rectangle, box, text and images)
- Customizable gui's powered by scripts (The in game change log is an example of one!)
- Play sounds
● Sounds can easily be looped
● Sounds can be stopped after starting
● Sounds can be paused - Toggle skin layers
- Spelling errors (I'm sure they're around somewhere) definitly a feature
- File IO
● Read from file
● Write to file
● Random Access Files (read and write at same time, can jump around in file too) - Image tools for reading writing drawing and saving images.
Images can also be used for textures in 2D and 3D huds or gui. - Create screenshots without saving to file for use in scripts
- Prompt (get user input) [see screenshots]
- Control player movements
- Manage your inventory (you can access the 2x2 crafting as well)
- A hoard of information about a player (even more for yourself)
- HTTP requests
- MIDI interface (files, inputs and outputs)
- Get entity bounding boxes
- Get information about entities in your area
- Get information about the world
- Filter incoming chat messages to change their appearance
- Filter outgoing chat messages (make custom commands, fix spelling mistakes, text shortcuts... etc)
- And some other stuff I'm sure I forgot
Planned features:
- More documentation
- More hud3D and 2D elements
- More event types
- Auto-complete
- Prompt menus for:
● Number Input ● Player selection ● Limited Item selection - Obfuscation, Strike-through, and Underline for 2D and 3D HUD text
If you find a bug and would like to report it, the following things help:
- Finding the simplest way to recreate the bug
- If the error came from java, then having the error from the console helps
(the line number, class and error type in particular, stacktrace too)
Report bugs on the official discord or HERE
Suggestions for features are welcome.
For quick questions, bug reports, suggestions and general discussion this link will bring you to the discord server. [ https://discord.gg/ga9Npym ]
IMPORTANT for versions before 3.8.2 :
The LuaJ-jse-3.0.1.jar is needed to run this mod.
download it here:
https://sites.google.com/site/advancedmacroswiki/files
or here:
https://sourceforge.net/projects/luaj/files/latest/download
Just put it in your mods folder
For versions **including** and after 3.8.2, the LuaJ library is included with the mod
is there any way for me to port a macro from razer synapse to this mod? I don't understand how to make the macros but would like to use my computer while they run.
best mod ever!!! but please update and backport
To anyone,
can I make a macro that allows me to move up and down farmland to place seeds? If so, how accurate would it be?
1.16?
Jeeesus. This mod is crazy!
Great work!
Maybe I missed it in the documentation, but is it possible to just send a key input something like
send("R")
I want to sort my inventory as part of a script.
If it's not too much, could you please backport this to 1.8.9?
In reply to GlitchzSlime:
If you just want macros, check out https://www.curseforge.com/minecraft/mc-mods/macrokey-keybinding
1.15.2 please
This tanks my FPS down to 1-2 fps when i join wynncraft worlds. Litterally unusable for that. But for the rest its really good.
Hello, i am in need of a bridging macro to help me bridge in mc while it is in the background, i need to build a long pathway and cant do it my self, i dont understand scripts but would like some help, Thank you!
Trying to use AM mod w/MC1.14.4 and forge-1.14.4-28.1.30. When I put the mod into the client and then try to connect to the server, I get a pop-up message from MC server selection screen:
Incompatible FML modded server
Server mod list is not compatible
If I add the mod plus lua zip file to the server and restart, it crashes ( "latest.log" is https://pastebin.com/Gq53AF4y )
Single player game seems fine (can start, open AM via key, poke around even though I've no scripts yet).
In reply to irishgalahd:
The mod is currently built on 28.0.49 (plan to update that soon)
I can take a closer look at the error log a little later tonight
In reply to Theincgi:
Sorry for the red herring, on closer reading just needed your mod (no luaj) as you said. Pays to read rather than scan.
Just for giggles, I tried it again w/o luaj file. As indicated by your reply, still errors out.
Looking forward to the update.
Update to 1.14.4 since this will be the latest version of MC for a long while (until 1.15 comes out). Also I cannot handle not being able to macro commands like /party chat and /home.
Hello,
I would like to know if the wiki is updated, I was looking for the getRecipe () in the wiki and did not get results,
thanks for the mod this is great.
Hi, can you explain the whole inventory mapping thing to me? I've been flicking through the examples trying to create an understanding of the mod, because it's potential is insane. What I wish to do is automate the crafting of arrows, but I'm unsure how to make the crafting map to 9 instead of 4. It's of course easy enough to get it to right click a crafting table before hand, but not sure how craft with 9. Also, I was looking at the sugarcane script trying to get an understanding of how you located the sugar cane in your inventory, and I think I've got there but if you could explain a little of what you went through to get that result and how it would be applied in the context of arrows that would be really helpful. Also, whilst we're at it, how would I map a /shop display? I'm assuming it'd be pretty much the same as doing it for a chest, but then again I don't know how to do it for a chest xD.
In reply to Forge_User_83996187:
Update: figured out how to place items in the 3x3 grid of a crafting table, and the inventory .craftingOut works as expected when you're dealing with the 2x2 crafting area, but when I'm using a work bench I can't get it to work. I just want it to click on the product and release it somewhere in the inventory (don't mind where). On the work bench craftingOut is replaced with craftOut it seems, but I can't get either of them to work. Any ideas? Also how do you reference items in a double chest? The slots only seem to go up to 27
In reply to Forge_User_83996187:
FYI, there is a working (for 1.14) crafting script at https://github.com/wagyourtail/my-advanced-macros/blob/master/craft.lua.
In reply to Forge_User_83996187:
Just fixed some mapping issues with the crafting output for the crafting table being incorrect
(previously pointed to 0 instead of 1)
Also added "double chest" to the list of mappings
(this is for version 7.7.6)
for crafting the sugar cane:
If something doesn't have a mapping you can also search through the slots using a loop from 1 to getTotalSlots() to find a known item and log the slot number
If you have a more complicated recipe you can get the crafting recipe with
getRecipe( name <,dmg> )
which returns a table with furnace and crafting recipes
inside each one of those are options for crafting
then the x and y for the slots in the recipe
and then each slot lists valid items
Hi again!
I was wondering how the file IO works? Doing a debug program because I'm lazy.