Some final versions 0.15.0 for 1.12 and 0.15.1 for 1.12.1 are now available. I haven't updated the OP yet because this forum makes it difficult and I will wait for a few hours to make sure there aren't any truly egregious failures before I go through the pain and suffering of doing that.
As ever, make sure you're running an up-to-date liteloader snapshot, early snapshots may not support this version! Report any bugs below.
Download links
Changes in this version
Updated to Minecraft 1.12 and 1.12.1
Updated ACHIEVEMENTGET to show an Advancement Toast
Added TOAST command to display all types of available toast, see details in description below. Syntax is
TOAST([type],[icon],[text1],[text2],[ticks])
Added new globals UUID (constantly rotating GUID), BOWCHARGE (0 to 100) ITEMUSETICKS (all usable items increase this value once per tick) ITEMUSEPCT (previous value as percent of total usage time)
Fix display of minecarts in VEHICLE global, fix SEED in single player
Fix bug with using i (item) type hint in user-defined param lists
Add bindable key for REPL in the main bindings, allows direct access to console
Added dot as alias for RUN command in REPL, eg. use .foo to run foo.txt
Added autocompletion for RUN command
Added REPL commands KILL and SHUTDOWN
Added support for exporting and importing GUI xml, allows GUIs to be backed up, shared and duplicated
The TOAST command allows all available toast types to be displayed, but the syntax varies based on the type of toast to display:
TOAST("advancement","wool:9","Text to display")
Displays an Advancement Toast ("Advancement made!") with green wool block as the icon, only the first text element is displayed. Multiple toasts can be displayed and automatically stack and queue.
TOAST("challenge","wool:9","Text to display")
Displays a Challenge Toast ("Challenge complete!") with green wool block as the icon, only the first text element is displayed. Multiple toasts can be displayed and automatically stack and queue.
TOAST("goal","wool:9","Text to display")
Displays a Goal Toast ("Goal reached!") with green wool block as the icon, only the first text element is displayed. Multiple toasts can be displayed and automatically stack and queue.
TOAST("recipe","wool:9")
Displays a Recipe Toast ("New Recipes Unlocked!") with green wool block, no text can be displayed. Additional recipe toasts stack as rollover pages in the toast (the toast will scroll through all recipes added in sequence, then hide itself).
TOAST("tutorial","keys","First text line","Second text line",100)
Displays a Tutorial Toast with the specified icon for 100 ticks, the tutorial progress bar starts at 100% and counts down to zero. Available icon types are "keys", "mouse", "tree", "recipe_book" and "planks". If ticks is omitted it defaults to 100, a minimum of 5 is allowed and maximum of 600. Both lines of text are displayed simultaneously.
TOAST("hint","","First text line","Second text line")
Displays a System Hint Toast with the specified text lines. System toasts are limited to a single instance of each type, so calling TOAST("hint", ...) again simply updates the existing toast with new text.
TOAST("narrator","","First text line","Second text line")
Displays a System Narrator Toast with the specified text lines. System toasts are limited to a single instance of each type, so calling TOAST("narrator", ...) again simply updates the existing toast with new text. It is possible to have a "hint" toast and a "narrator" toast active at the same time, but only ever one of each.
TOAST("clear")
Removes all user-defined tutorial toasts, since tutorial toasts can be displayed for up to 30 seconds, this allows them to be prematurely cleared if necessary.
TOAST("clear","all")
Removes all active toasts, including vanilla ones.
OnSendChatMessage or something like that is what you need to modify chat packets I believe. onchat and chat filter only filter what has already been sent, just that one acts before the message shows and the other acts after the message shows.
Some final versions 0.15.0 for 1.12 and 0.15.1 for 1.12.1 are now available. I haven't updated the OP yet because ...
Quote from Mumfrey>>
java.lang.ArrayIndexOutOfBoundsException: 298
at net.eq2online.macros.input.InputHandler.handleKey(InputHandler.java:1137) ~[InputHandler.class:0.15.0]
at net.eq2online.macros.input.InputHandler.handleKey(InputHandler.java:1069) ~[InputHandler.class:0.15.0]
at net.eq2online.macros.input.InputHandler.onTick(InputHandler.java:1026) ~[InputHandler.class:0.15.0]
at net.eq2online.macros.core.MacroModCore.update(MacroModCore.java:346) ~[MacroModCore.class:0.15.0]
at net.eq2online.macros.core.MacroModCore.onTickInGame(MacroModCore.java:269) ~[MacroModCore.class:0.15.0]
at net.eq2online.macros.core.MacroModCore.onTick(MacroModCore.java:245) ~[MacroModCore.class:0.15.0]
at net.eq2online.macros.LiteModMacros.onTick(LiteModMacros.java:120) ~[LiteModMacros.class:0.15.0]
at com.mumfrey.liteloader.core.event.HandlerList$Tickable9.onTick(HandlerList$Tickable9.java:100) ~[?:?]
at com.mumfrey.liteloader.client.LiteLoaderEventBrokerClient.onTick(LiteLoaderEventBrokerClient.java:433) ~[LiteLoaderEventBrokerClient.class:1.12-SNAPSHOT+jnks-b8.git-5c199cbffd6d1aba2df85819d5255032a61d41fa]
at net.minecraft.client.Minecraft.handler$onTick$zzl000(Minecraft.java:3408) ~[bhz.class:?]
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1117) ~[bhz.class:?]
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:397) [bhz.class:?]
at net.minecraft.client.main.Main.main(SourceFile:123) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_141]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_141]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_141]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_141]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
Both 1.12 and 1.12.1 has the same issue. With forge 14.22.0.2462 and 14.21.1.2387. No issue found in the beta version for 1.12.
Just replace &d with whatever color codes you want. This checks for any message you type that doesn't start with a "/" and therefore isn't a command. Then it takes that message and appends the color code to it and then echoes it in chat. Last it gets rid of the original message.
Very often and with the majority of Mods, the latest Forge update is problematic!
Try the recommended or at the least step down one or two Forge offerings.
@flcmc thats basically what I did ways more difficult but easier to exclude more chars
however you don't need the MATCH, just use %CHAT% instead of %&ms%
I would much rather use this than erase the color codes in chat when typing commands (laziness at its finest). But yeah you could do without the MATCH.
Oh and #configCounter should be a global var, change it to @#configCounter, so that it can be accessed from both + and -. And you should probably reset the @#configCounter to the number of your default configuration on the onJoinGame event.
Oh and #configCounter should be a global var, change it to @#configCounter, so that it can be accessed from both + and -. And you should probably reset the @#configCounter to the number of your default configuration on the onJoinGame event.
Thank you so much! I totally missed that section in the docs
Very often and with the majority of Mods, the latest Forge update is problematic!
Try the recommended or at the least step down one or two Forge offerings.
The problem is, even with the old version of forge (in this case 14.21.1.2387 is the recommended build) in 1.12, minecraft still crash without warning. I used to have the beta1 version of Macro (0.15.0_beta1) and it works great with the same version of forge. I believe that it has some thing to do with the release update itself.
When typing HELP KILL in the REPL Console, it gives the wrong output. It says "repl.console.command.kill.usage" followed by "repl.console.command.kill.help".
Oh and #configCounter should be a global var, change it to @#configCounter, so that it can be accessed from both + and -. And you should probably reset the @#configCounter to the number of your default configuration on the onJoinGame event.
Hmmm, actually I've tried to get it working for a while and no luck. The counter works no problem now, however the CONFIG(%@#confcounter%)
doesn't seem to be working.
That's the DEC, the INC is similar. Any idea as to what I'm doing wrong?
As mentioned it does inc/dec just fine, the CONFIG part is the only that doesn't work, I even tried just using CONFIG(@#confcounter) I've also quadruple checked that the config names are 0, 1, 2, & 3
The problem is, even with the old version of forge (in this case 14.21.1.2387 is the recommended build) in 1.12, minecraft still crash without warning. I used to have the beta1 version of Macro (0.15.0_beta1) and it works great with the same version of forge. I believe that it has some thing to do with the release update itself.
Odd my 1.12 with Forge 2387 works just fine (both dev and update), and my 1.12.1 works with Forge 2444, in fact I'be been playing it most of the day.
Are you using other Mods too?
Maybe remove them and add back in one at a time until you find the problem.
That's the DEC, the INC is similar. Any idea as to what I'm doing wrong?
As mentioned it does inc/dec just fine, the CONFIG part is the only that doesn't work, I even tried just using CONFIG(@#confcounter) I've also quadruple checked that the config names are 0, 1, 2, & 3
It appears as though variables aren't expanded when using CONFIG().
Some final versions 0.15.0 for 1.12 and 0.15.1 for 1.12.1 are now available. I haven't updated the OP yet because this forum makes it difficult and I will wait for a few hours to make sure there aren't any truly egregious failures before I go through the pain and suffering of doing that.
As ever, make sure you're running an up-to-date liteloader snapshot, early snapshots may not support this version! Report any bugs below.
Download links
Changes in this version
The TOAST command allows all available toast types to be displayed, but the syntax varies based on the type of toast to display:
None of these 2 ideas working, I think the OnSendChatMessage would work but can't figure out the way I have to do it. Help please.
@Treuce
@Mumfrey
Both 1.12 and 1.12.1 has the same issue. With forge 14.22.0.2462 and 14.21.1.2387. No issue found in the beta version for 1.12.
@Treuce
Or you can put this script on OnSendChatMessage:
Just replace &d with whatever color codes you want. This checks for any message you type that doesn't start with a "/" and therefore isn't a command. Then it takes that message and appends the color code to it and then echoes it in chat. Last it gets rid of the original message.
@flcmc thats basically what I did ways more difficult but easier to exclude more chars
however you don't need the MATCH, just use %CHAT% instead of %&ms%
Very often and with the majority of Mods, the latest Forge update is problematic!
Try the recommended or at the least step down one or two Forge offerings.
Links to pdf format, downloadable, command lists for (these often clarify/expand descriptions, and where possible link to the author's posting):
MoreCommands: http://www.mediafire.com/view/qjc9c6klcnp660e/CmdLstMoreCommands.pdf
WorldEdit: http://www.mediafire.com/view/bi7r00xd9rgxrrt/WE_Commands.pdf
Can't see any link in download link section for 0.15/0.15.1 ?
Hello I love this mod!
I was hoping that you'd be able to implement a new small feature.
I'm trying to use the '-' & '+' symbols in order to switch between configs, I've named them 0,1,2,3 etc.
My idea was do do something along the lines of this:
'-':
$${IF(#configCounter > 0);DEC(#configCounter);CONFIG(#configCounter);ENDIF}$$
'+':
$${IF(#configCounter < 3);INC(#configCounter);CONFIG(#configCounter);ENDIF}$$
but it seems like CONFIG only takes in strings (or maybe I missed something silly).
If it does only happen to take a string as an arg then it would be great if you could implement type conversion!
If not, thanks anyways for the great mod
I would much rather use this than erase the color codes in chat when typing commands (laziness at its finest). But yeah you could do without the MATCH.
Replace CONFIG(#configCounter) with CONFIG(%#configCounter%).
Oh and #configCounter should be a global var, change it to @#configCounter, so that it can be accessed from both + and -. And you should probably reset the @#configCounter to the number of your default configuration on the onJoinGame event.
Thank you so much! I totally missed that section in the docs
can anyone of u post 0.15.1 link for me can seem to see any link to download...
The problem is, even with the old version of forge (in this case 14.21.1.2387 is the recommended build) in 1.12, minecraft still crash without warning. I used to have the beta1 version of Macro (0.15.0_beta1) and it works great with the same version of forge. I believe that it has some thing to do with the release update itself.
When typing HELP KILL in the REPL Console, it gives the wrong output. It says "repl.console.command.kill.usage" followed by "repl.console.command.kill.help".
Hmmm, actually I've tried to get it working for a while and no luck. The counter works no problem now, however the CONFIG(%@#confcounter%)
doesn't seem to be working.
$${
IF(@#confcounter > 0);
DEC(@#confcounter);
CONFIG(%@#confcounter%);
ENDIF;
}$$
|
$${
ECHO(%@#confcounter%);
}$$
That's the DEC, the INC is similar. Any idea as to what I'm doing wrong?
As mentioned it does inc/dec just fine, the CONFIG part is the only that doesn't work, I even tried just using CONFIG(@#confcounter) I've also quadruple checked that the config names are 0, 1, 2, & 3
Odd my 1.12 with Forge 2387 works just fine (both dev and update), and my 1.12.1 works with Forge 2444, in fact I'be been playing it most of the day.
Are you using other Mods too?
Maybe remove them and add back in one at a time until you find the problem.
Links to pdf format, downloadable, command lists for (these often clarify/expand descriptions, and where possible link to the author's posting):
MoreCommands: http://www.mediafire.com/view/qjc9c6klcnp660e/CmdLstMoreCommands.pdf
WorldEdit: http://www.mediafire.com/view/bi7r00xd9rgxrrt/WE_Commands.pdf
It appears as though variables aren't expanded when using CONFIG().
Apparently the delete function in the gui editor no longer works in the latest version.