Hi, I'm fairly new to the mod and need a bit of help, I love pvp servers and wanted to make a script that informs me of my health
I put this in the "OnHealthChange" slot and it doesnt seem to work
$${IIF(HEALTH = 10,LOG(Health is at 50%)}$$
Im fully aware what is wrong but i just dont know how to fix it its taking the , and inserting the log as text and if i use a semi-colon it takes it as a separate command and spams my logs. I would appreciated any assistance i can get
Can you make it so that buttons on the mouse, such as buttons 3, 4, 5, and 10, are detected when selecting a key for a macro? It would also be nice if there were buttons for the mouse sidescroll.
EDIT: Okay, ARRAYSIZE and INDEXOF work without the [] behind the array name, but I'm sure I tested that before :/
Did't you say that the square brackets are optional in array-only commands? They don't work for me when I use brackets.
They're supposed to be, it's possible that the [] aren't being properly trimmed by some commands. Arrays are still new so it's possible there are still odd behaviours like this. I'll check it out and hopefully iron out these issues for the next update.
Sorry, I tried to search through the thread to see if I could find anything about this, but I couldn't.
When I enable liteloader in MagicLauncher, the client hangs forever at the Mojang splash screen. This happens regardless of whether or not I actually have the .litemod file in the mods directory, so it seems like it must be a liteloader compatibility issue or something with another mod I'm trying to use.
Can anyone tell me if any of these are incompatible or whether I might reorder them to get this working? Here's my config. I've tried placing liteloader both first, last, and in a few other places.
Sorry, I tried to search through the thread to see if I could find anything about this, but I couldn't.
When I enable liteloader in MagicLauncher, the client hangs forever at the Mojang splash screen. This happens regardless of whether or not I actually have the .litemod file in the mods directory, so it seems like it must be a liteloader compatibility issue or something with another mod I'm trying to use.
Can anyone tell me if any of these are incompatible or whether I might reorder them to get this working? Here's my config. I've tried placing liteloader both first, last, and in a few other places.
I can't see any mods in there that would cause problems, are you on a Mac by any chance? Also have you tried it with a better launcher like MultiMC?
I have a question, how would you use the keydown and keyup methods for the right click on the mouse?
The right click action of the mouse is the USE binding which can be used with KEY but not with KEYUP or KEYDOWN because it is a trigger binding (see this post which explains all technicalities) so if you want to invoke it for more than 1 tick you have to put it in a loop.
For example this can be used to hold down USE for 1 second (20 ticks):
I've been searching but thread has way too many pages and search function wasn't enough to find something like this, so I will simply ask.
Is there a way to make a macro that automatically changes to the next slot (from 1 to 2, from 2 to 3, etc) when the amount of items on the current slot is too low. I mean some kind of building macro that changes to next slot when you're running out of items.
I've been searching but thread has way too many pages and search function wasn't enough to find something like this, so I will simply ask.
Is there a way to make a macro that automatically changes to the next slot (from 1 to 2, from 2 to 3, etc) when the amount of items on the current slot is too low. I mean some kind of building macro that changes to next slot when you're running out of items.
The number of items in the current slot is accessed via STACKSIZE and the command for moving up one slot is INVENTORYUP() so it's possible, you just need to decide what event to use to trigger the behaviour, since obviously you don't want it to happen all the time just some of the time.
This example could be used to make it a toggle for example:
The number of items in the current slot is accessed via STACKSIZE and the command for moving up one slot is INVENTORYUP() so it's possible, you just need to decide what event to use to trigger the behaviour, since obviously you don't want it to happen all the time just some of the time.
This example could be used to make it a toggle for example:
Thanks so much
IIF(boolean,echowhentrue,echowhenfalse)
That is how iif is.
IF(boolean);LOG(whentrue);ELSE;LOG(whenfalse);ENDIF
Is what you want.
Okay so IF is kinda like where it needs to start and the ENDIF signals the if to stop? And it didn't work :I
Mods I work on and maintain:
TabbyChat | Mine Little Pony
My Blog
So it was you who fixed it?! Oh, Mumfrey, you are far too awesome for your own good.
If I could even understand how the ~original~ code worked, I'd happily help you. But I don't have a clue about some of this stuff.
They're supposed to be, it's possible that the [] aren't being properly trimmed by some commands. Arrays are still new so it's possible there are still odd behaviours like this. I'll check it out and hopefully iron out these issues for the next update.
When I enable liteloader in MagicLauncher, the client hangs forever at the Mojang splash screen. This happens regardless of whether or not I actually have the .litemod file in the mods directory, so it seems like it must be a liteloader compatibility issue or something with another mod I'm trying to use.
Can anyone tell me if any of these are incompatible or whether I might reorder them to get this working? Here's my config. I've tried placing liteloader both first, last, and in a few other places.
I can't see any mods in there that would cause problems, are you on a Mac by any chance? Also have you tried it with a better launcher like MultiMC?
That looks fine to me, is @#craftbuf definitely pointing to the correct element?
The right click action of the mouse is the USE binding which can be used with KEY but not with KEYUP or KEYDOWN because it is a trigger binding (see this post which explains all technicalities) so if you want to invoke it for more than 1 tick you have to put it in a loop.
For example this can be used to hold down USE for 1 second (20 ticks):
Is there a way to make a macro that automatically changes to the next slot (from 1 to 2, from 2 to 3, etc) when the amount of items on the current slot is too low. I mean some kind of building macro that changes to next slot when you're running out of items.
It's set the same way for the other array.
--
The number of items in the current slot is accessed via STACKSIZE and the command for moving up one slot is INVENTORYUP() so it's possible, you just need to decide what event to use to trigger the behaviour, since obviously you don't want it to happen all the time just some of the time.
This example could be used to make it a toggle for example:
You can't do that because the assigment operator doesn't parse the left hand side of the expression, you have to use SET.
That is simply awesome, exactly what I was looking for