@@ -120,9 +120,9 @@ def perform(level, box, options):
120
120
unformatted_command += ","
121
121
first_element = False
122
122
if volume (cuboid [0 ][0 ], cuboid [0 ][1 ], cuboid [0 ][2 ], cuboid [1 ][0 ], cuboid [1 ][1 ], cuboid [1 ][2 ]) == 1 :
123
- command_part + = "{id:\" MinecartCommandBlock\" ,Command:\" setblock ~" + str (cuboid [0 ][0 ] + box .minx - execution_center [0 ]) + " ~" + str (cuboid [0 ][1 ] + box .miny - execution_center [1 ]) + " ~" + str (cuboid [0 ][2 ] + box .minz - execution_center [2 ]) + " minecraft:air\" }"
123
+ command_part = "{id:\" MinecartCommandBlock\" ,Command:\" setblock ~" + str (cuboid [0 ][0 ] + box .minx - execution_center [0 ]) + " ~" + str (cuboid [0 ][1 ] + box .miny - execution_center [1 ]) + " ~" + str (cuboid [0 ][2 ] + box .minz - execution_center [2 ]) + " minecraft:air\" }"
124
124
else :
125
- command_part + = "{id:\" MinecartCommandBlock\" ,Command:\" fill ~" + str (cuboid [0 ][0 ] + box .minx - execution_center [0 ]) + " ~" + str (cuboid [0 ][1 ] + box .miny - execution_center [1 ]) + " ~" + str (cuboid [0 ][2 ] + box .minz - execution_center [2 ]) + " ~" + str (cuboid [1 ][0 ] + box .minx - execution_center [0 ]) + " ~" + str (cuboid [1 ][1 ] + box .miny - execution_center [1 ]) + " ~" + str (cuboid [1 ][2 ] + box .minz - execution_center [2 ]) + " minecraft:air\" }"
125
+ command_part = "{id:\" MinecartCommandBlock\" ,Command:\" fill ~" + str (cuboid [0 ][0 ] + box .minx - execution_center [0 ]) + " ~" + str (cuboid [0 ][1 ] + box .miny - execution_center [1 ]) + " ~" + str (cuboid [0 ][2 ] + box .minz - execution_center [2 ]) + " ~" + str (cuboid [1 ][0 ] + box .minx - execution_center [0 ]) + " ~" + str (cuboid [1 ][1 ] + box .miny - execution_center [1 ]) + " ~" + str (cuboid [1 ][2 ] + box .minz - execution_center [2 ]) + " minecraft:air\" }"
126
126
command += "\n \t " + command_part
127
127
unformatted_command += command_part
128
128
@@ -219,7 +219,7 @@ def perform(level, box, options):
219
219
220
220
command_output = None
221
221
if save_command_to_file :
222
- output_file = mcplatform .askSaveFile (None , "Select the text file to wich you want to save the command..." , "command.txt" , "txt" , None )
222
+ output_file = mcplatform .askSaveFile (None , "Select the text file to wich you want to save the command..." , "command.txt" , "Text file (*. txt) \0 *.txt \0 " , None )
223
223
if output_file is not None :
224
224
command_output = open (output_file , "w" )
225
225
0 commit comments