Quick request, could you add a configurable script that runs a command when the hotkey is pressed, waits for awhile, runs it again, waits, runs, waits ,etc until the hotkey is press again? I tried to change the autouse to something like that but I learned about the scripting part of macros today.
EDIT:
I cooked up this quickly, doesn't work
Do
wait(5000)
press(r)
wait(5000)
press(r)
until(keypressed(r))
well my server has a plugin to make food heal hearts and after full hearts heals food bars
can tell me if the smart eater script works with with this if it doesnt
here is my suggestion: make script or add to the auto eater script to start eating if hearts go down or maybie when im not on the server make it so it also uses potions of healing
my other suggestion is script that auto blocks when being attacked
im not sure if thats fast enough tho
dude, this stuff is EPIC! i want to know, can a script be made that when i click a button, it eats something in my inventory like an apple or whatever.
EG- hitting a creeper, hits the "r" button, drinks a potion of stregnth, imidiatly switches back to sword.
Can this be done?
Thanks for the scripts. you deserve a also, can you make a script that onitempickup, will put it into my inventory and NOT my hotbar? i like having a space empty and the bones/rotton flesh/whatevercrap keeps coming there.
Description:
This macro checks your hunger and automatically switches to and eats food efficiently and wastes no possible food points. ie. If you have 7 out of 10 , 1 steak, and 1 cooked chicken, it will not eat the steak because it restores 4 but will eat the cooked chicken because it restores only 3 .
Usage:
Press hotkey and press 1 and enter if you want to eat raw food, rotten flesh, or spider eyes. Type anything before pressing enter if you do not want to eat raw food, etc.. To stop, press hotkey and enter.
Note:
- The list of foods don't include cake as it functions differently from the other food items and golden apples as the may be expensive to some users.
can you post a small video? i generally eat mellons and i do not understand these instructions. also, do the mellons have to be in the hotbar? will it just go to mellons, eat, then switch back? thanks.
I am having a problem trying to actually implement the "Autouse" code. Could someone please provide a step-by-step guide to how and where do I place the text and what-not?
Thanks in advance. -Jordst3r
Rollback Post to RevisionRollBack
While practice makes perfect. But while nobody is perfect so why practice?
I was looking for a way to toggle sneaking and then I found this. My only problem was I wanted to be sneaking while opening a chest or something similar. I made some changes to the script you have and I hope you like it. You can adjust the wait time to make it check faster, but it might lag. http://pastebin.com/vJBrR7Wh
EDIT:
I made improvements to the script here is the new version. http://pastebin.com/J3EUxnqH
Quick request, could you add a configurable script that runs a command when the hotkey is pressed, waits for awhile, runs it again, waits, runs, waits ,etc until the hotkey is press again? I tried to change the autouse to something like that but I learned about the scripting part of macros today.
EDIT:
I cooked up this quickly, doesn't work
Do
wait(5000)
press®
wait(5000)
press®
until(keypressed®)
Well unless you say 5000ms, it will wait for 5000 seconds.
I created a torch placing macro that will switch back to whatever hotbar slot that you were previously on. Once you have added this macro just link it up to a button and the torch will be placed everytime that key is pressed.
Hi guys ! I've tried the toggle sneak script, and it make me snake when i write something in the chat, and it make me stop toggling when i write an other sentence in the chat, my key for sneak is'nt a toggle button... Please, help me, i'm french, sorry for my bad english, i love this mod but scripts always don't work for me ... Thanks for answers !
PS : When others guys write in the chat it make me work the toggle sneak, i don't know if this sentence is in an understable syntax x)
You can go into your minecraft controls and change the sneak key to something that you will never use. Next create a macro on the key that you want to use for sneak and put:
$${togglekey(sneak)}$$
I have not had any problems when using the chat with my setup.
I am not a coder by profession, but I occasionally like to throw some pieces of code (usually powershell or vbscript or ahk) together to make my life easier. This mod has huge potential. I am trying to come up with best ways to structure an auto-build script. I'll appreciate anyone who wants to join in the adventure :). I am just bemoaning the fact that unlike most computer languages, there is no easy reference to be found - Mumfrey is pretty busy I'm sure, but the code keeps maturing and growing, and we only have the extremely inconvenient forum format and the outdated readme to go on. Sure, the change-log is kinda useful, but lacks in details and syntax. So I decided to at least start structuring the overall plan first.
The reason I wanted to come up with a comprehensive autobuild script is that it gets so darned boring to build even a 20x20x20 cube, especially multi-storey.
So here's the rough sketch:
Take user input of basic parameters (length, width, height, float altitude, materials). Then using concise scripting techniques (I tend to produce long accordions sometimes because of lack of training) and a solid optimal building path start putting down the blocks. I imagine we can start with designating the south-west corner/s location by hitting a block below it, and then the script will use the dimensions given earlier to build from there.
Ideas are welcome. I am missing some essential positional commands that I would love to glean from those that have already perused them for their scripts.
This is a state report script, much like Gorlem's script, except it allows you to force a report. Sorry about the no file share thing, but I couldn't get it to work.
Just my offering while I learn scripting. A quick macro to warn you when your item's durability gets low.
# EVENT_ONITEMDURABILITYCHANGE
Macro[1011].Macro=$${IF(DURABILITY < 2);LOG("This item has only %DURABILITY% use left!");ELSEIF(DURABILITY < 11);LOG("This item only has %DURABILITY% uses left!");ENDIF;}$$
I couldn't get it to work in a proper .txt script, but it can just be added to the end of the .macros.txt directly.
What I did to get the onItemDurabilityChange event to work was this:
I fixed AutoEater-Smart/Efficient for 1.4.5. I removed eating Golden apples and didn't include eating poison potatoes and Golden carrots.
Enjoy.
Couldn't find the Attach file button. So i put the code under the spoiler.
So i don't know programming at all, but under my mods folder there is no macro folder, so i made one. additionally, the shift+grave doesnt do anything as far as i can figure out.
So i don't know programming at all, but under my mods folder there is no macro folder, so i made one. additionally, the shift+grave doesnt do anything as far as i can figure out.
You should be able to edit the controls at Esc. Menu -> Options -> Controls.
If it doesn't show up there, then you may have installed something wrong, and then refer back to the mod page.
EDIT:
I cooked up this quickly, doesn't work
Do
wait(5000)
press(r)
wait(5000)
press(r)
until(keypressed(r))
can tell me if the smart eater script works with with this if it doesnt
here is my suggestion: make script or add to the auto eater script to start eating if hearts go down or maybie when im not on the server make it so it also uses potions of healing
my other suggestion is script that auto blocks when being attacked
im not sure if thats fast enough tho
EG- hitting a creeper, hits the "r" button, drinks a potion of stregnth, imidiatly switches back to sword.
Can this be done?
Thanks for the scripts. you deserve a also, can you make a script that onitempickup, will put it into my inventory and NOT my hotbar? i like having a space empty and the bones/rotton flesh/whatevercrap keeps coming there.
Many thanks!
can you post a small video? i generally eat mellons and i do not understand these instructions. also, do the mellons have to be in the hotbar? will it just go to mellons, eat, then switch back? thanks.
Thanks in advance. -Jordst3r
http://pastebin.com/vJBrR7WhEDIT:
I made improvements to the script here is the new version.
http://pastebin.com/J3EUxnqH
Well unless you say 5000ms, it will wait for 5000 seconds.
Here is a script : $${ECHO(Hey %JOINEDPLAYER%)}$$ Theres your script
Make sure to put it into the onplayerjoined event too!
pick(50);
key(use);
wait(100ms);
slot(1);
endif;
IF(INVSLOT=2);
pick(50);
key(use);
wait(100ms);
slot(2);
endif;
IF(INVSLOT=3);
pick(50);
key(use);
wait(100ms);
slot(3);
endif;
IF(INVSLOT=4);
pick(50);
key(use);
wait(100ms);
slot(4);
endif;
IF(INVSLOT=5);
pick(50);
key(use);
wait(100ms);
slot(5);
endif;
IF(INVSLOT=6);
pick(50);
key(use);
wait(100ms);
slot(6);
endif;
IF(INVSLOT=7);
pick(50);
key(use);
wait(100ms);
slot(7);
endif;
IF(INVSLOT=8);
pick(50);
key(use);
wait(100ms);
slot(8);
endif;
IF(INVSLOT=9);
pick(50);
key(use);
wait(100ms);
slot(9);
endif;
You can go into your minecraft controls and change the sneak key to something that you will never use. Next create a macro on the key that you want to use for sneak and put:
I have not had any problems when using the chat with my setup.
The reason I wanted to come up with a comprehensive autobuild script is that it gets so darned boring to build even a 20x20x20 cube, especially multi-storey.
So here's the rough sketch:
Take user input of basic parameters (length, width, height, float altitude, materials). Then using concise scripting techniques (I tend to produce long accordions sometimes because of lack of training) and a solid optimal building path start putting down the blocks. I imagine we can start with designating the south-west corner/s location by hitting a block below it, and then the script will use the dimensions given earlier to build from there.
Ideas are welcome. I am missing some essential positional commands that I would love to glean from those that have already perused them for their scripts.
Thank you!
set(forcereport);
log(&2[Macro] &fForced State Report:);
log(&3Time(in Ticks): &f%TICKS% &3Light Level: &f%LIGHT%);
if(%RAIN% = 0);
log(&3Rain is off);
else;
log(&3Rain is on);
endif;
log(&3Server IP: &f%SERVER%);
log(&3Texture Pack: &f%TEXTUREPACK%);
log(&3Health: &f%HEALTH%);
log(&3Hunger: &f%HUNGER&);
log(&3Experience: &f%XP%);
log(&3Total XP: &f%TOTALXP%);
log(&3Level: &f%TOTALXP%);
if(%MODE% = SURVIVAL);
log(&3Gamemode: &fSurvival);
elseif(%MODE% = CREATIVE);
log(&3Gamemode: &fCreative);
else(%MODE% = ADVENTURE);
log(&3Gamemode: &fAdventure);
endif;
log(&3Position: &f%DIMENSION%, %XPOS%, %YPOS%, %ZPOS%);
log(&3Oxygen: &f%OXYGEN%);
log(&3Item: &f%ITEM%:%DURABILITY%);
unset(forcereport);
elseif(report);
unset(report);
log(&2[Macro] &fState Report off);
stop();
else;
do();
set(report);
log(&2[Macro] &fState Report:);
log(&3Time(in Ticks): &f%TICKS% &3Light Level: &f%LIGHT%);
if(%RAIN% = 0);
log(&3Rain is off);
else;
log(&3Rain is on);
endif;
log(&3Server IP: &f%SERVER%);
log(&3Texture Pack: &f%TEXTUREPACK%);
log(&3Health: &f%HEALTH%);
log(&3Hunger: &f%HUNGER%);
log(&3Experience: &f%XP%);
log(&3Total XP: &f%TOTALXP%);
log(&3Level: &f%TOTALXP%);
if(%MODE% = SURVIVAL);
log(&3Gamemode: &fSurvival);
elseif(%MODE% = CREATIVE);
log(&3Gamemode: &fCreative);
else(%MODE% = ADVENTURE);
log(&3Gamemode: &fAdventure);
endif;
log(&3Position: &f%DIMENSION%, X: %XPOS%, Y: %YPOS%, Z:%ZPOS%);
log(&3Oxygen: &f%OXYGEN%);
log(&3Item: &f%ITEM%:%DURABILITY%);
log(&3Next report in 5 minutes);
wait(300);
while(report);
endif;
What I did to get the onItemDurabilityChange event to work was this:
I placed this in a .txt file and just created a script that called upon the text file
Enjoy.
Couldn't find the Attach file button. So i put the code under the spoiler.
Looks similar to Java, but doubt it is. Love this mod and this thread, by the way.
You should be able to edit the controls at Esc. Menu -> Options -> Controls.
If it doesn't show up there, then you may have installed something wrong, and then refer back to the mod page.