If what you are trying to do is have the macro run a command when only "h" is pressed and a totally different one when "Shift+h" is pressed all you have to do is go into the options when writing a macro for a keybind (on the right) and check the "shift" option in "check for modifiers.
Hi, I've been trying to use a right click in an inventory using SLOTCLICK but I am unable to right it properly...
SLOTCLICK() works like this:
SLOTCLICK(%#slotid%,r); //this would click on #slotid with the right mouse button
SLOTCLICK(%#slotid%,l,true); //this would shift-click on #slotid with the left mouse button
So, if I wanted to automatically say "Welcome back, (name)" to someone who comes back from being AFK, how would I go about doing that? It'd have to use the OnChat event right?
So, if I wanted to automatically say "Welcome back, (name)" to someone who comes back from being AFK, how would I go about doing that? It'd have to use the OnChat event right?
Yes...
You also need a regular expression that matches the "welcome back" message from your server and captures the name as the first capturing group
preferably with color codes
which you can see by using $${LogTo(debug.txt,%CHAT%)}$$ and looking in your macros/logs/debug.txt
If what you are trying to do is have the macro run a command when only "h" is pressed and a totally different one when "Shift+h" is pressed all you have to do is go into the options when writing a macro for a keybind (on the right) and check the "shift" option in "check for modifiers.
Hope this helped
im not attempting to run a command. im attempting to bind a mod thing to shift+h. i have figured out how to do this with vanilla controls but run into issues with mods due to syntax.
Vanilla keybind syntax is key_key.whateverthekeydoes but some mods are written as key_whateverthekeydoes and this causes an issue with the keybinding in macro mod.
im not attempting to run a command. im attempting to bind a mod thing to shift+h. i have figured out how to do this with vanilla controls but run into issues with mods due to syntax.
Vanilla keybind syntax is key_key.whateverthekeydoes but some mods are written as key_whateverthekeydoes and this causes an issue with the keybinding in macro mod.
Well what "mod thing" are you trying to bind? I believe key() only works for vanilla bindings, so you would need to use press() as mentioned before bound to shift + h as also mentioned. You also need to have the mod action bound to a physical key in the vanilla key mapper (maybe numpad or another key you never use?) And use that key in press(). If this does not answer your question then I don't believe this mod can do what you are looking for.
Is there any way to set a keydown for the mouse click? What I want is to create a script that, once enabled, holds the attack key to keep mining a stone generator constantly, and then using the same script to disable it. Is that even possible? I don't seem to find a way to hold the attack, only repeat it, and that doesn't work for what I need.
The Meaning of Life, the Universe, and Everything.
Join Date:
4/3/2015
Posts:
43
Member Details
Shouldn't &toy be a numerical variable instead? Also what are you trying to accomplish?
Anyways, I've got some questions about polling a Reddit post for new comments. I believe this is possible with the json and html modules right? Or would it be better done in python and then transferred to mkb via the clipboard or a text file? I've never used json or RSS feeds before so this is new for me.
Alright, so I'm trying to get it to automatically welcome people to my server. When they first join it says "<name> awkwardly enters.." This is what I have so far
$${logto(debug.txt,%CHAT%)}$$|$${(IFMATCHES(%CHAT%,"&name awkwardly enters..")echo("Welcome to Silver Springs Survival, %&name%! Make sure you read the /rules!")ENDIF(}$$
I've never really scripted before, so not sure how to do anything lol, could use some help, thanks
Is there any way to set a keydown for the mouse click? What I want is to create a script that, once enabled, holds the attack key to keep mining a stone generator constantly, and then using the same script to disable it. Is that even possible? I don't seem to find a way to hold the attack, only repeat it, and that doesn't work for what I need.
For some obscure reason attack is not actually a stateful bind..., to "hold it down" you need to call Key(attack) on every game tick
Do(60);Key(attack);Loop;// Break blocks for three seconds
Shouldn't &toy be a numerical variable instead? Also what are you trying to accomplish?
Anyways, I've got some questions about polling a Reddit post for new comments. I believe this is possible with the json and html modules right? Or would it be better done in python and then transferred to mkb via the clipboard or a text file? I've never used json or RSS feeds before so this is new for me.
"new" seems difficult though.., how do you determine which ones are "new"?
the API unfortunately doesn't let you set a limit by date, only by number of newest comments returned
One thing you can do though is figure out the API in a language you're comfortable in, then start translating that to MKB
Alright, so I'm trying to get it to automatically welcome people to my server. When they first join it says "<name> awkwardly enters.." This is what I have so far
$${logto(debug.txt,%CHAT%)}$$|$${(IFMATCHES(%CHAT%,"&name awkwardly enters..")echo("Welcome to Silver Springs Survival, %&name%! Make sure you read the /rules!")ENDIF(}$$
I've never really scripted before, so not sure how to do anything lol, could use some help, thanks
First of all, while it might work to use multiple sets of script tags, it's weird - i strongly recommend having one set
$${
LogTo(debug.txt,%CHAT%)
IFMATCHES(%...
...
}$$
Secondly, unless you have line breaks between your commands, use semicolons to separate them!, otherwise the mod won't be able to tell where one command ends and another begins and nothing will work
The second set of script tags shouldn't be immediately followed by an open parentheses
ENDIF needs a closing parentheses
IFMATCHES needs a REGULAR EXPRESSION
Once you get the LogTo() to work (you can remove all the other commands for now), copy paste the chat logs from macros/logs/debug.txt to an online service such as regexr.com, turn on all three of the flags, and start writing
or just copy them back to this thread if there's nothing confidential
What you have right now is interpreted as follows
Literally "&name awkwardly enters" followed by two more any characters
Well what "mod thing" are you trying to bind? I believe key() only works for vanilla bindings, so you would need to use press() as mentioned before bound to shift + h as also mentioned. You also need to have the mod action bound to a physical key in the vanilla key mapper (maybe numpad or another key you never use?) And use that key in press(). If this does not answer your question then I don't believe this mod can do what you are looking for.
unfortunate. see i would use press but i have no numpad (alienware laptop mx14 have none) and i have 200+ mods. running out of keys to bind them to. anyone have any idea any other mod that would be able to achieve this? because what im trying to do would effectively almost double the keys i could use.
unfortunate. see i would use press but i have no numpad (alienware laptop mx14 have none) and i have 200+ mods. running out of keys to bind them to. anyone have any idea any other mod that would be able to achieve this? because what im trying to do would effectively almost double the keys i could use.
If you have a desktop computer with a usb keyboard, you could plug that into your laptop, set the controls to keys your laptop doesn't have, and go from there. Alternatively, I'm guessing there is a config file in the .minecraft folder somewhere where you could manually edit the controls to keys you don't have. The latter would provide even more possibilities.
"new" seems difficult though.., how do you determine which ones are "new"?
the API unfortunately doesn't let you set a limit by date, only by number of newest comments returned
One thing you can do though is figure out the API in a language you're comfortable in, then start translating that to MKB
Well I actually figured out how to log a file of new comments on a post in node.js using rockets: https://github.com/rockets and was depending on the readfile module here: http://techshroom.com/other/minecraft/mods/macrokeybind-mod/modules/ but it's for a different api than 1.8 beta 2. How often does the api change? Might it work in beta 1? Do you know what it would take to update it? Thanks
Edit: contacted the developer, she said she might update it.
If what you are trying to do is have the macro run a command when only "h" is pressed and a totally different one when "Shift+h" is pressed all you have to do is go into the options when writing a macro for a keybind (on the right) and check the "shift" option in "check for modifiers.
Hope this helped
SLOTCLICK() works like this:
So, if I wanted to automatically say "Welcome back, (name)" to someone who comes back from being AFK, how would I go about doing that? It'd have to use the OnChat event right?
Yes...
You also need a regular expression that matches the "welcome back" message from your server and captures the name as the first capturing group
preferably with color codes
which you can see by using $${LogTo(debug.txt,%CHAT%)}$$ and looking in your macros/logs/debug.txt
then you just
$${
IFMATCHES(%CHAT%,"regular_expression",&name,1)
ENDIF
}$$
'Cause tomorrow spring is here
Did the 1.8 beta version of this mod get taken down? The download link isn't working
You don't.. because they're different commands, but why do you need to?
You can just nest them
IFMATCHES(%CHAT%,Regex)
ENDIF
'Cause tomorrow spring is here
im not attempting to run a command. im attempting to bind a mod thing to shift+h. i have figured out how to do this with vanilla controls but run into issues with mods due to syntax.
Vanilla keybind syntax is key_key.whateverthekeydoes but some mods are written as key_whateverthekeydoes and this causes an issue with the keybinding in macro mod.
Well what "mod thing" are you trying to bind? I believe key() only works for vanilla bindings, so you would need to use press() as mentioned before bound to shift + h as also mentioned. You also need to have the mod action bound to a physical key in the vanilla key mapper (maybe numpad or another key you never use?) And use that key in press(). If this does not answer your question then I don't believe this mod can do what you are looking for.
Hi, I'm trying to figure out how to use the DO and UNTIL command to have multiple condition to exit the loop. Does this work??
DO
RANDOM(&toy,17,0)
GETSLOTITEM(%&toy%,&toy1)
LOG(%&toy1%)
UNTIL(%&toy1%!="dye")
SLOTCLICK(%&toy%)
1) Yes, this works
2) This only has a single condition
3) Multiple conditions work if you use IF(cond);Break;ENDIF or simply and (&&) the conditions together
example: UNTIL(did_thing && (XPOS == %#xtarget%) && (HEALTH > 4))
3) What is with those utterly confusing variable names
'Cause tomorrow spring is here
Is there any way to set a keydown for the mouse click? What I want is to create a script that, once enabled, holds the attack key to keep mining a stone generator constantly, and then using the same script to disable it. Is that even possible? I don't seem to find a way to hold the attack, only repeat it, and that doesn't work for what I need.
Shouldn't &toy be a numerical variable instead? Also what are you trying to accomplish?
Anyways, I've got some questions about polling a Reddit post for new comments. I believe this is possible with the json and html modules right? Or would it be better done in python and then transferred to mkb via the clipboard or a text file? I've never used json or RSS feeds before so this is new for me.
Alright, so I'm trying to get it to automatically welcome people to my server. When they first join it says "<name> awkwardly enters.." This is what I have so far

$${logto(debug.txt,%CHAT%)}$$|$${(IFMATCHES(%CHAT%,"&name awkwardly enters..")echo("Welcome to Silver Springs Survival, %&name%! Make sure you read the /rules!")ENDIF(}$$
I've never really scripted before, so not sure how to do anything lol, could use some help, thanks
For some obscure reason attack is not actually a stateful bind..., to "hold it down" you need to call Key(attack) on every game tick
Do(60);Key(attack);Loop;// Break blocks for three seconds
It.., should be possible https://www.reddit.com/dev/api/oauth#GET_comments_{article}
I don't think the mod has the power to run arbitrary script files on your system so the alternative would need you to tab out of the game
"new" seems difficult though.., how do you determine which ones are "new"?
the API unfortunately doesn't let you set a limit by date, only by number of newest comments returned
One thing you can do though is figure out the API in a language you're comfortable in, then start translating that to MKB
First of all, while it might work to use multiple sets of script tags, it's weird - i strongly recommend having one set
$${
LogTo(debug.txt,%CHAT%)
IFMATCHES(%...
...
}$$
Secondly, unless you have line breaks between your commands, use semicolons to separate them!, otherwise the mod won't be able to tell where one command ends and another begins and nothing will work
The second set of script tags shouldn't be immediately followed by an open parentheses
ENDIF needs a closing parentheses
IFMATCHES needs a REGULAR EXPRESSION
Once you get the LogTo() to work (you can remove all the other commands for now), copy paste the chat logs from macros/logs/debug.txt to an online service such as regexr.com, turn on all three of the flags, and start writing
or just copy them back to this thread if there's nothing confidential
What you have right now is interpreted as follows
Literally "&name awkwardly enters" followed by two more any characters
'Cause tomorrow spring is here
Is there a way to change the and (&&) to an or??
Well I had to find a quick name lol
unfortunate. see i would use press but i have no numpad (alienware laptop mx14 have none) and i have 200+ mods. running out of keys to bind them to. anyone have any idea any other mod that would be able to achieve this? because what im trying to do would effectively almost double the keys i could use.
Simple way:
Use ||
Alternative:
Apply De-Morgan's law and use !(!cond && !cond)
'Cause tomorrow spring is here
If you have a desktop computer with a usb keyboard, you could plug that into your laptop, set the controls to keys your laptop doesn't have, and go from there. Alternatively, I'm guessing there is a config file in the .minecraft folder somewhere where you could manually edit the controls to keys you don't have. The latter would provide even more possibilities.
Well I actually figured out how to log a file of new comments on a post in node.js using rockets: https://github.com/rockets and was depending on the readfile module here: http://techshroom.com/other/minecraft/mods/macrokeybind-mod/modules/ but it's for a different api than 1.8 beta 2. How often does the api change? Might it work in beta 1? Do you know what it would take to update it? Thanks
Edit: contacted the developer, she said she might update it.
It was still wonky, made it perform better though with some little changes.
Wait, did i read that right?
-.-
'Cause tomorrow spring is here