Using a tutorial by Lorgon111 on command blocks, i have attempted to create his maze generator. All works well up to the point where the armor stand reaches a dead end. Below, I have provided the code for each command block. There are two chains involved. The specific command block that seems to be failing is #15 of the long chain. The first chain, consisting of five command blocks sets up the area, summons and tags an armor stand, and places orange wool at its block to show its location and paint its travel. The long chain is used to map the travel. the numbers at the beginning of each line only indicate the command block and its place in the chain and are not included in its command line. Any help to get this working is appreciated. Thanks in advance.
Thanks for the suggestion; however the "~ ~ ~-10" is to get that command block to look back 10 blocks in the direction of positive Z. It checks to see if the tp function failed (block 5). If yes, it proceeds to block 16, renaming the tag and thus begins a backtracking operation until it finds a suitable block to which it may go. At that point the initial loop continues (blocks 1 thru 15). As long as there are no "dead-ends" that prevent the armor stand from proceeding and the tp process in block 5 is a success, the first 15 blocks will continue until a stop is arrived. I can get the first part to work properly; however, it is when it reaches a dead-end that the process breaks down. Thanks again.
There are some flaws in your commands. First, the conditional command block must be the 16th, not the 15th. Second, 9th, 11th, 15th and 18th commands are wrong. Change ~1 ~ ~ in 9th to ~ ~ ~1, change ~ ~ ~-1 in 11th to ~-1 ~ ~ and add 10 before "tp" in 18th, change "successCount" in 15th to "SuccessCount"
Much appreciated, and thank you! I shall give it a try...and did...
...something is definitely wrong...made the change and now the armor stand went into a continuous teleport loop into the void... I did see this happen before so I dont think it is related to the change; however, it is not constant so there is a bug in there... somewhere...somewhere
One question: if changing the position of the conditional block from 15th to 16th and as the current 16th is based upon the conditional, what should be used to "fill" the block space? I don't think a simple switching of order will suffice, but could be wrong. Suggestions???
Just change the 16th to conditional and 15th to unconditional and don't change the command. Conditional command block will test if the block point to it has succeeded. If yes, it'll run.
Once again, thank you! :).... it found block #6 (LoL) The armor stand was visible for a few brief second and then vanished. Meanwhile, my screen filled up with text stating that it found the block at 34 56 10, to which turned out to be block #6.
Using a tutorial by Lorgon111 on command blocks, i have attempted to create his maze generator. All works well up to the point where the armor stand reaches a dead end. Below, I have provided the code for each command block. There are two chains involved. The specific command block that seems to be failing is #15 of the long chain. The first chain, consisting of five command blocks sets up the area, summons and tags an armor stand, and places orange wool at its block to show its location and paint its travel. The long chain is used to map the travel. the numbers at the beginning of each line only indicate the command block and its place in the chain and are not included in its command line. Any help to get this working is appreciated. Thanks in advance.
Short chain:
1 summon armor_stand ~8 ~1 ~8 {Tags:["AS"]}
2 fill ~5 ~0 ~5 ~95 ~ ~95 wool 15
3 /kill @e[type=!Player]
4 /summon armor_stand ~8 ~ ~8 {Tags:["AS"]}
5 /execute @e[tag=AS] ~ ~ ~ setblock ~ ~ ~ wool 1
Long chain:
1 /execute @e[tag=AS] ~ ~ ~ detect ~ ~ ~2 wool 15 summon armor_stand ~ ~ ~2 {Tags:["R", "ZP"]}
2 /execute @e[tag=AS] ~ ~ ~ detect ~ ~ ~-2 wool 15 summon armor_stand ~ ~ ~-2 {Tags:["R", "ZN"]}
3 /execute @e[tag=AS] ~ ~ ~ detect ~2 ~ ~ wool 15 summon armor_stand ~2 ~ ~ {Tags:["R", "XP"]}
4 /execute @e[tag=AS] ~ ~ ~ detect ~-2 ~ ~ wool 15 summon armor_stand ~-2 ~ ~ {Tags:["R", "XN"]}
5 /tp @e[tag=AS] @r[type=Armor_stand,tag=R]
6 /execute @e[tag=AS] ~ ~ ~ /execute @e[tag=ZP,r=0] ~ ~ ~ setblock ~ ~ ~ command_block 10
7 /execute @e[tag=AS] ~ ~ ~ /execute @e[tag=ZP,r=0] ~ ~ ~ setblock ~ ~ ~-1 wool 0
8 /execute @e[tag=AS] ~ ~ ~ /execute @e[tag=ZN,r=0] ~ ~ ~ setblock ~ ~ ~ command_block 11
9 /execute @e[tag=AS] ~ ~ ~ /execute @e[tag=ZN,r=0] ~ ~ ~ setblock ~1 ~ ~ wool 0
10 /execute @e[tag=AS] ~ ~ ~ /execute @e[tag=XP,r=0] ~ ~ ~ setblock ~ ~ ~ command_block 12
11 /execute @e[tag=AS] ~ ~ ~ /execute @e[tag=XP,r=0] ~ ~ ~ setblock ~ ~ ~-1 wool 0
12 /execute @e[tag=AS] ~ ~ ~ /execute @e[tag=XN,r=0] ~ ~ ~ setblock ~ ~ ~ command_block 13
13 /execute @e[tag=AS] ~ ~ ~ /execute @e[tag=XN,r=0] ~ ~ ~ setblock ~1 ~ ~ wool 0
14 /kill @e[tag=R]
15 /testforblock ~ ~ ~-10 chain_command_block -1 {successCount:0} ***this is a conditional block***
16 /entitydata @e[tag=AS] {Tags:["DE"]}
17 /execute @e[tag=DE] ~ ~ ~ detect ~ ~ ~ command_block 10 setblock ~ ~ ~-1 wool 1
18 /execute @e[tag=DE] ~ ~ ~ detect ~ ~ ~ command_block tp @e[tag=DE] ~ ~1 ~-2
19 /execute @e[tag=DE] ~ ~ ~ detect ~ ~ ~ command_block 11 setblock ~ ~ ~1 wool 1
20 /execute @e[tag=DE] ~ ~ ~ detect ~ ~ ~ command_block 11 tp @e[tag=DE] ~ ~1 ~2
21 /execute @e[tag=DE] ~ ~ ~ detect ~ ~ ~ command_block 12 setblock ~-1 ~ ~ wool 1
22 /execute @e[tag=DE] ~ ~ ~ detect ~ ~ ~ command_block 12 tp @e[tag=DE] ~-2 ~1 ~
23 /execute @e[tag=DE] ~ ~ ~ detect ~ ~ ~ command_block 13 setblock ~1 ~ ~ wool 1
24 /execute @e[tag=DE] ~ ~ ~ detect ~ ~ ~ command_block 13 tp @e[tag=DE] ~2 ~1 ~
25 tp @e[tag=DE] ~ ~-1 ~
26 /entitydata @e[tag=DE] {Tags:["AS"]}
Note: tried using "/execute if block <x y z>" but that didn't work..
https://www.minecraftforum.net/forums/minecraft-java-edition/recent-updates-and-snapshots/2844075-how-to-use-the-execute-replacement-commands-for-1
Comments, help on any and/or all of this is appreciated.
I believe that command block is to stop the progress. Try change ~ ~ ~-10 to ~-10 ~ ~, ~10 ~ ~ or ~ ~ ~10
ewe
Thanks for the suggestion; however the "~ ~ ~-10" is to get that command block to look back 10 blocks in the direction of positive Z. It checks to see if the tp function failed (block 5). If yes, it proceeds to block 16, renaming the tag and thus begins a backtracking operation until it finds a suitable block to which it may go. At that point the initial loop continues (blocks 1 thru 15). As long as there are no "dead-ends" that prevent the armor stand from proceeding and the tp process in block 5 is a success, the first 15 blocks will continue until a stop is arrived. I can get the first part to work properly; however, it is when it reaches a dead-end that the process breaks down. Thanks again.
There are some flaws in your commands. First, the conditional command block must be the 16th, not the 15th. Second, 9th, 11th, 15th and 18th commands are wrong. Change ~1 ~ ~ in 9th to ~ ~ ~1, change ~ ~ ~-1 in 11th to ~-1 ~ ~ and add 10 before "tp" in 18th, change "successCount" in 15th to "SuccessCount"
ewe
The 18th should be:
/execute @e[tag=DE] ~ ~ ~ detect ~ ~ ~ command_block 10 tp @e[tag=DE] ~ ~1 ~-2
I'm a programmer. I use C/C++, BASIC, Assembly, and Python. If i sound too technicial, that's because it's the way i think.
My Suggestions
Much appreciated, and thank you! I shall give it a try...and did...
...something is definitely wrong...made the change and now the armor stand went into a continuous teleport loop into the void... I did see this happen before so I dont think it is related to the change; however, it is not constant so there is a bug in there... somewhere...somewhere
Try remake everything. Remember there are 5 mistakes you need to fix in the original commands.
ewe
Thanks, and will do!!! The extra eyes are sincerely appreciated.
One question: if changing the position of the conditional block from 15th to 16th and as the current 16th is based upon the conditional, what should be used to "fill" the block space? I don't think a simple switching of order will suffice, but could be wrong. Suggestions???
Just change the 16th to conditional and 15th to unconditional and don't change the command. Conditional command block will test if the block point to it has succeeded. If yes, it'll run.
ewe
Once again, thank you! :).... it found block #6 (LoL) The armor stand was visible for a few brief second and then vanished. Meanwhile, my screen filled up with text stating that it found the block at 34 56 10, to which turned out to be block #6.