Does anyone have any ideas how I could do a "throw certain items out of my inventory" script? KEY(throw) doesn't seem to work when I'm inside my inventory screen. Is there a way to get SLOTCLICK to simulate clicking outside of the GUI (which normally throws the item).
I could quickly flick in and out of the inventory screen to load each item into the hotbar, but I'm hoping for something a bit less seizure-inducing
pix
What about moving the items to slots 1-4 (the crafting grid)? You still have to exit the inventory for them to drop, but it's a lot easier and faster than moving them to the hotbar and spamming the drop button.
Does anyone have any ideas how I could do a "throw certain items out of my inventory" script? KEY(throw) doesn't seem to work when I'm inside my inventory screen. Is there a way to get SLOTCLICK to simulate clicking outside of the GUI (which normally throws the item).
I could quickly flick in and out of the inventory screen to load each item into the hotbar, but I'm hoping for something a bit less seizure-inducing
What about moving the items to slots 1-4 (the crafting grid)? You still have to exit the inventory for them to drop, but it's a lot easier and faster than moving them to the hotbar and spamming the drop button.
I believe you can just SLOTCLICK to a negative number and it will throw it out of the inventory.
EDIT: Actually, just tested, maybe it needs to be a lower negative number. -999 will throw it out of the inventory but -1 will not.
I believe you can just SLOTCLICK to a negative number and it will throw it out of the inventory.
EDIT: Actually, just tested, maybe it needs to be a lower negative number. -999 will throw it out of the inventory but -1 will not.
I just checked the code, it actually has to be exactly -999, it's treated as a magic number
Mumfrey, I have a question about LiteLoader. I've tried to switch my mods to it, and implemented LiteMod just for testing. However, LiteLoader refuses to load my mod from the classpath, even when there is a classpath entry for the correct folder.
Mumfrey, I have a question about LiteLoader. I've tried to switch my mods to it, and implemented LiteMod just for testing. However, LiteLoader refuses to load my mod from the classpath, even when there is a classpath entry for the correct folder.
I keep my stuff in the regular net.minecraft.src folder, looks like I derped that up for the classpath and accidentally chose client.
I didn't know about the LiteMod requirement, and I have extended RenderListener and Tickable.
I keep my stuff in the regular net.minecraft.src folder, looks like I derped that up for the classpath and accidentally chose client.
I didn't know about the LiteMod requirement, and I have extended RenderListener and Tickable.
Yay, it works now!
Glad it works, there hasn't been any pressing reason to document LiteLoader to date so sorry it's a bit sparse, I'll put some info up on the assembla if people are likely to use it.
Putting everything in net.minecraft.src is not a great plan and really you should use a namespace for your mod, I made which shows how to set up Eclipse/MCP for efficient multi-project working (ignore the stuff about modloader).
----
Also, in case anyone is wondering, I'm not dead I'm just insanely busy IRL for the next few weeks, so I'm planning to squeeze in the 1.5 update when required but to all intents and purposes I'm away until mid-march. I'll still read PM's but following the thread is a bit tricky at the moment sorry.
Could someone to show me how to make a array. Thanks
In the changelogs are the array commands like push and pop, but to just manually create it you can do
Set(&array[0],string1)
Set(&array[1],string2)
...etc.
This way you can edit directly members of an array (which, like variables, editing something makes it exist)
in this case, the array is &array, and &array[#] is a specific member, a specific value
you use arrays in foreach loops or array commands, you use specific entries of an array the way you use variables normally
So is there no way to load a set of strings into a array without having to do a Set() Each time, Seems a little long winded to me but what can you do.
Thanks for the info BTW
You can use PUSH also. That way you don't have to use the number (place in the array), as push always appends a value to the end of the array. Honestly, I think using SET is a little finicky with arrays, whenever I've tried using it, it doesn't work for me.
So is there no way to load a set of strings into a array without having to do a Set() Each time, Seems a little long winded to me but what can you do.
Thanks for the info BTW
Yeeah, what crismack chattaPIE said..
that's why i asked if you had specific questions - not knowing what you mean, i gave the simplest example that fits what you're asking
As the opposite, making a large array with the least amount of commands, something like ForEach(players),Push(&players,%ONLINEPLAYER%);Next might create a large array in only three commands
and there are others like it
If you're trying to do something specific, please explain it and we'll figure out an efficient way of doing it =)
Yeeah, what crismack chattaPIE said..
that's why i asked if you had specific questions - not knowing what you mean, i gave the simplest example that fits what you're asking
As the opposite, making a large array with the least amount of commands, something like ForEach(players),Push(&players,%ONLINEPLAYER%);Next might create a large array in only three commands
and there are others like it
If you're trying to do something specific, please explain it and we'll figure out an efficient way of doing it =)
Yeah i would have asked you a specific question, but when i asked it i was still trying to figure out how to even make them and set the variables I figured it out just before you gave the answer.
Thanks for showing me how to do both BTW i have one last question. Is there a remainder operator from what i can see it doesn't look like there is one
Rollback Post to RevisionRollBack
"I don't suffer from insanity. I enjoy every second of it"
Yeah i would have asked you a specific question, but when i asked it i was still trying to figure out how to even make them and set the variables I figured it out just before you gave the answer.
Thanks for showing me how to do both BTW i have one last question. Is there a remainder operator from what i can see it doesn't look like there is one
No, i don't think there is, but it's a simple function
A friend of mine directed me towards this mod, and for the most part, I have it configured nearly perfectly.
But there's a couple things that even he,. the genius that has helped me so many times, can't seem to help me with.
Does anyone know how to configure it so that pressing a certain key ([Page Down], in my case) would issue the jump command ([Right Ctrl], in my case) twice, as to facilitate lift-off when flying?
Also, is there a way to make it so that if your Y-coordinate is below a certain level, (say Y:-20) it would issue a certain command (say, /warp end)?
And last but not least, is there a way to configure it so that if certain terms, are present in a chat message, it issues a specific command? (In this case, it'd be at the mention of my name, or any variation, it's issue "/me is AFK, be back soon*")
Does anyone know how to configure it so that pressing a certain key ([Page Down], in my case) would issue the jump command ([Right Ctrl], in my case) twice, as to facilitate lift-off when flying?
Also, is there a way to make it so that if your Y-coordinate is below a certain level, (say Y:-20) it would issue a certain command (say, /warp end)?
And last but not least, is there a way to configure it so that if certain terms, are present in a chat message, it issues a specific command? (In this case, it'd be at the mention of my name, or any variation, it's issue "/me is AFK, be back soon*")
$${IFMATCHES("%CHATCLEAN%","regex");ECHO("/me is AFK, be back soon*");ENDIF;
The regex should be adjusted to your in game name, but for me, I use "([Cc]hat[tahipe]+|[C,c]hat)"
It's not a very efficient regex, but it suits my needs, and if you adjust it to your name, it should work fine.
Use YPOS instead of HEIGHT
There is not an ordinary variable for flying, but you can kind of make your own with GETIDREL. Something like:
Whenever it runs, it will check to see if the two blocks below the feet are air, and if so assumes you are flying.
What about moving the items to slots 1-4 (the crafting grid)? You still have to exit the inventory for them to drop, but it's a lot easier and faster than moving them to the hotbar and spamming the drop button.
I believe you can just SLOTCLICK to a
negative numberand it will throw it out of the inventory.EDIT: Actually, just tested, maybe it needs to be a lower negative number. -999 will throw it out of the inventory but -1 will not.
I just checked the code, it actually has to be exactly -999, it's treated as a magic number
Thanks!
pix
Debug output (name ommited):
There doesn't seem to be a class path entry for your project! Go to Run Configurations and make sure your mod's project is added to the classpath.
You also need to satisfy:
I didn't know about the LiteMod requirement, and I have extended RenderListener and Tickable.
Yay, it works now!
Glad it works, there hasn't been any pressing reason to document LiteLoader to date so sorry it's a bit sparse, I'll put some info up on the assembla if people are likely to use it.
Putting everything in net.minecraft.src is not a great plan and really you should use a namespace for your mod, I made which shows how to set up Eclipse/MCP for efficient multi-project working (ignore the stuff about modloader).
----
Also, in case anyone is wondering, I'm not dead I'm just insanely busy IRL for the next few weeks, so I'm planning to squeeze in the 1.5 update when required but to all intents and purposes I'm away until mid-march. I'll still read PM's but following the thread is a bit tricky at the moment sorry.
In the changelogs are the array commands like push and pop, but to just manually create it you can do
Set(&array[0],string1)
Set(&array[1],string2)
...etc.
This way you can edit directly members of an array (which, like variables, editing something makes it exist)
in this case, the array is &array, and &array[#] is a specific member, a specific value
you use arrays in foreach loops or array commands, you use specific entries of an array the way you use variables normally
any specific questions?
'Cause tomorrow spring is here
If a new player joined could I have a macro that would say welcome to the server [playername]!
So is there no way to load a set of strings into a array without having to do a Set() Each time, Seems a little long winded to me but what can you do.
Thanks for the info BTW
You can use PUSH also. That way you don't have to use the number (place in the array), as push always appends a value to the end of the array. Honestly, I think using SET is a little finicky with arrays, whenever I've tried using it, it doesn't work for me.
If you want to pre-load data into the array you can just put it straight into the .vars.xml or .globalvars.xml too.
In .macros.txt change
Yeeah, what
crismackchattaPIE said..that's why i asked if you had specific questions - not knowing what you mean, i gave the simplest example that fits what you're asking
As the opposite, making a large array with the least amount of commands, something like ForEach(players),Push(&players,%ONLINEPLAYER%);Next might create a large array in only three commands
and there are others like it
If you're trying to do something specific, please explain it and we'll figure out an efficient way of doing it =)
'Cause tomorrow spring is here
Yeah i would have asked you a specific question, but when i asked it i was still trying to figure out how to even make them and set the variables I figured it out just before you gave the answer.
Thanks for showing me how to do both BTW i have one last question. Is there a remainder operator from what i can see it doesn't look like there is one
No, i don't think there is, but it's a simple function
#div = #num1 / #num2
#rem = #num1 - #num2 * #num1 / #num2
this works without parentheses because order of operations is left to right... =/
you can ofcourse also write
#div = #num1 / #num2
#rem = #num1 - (#num2 * (#num1 / #num2))
'Cause tomorrow spring is here
Cool thanks again.
Also i feel i should include the obligatory Hows the wiki going Mumfrey (This is a joke, I know you are busy :P)
But there's a couple things that even he,. the genius that has helped me so many times, can't seem to help me with.
Does anyone know how to configure it so that pressing a certain key ([Page Down], in my case) would issue the jump command ([Right Ctrl], in my case) twice, as to facilitate lift-off when flying?
Also, is there a way to make it so that if your Y-coordinate is below a certain level, (say Y:-20) it would issue a certain command (say, /warp end)?
And last but not least, is there a way to configure it so that if certain terms, are present in a chat message, it issues a specific command? (In this case, it'd be at the mention of my name, or any variation, it's issue "/me is AFK, be back soon*")
1.
2.
3.In OnChat:
The regex should be adjusted to your in game name, but for me, I use "([Cc]hat[tahipe]+|[C,c]hat)"
It's not a very efficient regex, but it suits my needs, and if you adjust it to your name, it should work fine.