CommandRunnerMod gives the executefile command - Runs execute commands and rotates commands in files. 1.9.4 runs in forge 1.9 to 1.10.2 Use the latest versions. BlockDumpMod dumps an area into either /setblock commands or /execute @p ~ ~ ~ setblock commands into a .caleb file. blockdump is a companion command to executefile.
Recommend downloading barad.zip for samples. https://www.youtube.com/watch?v=o66KGUibA4E
The commands must be in lower case. New 1.9.4 August 7th fixed now repeats and cascade is fixed. Still beta.
This is my first mod for minecraft. It's written for 1.8, 1.9-1.9.4, 1.10-1.10.2 and called Caleb's CommandRunnermod. It uses the new 1.8 APIs and 1.9.4, but supports 1.10 blocks. It runs files with a set of minecraft or mod commands for simple world generation support as a command "executefile. Any command that can be put in a server or command and run with execute. In the files the command executefile can call executefile files. With new 1.8+ commands that allow placement of items in chests, and blockdata, etc, the commands become useful. (Hint use 1.9+ repeating command blocks for looping, or repeat sections, testfor, etc. ) A forge config file allows you to set the files directory. Syntax is executefile File filename.
A later version is planned to run from a URL. Files in the config defined directory can be named ".caleb" to show up in an autocomplete list. Where do I place jars for download? Just here and the commandrunnermod.com. I don't adfly or run ads. Free is free. Right now it's on my http://www.commandrunnermod.com for the download files and notes and on Curse. No ads. Using /execute in the files is optional, but recommended.
You can't yet just write /fill ... it's /execute then the command fill. The # sign allows you to comment in the .caleb file. The concatenation is not yet supported.
.
Rotation is now supported to a limited extent (Some commands aren't). Try /executefile File arrow.caleb byline rotatewest or rotateplayerfacing. This now includes vanilla minecraft block rotation (e.g. stairs, redstone, all) WHEN DATATAGS ARE SUPPLIED (e.g. minecraft:chest 2). Cascading rotation is supported for vanilla blocks. Try City2.caleb with build2.caleb.
try /executefile File City2.Caleb byline rotateSouth cascade.
Filling 100,000 blocks in 20 lines will take time. Be warned.
There are some samples below or make your own with blockdump.
/blockdump exfile ~-2 ~-2 ~-2 ~2 ~2 ~2 saveto.caleb
Any non-fraudulent use is permitted. Only commandrunnermod.com or curse is a recommended download site.
arrow.caleb is (stairs full side is north facing).
New version 8/7/2016
# hello
/execute @p ~ ~ ~ fill ~ ~1 ~2 ~ ~1 ~10 minecraft:cobblestone
/execute @p ~ ~ ~ fill ~-1 ~1 ~9 ~-1 ~1 ~9 minecraft:cobblestone
/execute @p ~ ~ ~ fill ~1 ~1 ~9 ~1 ~1 ~9 minecraft:cobblestone
/execute @p ~ ~ ~ fill ~0 ~2 ~10 ~0 ~2 ~10 minecraft:stone_stairs 3
may support 1.11.x?
I'll assume most readers understand how to place a block or blocks in a world with a command. However, If you send chat /setblock 123 123 123 minecraft:stained_glass 2 replace ; a magenta stained glass block will be placed at 123 123 123. If you use relative coordinates, it's located by an offset of a selector.
/setblock 123 123 123 minecraft:stained_glass 2 replace is a command that a redstoner might use in a command block to create a structure. Even more useful in building is the ability to make the coordinates relative when taking a placed block and reverse engineering it into a command. Relative means related to an entity (e.g. @p ~ ~2 ~ is 2 blocks above "relative" the nearest player).
When working on a map or redstone, it's convenient to be able to get the string for a command as a setblock command. It's really useful when you are building a redstone machine with large numbers of command blocks. The tag data in block is hard to extract and manipulate in a mass of hundreds.
Blockdump reverse engineers a placed block into a setblock command. If there was a command_block to say hello at -370 67 956, you should get...
/setblock -370 67 956 minecraft:command_block 5 replace
{conditionMet:1,auto:0,CustomName:"@",powered:1,Command:"say
hello",x:-370,y:67,z:956,id:"Control",SuccessCount:1,TrackOutput:1}
The Idea : that a new command "blockdump" dumps (reverse engineers) an area of the map to a command setblock format, including the NBT tags to a file. This command simplifies the ability of the user to write command blocks so that the mapper can see the commands and blocks they've placed as text.
I originally thought this was an extension of the executefile command (a prior suggestion), but really it's a separate idea. It's a type of clone command to a text file that writes the block information as a report, setblock file or execute command file.
The command would work as follows.
/blockdump <type of output> <coords> <file>
The output types are ExFile, File and Report.
/blockdump ExFile|File|Report x1 y1 z1 x2 y2 z2 saveto.txt simply writes out the blocks of the area as setblock commands to a file.
Different options would allow the user to select relative locations to the player or entity. The command would also support absolute locations and the ability to preface with either location type with execute. Such a command would make mapping and redstoning much easier as the user now has reverse engineering of placed blocks into commands.
On options : "File" writes placed blocks into setblocks directly as commands. "ExFile" writes placed blocks as setblocks with a relative offset and prefixed with the "execute command" relative to a player entity. "Report" writes a formatted report about blocks to a file for easy reading. I have implemented a noair option in the mod that skips blocks with minecraft:air.
Output for "File" might be ....
The above would be in a file called "saveto.txt".
This would also include command blocks and structure blocks.
And in execute format for command block command
Also from the original (point and click from Lepakko's ) concept reports can be generated.
Those that use forge can try the BlockDumpMod for 1.9 to 1.10.2 to test the suggestion http://minecraft.curseforge.com/projects/commandrunnermod/files . I'm thinking also about EntityDump as a suggestion.
You can place the command setblocks with "executefile", a prior suggestion. BTW Note that in "executefile" large dumps run very slowly for now.
Performance is vastly improved by setting logging of admin chat and commandfeedback false
Testing with the following.
section.caleb
and floor.caleb
Sample
This is a command generator for a trefoil know. Many thanks to MCE30.
Big fix. The autocomplete wasn't working .... use executefile in lowercase. Get the July 10th 2016 version.