Created
January 19, 2024 06:33
-
-
Save anthony1204/dc15c0fe692e65f92e5569d394e75c63 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
say test2 | |
say put a new line for more commands | |
execute as @p run say it worked! | |
say it sets the commandblcokoutput to false also. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
summon falling_block ~ ~.5 ~ {Time:1,BlockState:{Name:redstone_block},Passengers:[{id:armor_stand,Health:0,Passengers:[{id:falling_block,Time:1,BlockState:{Name:activator_rail},Passengers:[{id:command_block_minecart,Command:'gamerule sendCommandFeedback false'},{id:command_block_minecart,Command:'say test'},{id:command_block_minecart,Command:'say tes2'},{id:command_block_minecart,Command:'setblock ~ ~1 ~ command_block{auto:1,Command:"fill ~ ~ ~ ~ ~-3 ~ air"}'},{id:command_block_minecart,Command:'kill @e[type=command_block_minecart,distance=..1]'}]}]}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with open("cmds") as f: | |
cmds = [ i.split("\n")[0] for i in f.readlines() ] | |
out = 'summon falling_block ~ ~.5 ~ {Time:1,BlockState:{Name:redstone_block},Passengers:[{id:armor_stand,Health:0,Passengers:[{id:falling_block,Time:1,BlockState:{Name:activator_rail},Passengers:[' | |
out += "{id:command_block_minecart,Command:'gamerule sendCommandFeedback false'}," | |
for i in cmds: | |
out += '' | |
out += "{id:command_block_minecart,Command:'"+ i +"'}," | |
#out = out[:-13] + "}" | |
#for i in cmds: | |
# out += "]}" | |
out += "{id:command_block_minecart,Command:'setblock ~ ~1 ~ command_block{auto:1,Command:\"fill ~ ~ ~ ~ ~-3 ~ air\"}'}," | |
out += "{id:command_block_minecart,Command:'kill @e[type=command_block_minecart,distance=..1]'}]}]}]}" | |
print(out) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment