As a redstone mechanic I feel the need to be able to execute more commands in a single command block, and I'm sure there are many others that would agree with me. Now I know there is a way to do this by using command blocks on minecarts with the activator rail. That way is too complicated and can scare off people who are just starting redstone, or people who are more advanced. It is really time consuming to type these commands for example:
Now me as a redstone mechanic, the command even scares me. I make maps and it would be a great edition to just have a multi-line command block that executes them in the listed order. If you just want one command, then just type in one command. Also if you are thinking how could this help other players other than redstone mechanics, it would help other players by letting redstone mechanics get maps out faster, make the maps less resource intensive, etc. It saves time, it helps beginning redstone mechanics, and overall it would save a lot more space for other things, because if you've seen the commands behind, "The Code" it takes a lot of room up. This is just a suggestion but it would help everyone, and there aren't any downsides to this suggestion that I can think of.
For example what a command line inside a command block would look like:
/say Hi
/tp @p ~ ~ ~
/Summon @p PrimedTnt {(Fuse:1)}
Note: Syntax may be a little off in some of the commands.
Second Note: This is my personal opinion. Please leave comments telling what you think, and if I missed anything! Also please don't vote until you've read the whole post! (Don't be a troll, leave actual comments please.)
The Meaning of Life, the Universe, and Everything.
Join Date:
12/6/2014
Posts:
54
Member Details
It's a good idea all in all, but you also have to remember that Mojang is practically making their own in-game API with the sheer concept of command blocks. Especially if we start going to multi-line stuff. Though it would be nice to see command blocks with multiple lines, localized variables, built-in if statements, et cetera, it kind of starts to defeat the purpose of redstone entirely after a while. I can see this being a good addition, but it opens up a bad precedent for the usefulness of redstone.
Not sure if I support, but if I were held at gunpoint over it, I'd support this.
I understand what you're saying. But I don't think personally redstone will fall out of its place and will be in use for as long as its here. The multi-line command block would just make things a lot easier and less time-consuming. Thank you for your reply.
Redstone would still serve as an item, and would still be used. Its just a multi-line command block that can perform several commands at once. Like I said in the post, this can be done already. You'd still be using timers, rs nor latches, etc. This is why I'm trying to get a multi-line to make it less complicated. Going from:
Support, I like the idea of multiline, but command blocks would need to have a mode for "legacy" command blocks. Currently all the "lines" "/r" in the command block are concatenated, and the legacy command block code uses this so you'd need to have a way to change the mode. Futher you have to consider the JSON in the commandblocks.
There are deep implications to the design of minecraft in a simplified multiline commandblock.
I am going into things that coders think of... so bear with me.
1) There are legacy worlds with concatenated (one command) command blocks. These must be addressed.
2) You have huge changes in the automation of the world. You have desirable features which as a consequence are ...
Componentization of sets of command.
Rotation, transformation and scaling of the command sets becomes highly desirable.
Repetition of the command and increment by some value relative to any X,Y.Z.
I used the following in coding the commandrunnermod for Forge 1.8, which executes multiline commands from files in a library. It's useful to fleshing out the suggestion.
/ExecuteFile file arrow.caleb concatenate for one command in a file with many lines and byline for each line is a command. The current version only supports byline as a default. I considered a third hybrid approach of an end of line ampersand "&" for line continuation but that's so outside the normal coding style. It runs execute on each line, any command including execute file. I bolded the concept. I took this approach because I can't change the parser of a command block.
There are significant implications in a useful multiline command block. It allows componentization and transforms, rotation and scaling on a set of lines becomes desirable, as well as a desire for naming scheme/parameterization.
The real advantage of a multiline capability is in building and sharing very large complex builds/automation into existing worlds which can be componentized. I will probably also implement URL as the source.
I am currently working cascading rotation first (rotates the fills in the command file to east, west, south, north, player facing). I think it's essential the executed file or multiline has rotation as an option so I won't release any updates soon. If I have a set of commands with fills for a making a bridge, I want it to rotate all the fill commands before filling to my player facing or to a specific direction. (/ExecuteFile File Bridge.caleb byline playerfacing). That also means I have datavalues of blocks have to rotate (stairs, wood).
Overall, I agree. The capability is too useful, and the multiline execution of command feature should be in vanilla minecraft.
But it's not trivial in execution (and it has significant implication), so I don't expect it any time soon.
Largest file loaded is 90K commands from a command_block.
Lasted Updated Aug 7 2016 ... 1.9 to 1.10.2 Also the BlockDumpMod gives blockdump command which writes blocks to a text file as execute setblock commands or gives a report.
Support, I like the idea of multiline, but command blocks would need to have a mode for "legacy" command blocks. Currently all the "lines" "/r" in the command block are concatenated, and the legacy command block code uses this so you'd need to have a way to change the mode. Futher you have to consider the JSON in the commandblocks.
...
What about having to write a ; at the end of each line? That is used a lot in programming languages to have a difference between multiple lines of code, and one 'line' of code spread across multiple lines.
Also, if you're going to renew command blocks, why not add other usefull stuff, like variables? I know we already have the scoreboard, but it could be usefull if you could for example assign the output of a command to an objective, and later use that objective for other commands, with simple operations between them.
Example: (for the syntax, I'll use entity.objective to get a certain scoreboard value)(I assume "/scoreboard objectives add playercount dummy" has already been executed in this world)
Line 1 would then create the playercount score for the (probably nonexistant) player 'stats', then set it to the number of online players, and line 2 would then tell all players the value of the objective 'playercount' for "player" 'stats'.
It might sound complex to those not familiar with programming, but this can be very usefull sometimes.
I do support the idea of a limited capability in a mod, but core functions and changes like variables, looping should be implemented in pure vanilla minecraft. I considered the ampersand or semicolon, but both add something significant to the language. I thought about a semicolon, but it's too close to real javascript/JSON as a statement terminator. Because I can't act for mojang to create a new type of command block.
I broke one rule of the language, I added a leading #space is parsed as a comment; otherwise everything is vanilla except new command ExecuteFile in the 12K jar.
About semicolons, your point is valid as this should be legal in one line in a parser where semicolon was allowed.
;/difficulty peaceful;/deop botjoe;
Mojang should do that if anyone does.
Speculatively, I could see the possibility that using the rhino/nashorn java to javascript functionality could be added by mojang to support math and variables.. E.g. something like /javascript:{"var abc = Math.sin(x1);"};
The largest issue is that command blocks would be "modal" for legacy blocks so I added a command to a mod to explore the concept.
Again I support the overall concept of the multiline command block, it's too useful to write.
# comments are pound then space
# clear space around me - We are going z direction
# build a bridge
@p ~ ~ ~ fill ~2 ~-1 ~-10 ~-2 ~10 ~50 minecraft:air
@p ~ ~ ~ fill ~2 ~-1 ~50 ~-2 ~10 ~120 minecraft:air
# fill site with a road of cobblestone
@p ~ ~ ~ fill ~2 ~1 ~-10 ~-2 ~1 ~120 minecraft:cobblestone
@p ~ ~ ~ fill ~2 ~2 ~-10 ~2 ~2 ~120 minecraft:fence
@p ~ ~ ~ fill ~-2 ~2 ~-10 ~-2 ~2 ~120 minecraft:fence
@p ~ ~ ~ fill ~2 ~3 ~-10 ~2 ~3 ~-10 minecraft:cobblestone
@p ~ ~ ~ fill ~2 ~4 ~-10 ~2 ~4 ~-10 minecraft:torch
@p ~ ~ ~ fill ~2 ~3 ~0 ~2 ~3 ~0 minecraft:cobblestone
@p ~ ~ ~ fill ~2 ~4 ~0 ~2 ~4 ~0 minecraft:torch
@p ~ ~ ~ fill ~2 ~3 ~10 ~2 ~3 ~10 minecraft:cobblestone
@p ~ ~ ~ fill ~2 ~4 ~10 ~2 ~4 ~10 minecraft:torch
@p ~ ~ ~ fill ~2 ~3 ~20 ~2 ~3 ~20 minecraft:cobblestone
@p ~ ~ ~ fill ~2 ~4 ~20 ~2 ~4 ~20 minecraft:torch
@p ~ ~ ~ tp @p ~0 ~1 ~110
I do find the "scoreboard" concept for variables an probably temporary oddity, also.
Largest file loaded is 90K commands from a command_block.
Lasted Updated Aug 7 2016 ... 1.9 to 1.10.2 Also the BlockDumpMod gives blockdump command which writes blocks to a text file as execute setblock commands or gives a report.
While I am still working on the concept, I realize that command language executefile with rotations should also rotate /tp and other command.
/ExecuteFile File Bridge.caleb byline rotatesouth
Further, I think that the multi-line command language should have a "catalog" which I implemented in the mod as a suggestion of behavior (configurable). The directory is [tab] autocomplete for files.
Here is a picture of the rotation in action for bridge.caleb.
Largest file loaded is 90K commands from a command_block.
Lasted Updated Aug 7 2016 ... 1.9 to 1.10.2 Also the BlockDumpMod gives blockdump command which writes blocks to a text file as execute setblock commands or gives a report.
This is a great idea i would love it there could be a button to add another command it would be nice! There is a way to do more than 1 command with 1 push of a button right? all you would have to do is put down more command blocks
This is a great idea i would love it there could be a button to add another command it would be nice! There is a way to do more than 1 command with 1 push of a button right? all you would have to do is put down more command blocks
Not sure on what you mean by button adding a command. The concept of the thread is multi-line command blocks. The original suggestion was to allow each line or statement to be a new command in the block.
To your question, Redstone can be wired to more than one command block if that's what you mean. A button can activate multiple blocks with redstone.
Can you clarify? Where would you place the button?
Largest file loaded is 90K commands from a command_block.
Lasted Updated Aug 7 2016 ... 1.9 to 1.10.2 Also the BlockDumpMod gives blockdump command which writes blocks to a text file as execute setblock commands or gives a report.
Thanks cryo. Sorry I can't change the command block in minescraft. So I added a command called executefile
All I updated the CommandRunnermod to 1.1. It's still very beta for forge 1.1. I am
Rotation is supported for fills, tps and such, including stairs and redstone!!!, but I do not yet support legacy concatenation (one command in a block) mode. You can invoke /executefile inside a command block!!!
You can invoke /ExecuteFile File arrow.caleb byline rotateplayerfacing. You write *.caleb files and put them in a directory. Any command that is supported in minecraft or mods should work but I don't yet support rotation for non-vanilla blocks.
Largest file loaded is 90K commands from a command_block.
Lasted Updated Aug 7 2016 ... 1.9 to 1.10.2 Also the BlockDumpMod gives blockdump command which writes blocks to a text file as execute setblock commands or gives a report.
I can see as an avid command block user (love remote activated redstone devices) but also i can see the need to put some limits on it as you don't want someone being able to remake the whole world in one command block i would either allow for slightly more complex command lines
Example instead of two command blocks with their own /setblock command allow for one with /setblock X1 Y1 Z1 + X2 Y2 Z2 minecraft:genericblock 0 replace (i use setblock often for remote door opening)
or allow for up to two complimentary commands to attach to each block , as in two of the same command as above with set block with maybe a numerical variable to set a delay between execution
but then again i am a novice compared to many others
Rollback Post to RevisionRollBack
I make lots of posts but none are so dear to me as these:
>>> I can see as an avid command block user (love remote activated redstone devices) but also i can see the need to put some limits on it as you don't want someone being able to remake the whole world in one command block i would either allow for slightly more complex command lines.
I read limits as a permission request. Please make separate sentences. Limitations might be that are either as a setting for number of lines in the config files; or as having a number of blocks limit. I'm thinking about it but probably not something I'd prefer. I would want better management of complexity not more complexity.
---
>>>> allow for slightly more complex command lines.
Mojang would have to do that, they also need to fix the fill command for datatags on underscore blocks. The issues list says not in 1.8 for significant improvements/fixes. I could see improvements in the execute command in the future.
---- "setblock with 2 sets of coordinates"
I see that thought as proposing some form as /setblocks command x y z that sets values in a manner from x2 y2 z2... I think selectors do this better.
---- or allow for up to two complimentary commands to attach to each block , as in two of the same command as above with set block with maybe a numerical variable to set a delay between execution.
This is tied with slightly more complex commands.
I would propose the following. I could see that being implemented as a command block with 2+ scripts where each script has a trigger as well as a redstone in some type of script slots. The ui allows the user to add an event to each trigger. I think you are asking that for a limitation where the block has something analogous to configurable script slots.
I could also see this as a setting for a load on demand from a file or url in the commandblock. I thinks that's better implemented in the existing commands rather than the block. You could make this "touch" aware for change management.
I think a tick count in the block makes sense to delay, but that also could be timed within the existing execute command as a new feature {time:delayticks=0} or as a time setting in the execute command which I believe is suggested elsewhere {time:gametime<1000} or {time:clock>="YYYY-MM-DD 24H:MM:SS","JavaTimeZone"}. Such event hooks could be limited in number.
Note there is another mod with a similar name called commandrunner that schedules, but I didn't find that other commandrunner on my first searches.
I think that based on extrapolating from this suggestion also that some commands like /execute or /ExecuteFile should be redstone signal sensitive in a command block {threshold=0-4}. If you are delaying, you are also probably thresholding for the "script slots". VERY SPECULATIVE.
The discussion on delay also tells me that I should probably add an executefile mod onmodserver_start.caleb in the scripts that can runs commands on server startup after the mod loads.
All this is a speculative approach, but it's triggered a lot. It does convince me that vanilla minecraft commands need multi-line support.
BTW: Have you tried my forge mod which was written to help develop the concept with files? Overall, I don't think an improved commandblock helps as much as smarter commands that are componentized.
Largest file loaded is 90K commands from a command_block.
Lasted Updated Aug 7 2016 ... 1.9 to 1.10.2 Also the BlockDumpMod gives blockdump command which writes blocks to a text file as execute setblock commands or gives a report.
summon MinecartCommandBlock ~ ~1 ~ {Riding:{id:MinecartCommandBlock,Riding:{id:MinecartCommandBlock,Riding:{id:MinecartCommandBlock,Riding:{id:FallingSand,TileID:157,Time:1},Command:/say @p hello},Command:/tp @p ~1 ~1 ~1},Command:/summon @p PrimedTnt {(Fuse: 1)}},Command:setblock ~ ~ ~ lava 7}
Now me as a redstone mechanic, the command even scares me. I make maps and it would be a great edition to just have a multi-line command block that executes them in the listed order. If you just want one command, then just type in one command. Also if you are thinking how could this help other players other than redstone mechanics, it would help other players by letting redstone mechanics get maps out faster, make the maps less resource intensive, etc. It saves time, it helps beginning redstone mechanics, and overall it would save a lot more space for other things, because if you've seen the commands behind, "The Code" it takes a lot of room up. This is just a suggestion but it would help everyone, and there aren't any downsides to this suggestion that I can think of.
For example what a command line inside a command block would look like:
Second Note: This is my personal opinion. Please leave comments telling what you think, and if I missed anything! Also please don't vote until you've read the whole post! (Don't be a troll, leave actual comments please.)
Not sure if I support, but if I were held at gunpoint over it, I'd support this.
summon MinecartCommandBlock ~ ~1 ~ {Riding:{id:MinecartCommandBlock,Riding:{id:MinecartCommandBlock,Riding:{id:MinecartCommandBlock,Riding:{id:FallingSand,TileID:157,Time:1},Command:/say @p hello},Command:/tp @p ~1 ~1 ~1},Command:/summon @p PrimedTnt {(Fuse: 1)}},Command:setblock ~ ~ ~ lava 7}
to:
1. /say Hi
2. /tp @p ~ ~ ~
3. /Summon @p PrimedTnt {(Fuse:1)}
Note: These are the same commands being performed in both lines of text.
1st Commandblock
1. clone -12 2 45 -9 2 42 20 2 49
2. tp @a wherever the coordinates are at xD
2nd Commandblock
1. title @a title {text:"Merry Christmas";color="green"}
2. Summon @a PrimedTnt {(Fuse:100)}
3. title @a title {text:"And a Happy New Year";color="red"}
This will help out and make minigames exciting and will cause less lag when using a commandblock.
Support
There are deep implications to the design of minecraft in a simplified multiline commandblock.
I am going into things that coders think of... so bear with me.
1) There are legacy worlds with concatenated (one command) command blocks. These must be addressed.
2) You have huge changes in the automation of the world. You have desirable features which as a consequence are ...
/ExecuteFile file arrow.caleb concatenate for one command in a file with many lines and byline for each line is a command. The current version only supports byline as a default. I considered a third hybrid approach of an end of line ampersand "&" for line continuation but that's so outside the normal coding style. It runs execute on each line, any command including execute file. I bolded the concept. I took this approach because I can't change the parser of a command block.
There are significant implications in a useful multiline command block. It allows componentization and transforms, rotation and scaling on a set of lines becomes desirable, as well as a desire for naming scheme/parameterization.
The real advantage of a multiline capability is in building and sharing very large complex builds/automation into existing worlds which can be componentized. I will probably also implement URL as the source.
I am currently working cascading rotation first (rotates the fills in the command file to east, west, south, north, player facing). I think it's essential the executed file or multiline has rotation as an option so I won't release any updates soon. If I have a set of commands with fills for a making a bridge, I want it to rotate all the fill commands before filling to my player facing or to a specific direction. (/ExecuteFile File Bridge.caleb byline playerfacing). That also means I have datavalues of blocks have to rotate (stairs, wood).
Overall, I agree. The capability is too useful, and the multiline execution of command feature should be in vanilla minecraft.
But it's not trivial in execution (and it has significant implication), so I don't expect it any time soon.
Writes the CommandRunnerMod which gives the executefile command to read commands from a file. http://mods.curse.com/mc-mods/minecraft/246088-commandrunnermod
Largest file loaded is 90K commands from a command_block.
Lasted Updated Aug 7 2016 ... 1.9 to 1.10.2 Also the BlockDumpMod gives blockdump command which writes blocks to a text file as execute setblock commands or gives a report.
What about having to write a ; at the end of each line? That is used a lot in programming languages to have a difference between multiple lines of code, and one 'line' of code spread across multiple lines.
Also, if you're going to renew command blocks, why not add other usefull stuff, like variables? I know we already have the scoreboard, but it could be usefull if you could for example assign the output of a command to an objective, and later use that objective for other commands, with simple operations between them.
Example: (for the syntax, I'll use entity.objective to get a certain scoreboard value)(I assume "/scoreboard objectives add playercount dummy" has already been executed in this world)
Line 1 would then create the playercount score for the (probably nonexistant) player 'stats', then set it to the number of online players, and line 2 would then tell all players the value of the objective 'playercount' for "player" 'stats'.
It might sound complex to those not familiar with programming, but this can be very usefull sometimes.
I broke one rule of the language, I added a leading #space is parsed as a comment; otherwise everything is vanilla except new command ExecuteFile in the 12K jar.
About semicolons, your point is valid as this should be legal in one line in a parser where semicolon was allowed. Mojang should do that if anyone does.
Speculatively, I could see the possibility that using the rhino/nashorn java to javascript functionality could be added by mojang to support math and variables.. E.g. something like /javascript:{"var abc = Math.sin(x1);"};
The largest issue is that command blocks would be "modal" for legacy blocks so I added a command to a mod to explore the concept.
Again I support the overall concept of the multiline command block, it's too useful to write.
I do find the "scoreboard" concept for variables an probably temporary oddity, also.
Writes the CommandRunnerMod which gives the executefile command to read commands from a file. http://mods.curse.com/mc-mods/minecraft/246088-commandrunnermod
Largest file loaded is 90K commands from a command_block.
Lasted Updated Aug 7 2016 ... 1.9 to 1.10.2 Also the BlockDumpMod gives blockdump command which writes blocks to a text file as execute setblock commands or gives a report.
/ExecuteFile File Bridge.caleb byline rotatesouth
Further, I think that the multi-line command language should have a "catalog" which I implemented in the mod as a suggestion of behavior (configurable). The directory is [tab] autocomplete for files.
Here is a picture of the rotation in action for bridge.caleb.
Writes the CommandRunnerMod which gives the executefile command to read commands from a file. http://mods.curse.com/mc-mods/minecraft/246088-commandrunnermod
Largest file loaded is 90K commands from a command_block.
Lasted Updated Aug 7 2016 ... 1.9 to 1.10.2 Also the BlockDumpMod gives blockdump command which writes blocks to a text file as execute setblock commands or gives a report.
Not sure on what you mean by button adding a command. The concept of the thread is multi-line command blocks. The original suggestion was to allow each line or statement to be a new command in the block.
To your question, Redstone can be wired to more than one command block if that's what you mean. A button can activate multiple blocks with redstone.
Can you clarify? Where would you place the button?
Writes the CommandRunnerMod which gives the executefile command to read commands from a file. http://mods.curse.com/mc-mods/minecraft/246088-commandrunnermod
Largest file loaded is 90K commands from a command_block.
Lasted Updated Aug 7 2016 ... 1.9 to 1.10.2 Also the BlockDumpMod gives blockdump command which writes blocks to a text file as execute setblock commands or gives a report.
All I updated the CommandRunnermod to 1.1. It's still very beta for forge 1.1. I am
Rotation is supported for fills, tps and such, including stairs and redstone!!!, but I do not yet support legacy concatenation (one command in a block) mode. You can invoke /executefile inside a command block!!!
You can invoke /ExecuteFile File arrow.caleb byline rotateplayerfacing. You write *.caleb files and put them in a directory. Any command that is supported in minecraft or mods should work but I don't yet support rotation for non-vanilla blocks.
Writes the CommandRunnerMod which gives the executefile command to read commands from a file. http://mods.curse.com/mc-mods/minecraft/246088-commandrunnermod
Largest file loaded is 90K commands from a command_block.
Lasted Updated Aug 7 2016 ... 1.9 to 1.10.2 Also the BlockDumpMod gives blockdump command which writes blocks to a text file as execute setblock commands or gives a report.
Example instead of two command blocks with their own /setblock command allow for one with /setblock X1 Y1 Z1 + X2 Y2 Z2 minecraft:genericblock 0 replace (i use setblock often for remote door opening)
or allow for up to two complimentary commands to attach to each block , as in two of the same command as above with set block with maybe a numerical variable to set a delay between execution
but then again i am a novice compared to many others
http://www.minecraftforum.net/forums/minecraft-discussion/suggestions/2334781-easy-magic-spell-casting-system -support magic in Minecraft!
http://www.minecraftforum.net/forums/servers/minecraft-realms/2335071-creative-shortcuts-for-ops-running-adv-mode-maps - Share your knowledge and your Ideas help people make Adventure maps feel as well as look good
I read limits as a permission request. Please make separate sentences. Limitations might be that are either as a setting for number of lines in the config files; or as having a number of blocks limit. I'm thinking about it but probably not something I'd prefer. I would want better management of complexity not more complexity.
---
>>>> allow for slightly more complex command lines.
Mojang would have to do that, they also need to fix the fill command for datatags on underscore blocks. The issues list says not in 1.8 for significant improvements/fixes. I could see improvements in the execute command in the future.
---- "setblock with 2 sets of coordinates"
I see that thought as proposing some form as /setblocks command x y z that sets values in a manner from x2 y2 z2... I think selectors do this better.
---- or allow for up to two complimentary commands to attach to each block , as in two of the same command as above with set block with maybe a numerical variable to set a delay between execution.
This is tied with slightly more complex commands.
I would propose the following. I could see that being implemented as a command block with 2+ scripts where each script has a trigger as well as a redstone in some type of script slots. The ui allows the user to add an event to each trigger. I think you are asking that for a limitation where the block has something analogous to configurable script slots.
I could also see this as a setting for a load on demand from a file or url in the commandblock. I thinks that's better implemented in the existing commands rather than the block. You could make this "touch" aware for change management.
I think a tick count in the block makes sense to delay, but that also could be timed within the existing execute command as a new feature {time:delayticks=0} or as a time setting in the execute command which I believe is suggested elsewhere {time:gametime<1000} or {time:clock>="YYYY-MM-DD 24H:MM:SS","JavaTimeZone"}. Such event hooks could be limited in number.
Note there is another mod with a similar name called commandrunner that schedules, but I didn't find that other commandrunner on my first searches.
I think that based on extrapolating from this suggestion also that some commands like /execute or /ExecuteFile should be redstone signal sensitive in a command block {threshold=0-4}. If you are delaying, you are also probably thresholding for the "script slots". VERY SPECULATIVE.
The discussion on delay also tells me that I should probably add an executefile mod onmodserver_start.caleb in the scripts that can runs commands on server startup after the mod loads.
All this is a speculative approach, but it's triggered a lot. It does convince me that vanilla minecraft commands need multi-line support.
-----------------------------------------------------------------------------------------
BTW: Have you tried my forge mod which was written to help develop the concept with files? Overall, I don't think an improved commandblock helps as much as smarter commands that are componentized.
Writes the CommandRunnerMod which gives the executefile command to read commands from a file. http://mods.curse.com/mc-mods/minecraft/246088-commandrunnermod
Largest file loaded is 90K commands from a command_block.
Lasted Updated Aug 7 2016 ... 1.9 to 1.10.2 Also the BlockDumpMod gives blockdump command which writes blocks to a text file as execute setblock commands or gives a report.