mojira.dev
MC-99175

Command block Not Working

after change command block to another type It wont run a command after powered it

Comments 4

Please, provide the EXACT commands used and the steps to reproduce.

I'm having this same problem the block was set to repeat, unconditional, always active and the command I used was:

clear @a[770,71,-2226,4] minecraft:written_book -1 0 {generation:3,pages:[0:"{\"text\":\"You found us! I can\u0027t thank you enough. I thought we were goners. We went into the dungeon to see what was in the chests and the night things came out of nowhere. One touched me and I don\u0027t know what happened after that. We\u0027ve been gone so much\"}",1:"{\"text\":\"longer than we planned, so the folks back home probably need help. We should head back. Come see me in South Gate and I\u0027ll make you one of my special fishing rods. I make a rod that is nearly irresistable to most fish but lasts longer than ordinary rods. Some say\"}",2:"{\"text\":\"it even gives them a better chance of picking up lost treasure items from the bottom.\"}"],author:"Rivera",title:"Reward",resolved:1b}

This was followed by a give command, then a say, then a fill to remove the command blocks. All blocks after the first command were chain, conditional and always active. The plan was to give an item, and display a message when a player had a certain book in their inventory, then replace the command blocks so it would only happen once.

I was troubleshooting by setting up the chain, copying the save file with a new name opening the newly copied game and approaching the radius of the clear command with the required item in hand. I had to tweak a few things and on one occasion, I forgot to make a new file to test and since I had not added the last block yet and I had obtained the required book, I got showered with named blaze rods and changed the clear block to impulse and needs redstone to make it stop. I did note at that time that the say command was also working. At that point, I added the fill command to the chain, exited the world, copied and tried again. I had made a mistake with the fill block causing it to only replace itself but I didn't get showered and that's when I noticed I had only set the clear block back to chain, not repeat. I went back to the original world, put the book in a chest outside of the radius of the clear command, added the fill block again and fixed the settings on the clear block. I copied the world again and tested the chain on the copy but it didn't work. I looked at the output on the clear block and it showed that 1 item had been detected in my inventory but the time stamp was about 15 minutes past. When I went back to the original world, that clear block was in the same condition as the one in the copy. Since was showing a detection, I have to assume it happened during the blaze rod deluge.

It should be noted that I had this problem once before on another clear command (same settings) when I had cloned in a command block with a tp command next to it and chained it to the clear block. Not only did the clear command stop running but when I replaced it in the same location, that one didn't work either. I tried again in a new location, adding the second block by hand rather than cloning and it worked just fine. I know I had the exact same code in the new blocks as the ones that failed because I work out my code in Notepad, then copy and paste it into the command blocks.

PS I'm using the latest update as of today, 9/8/16 on a PC in creative mode (of course) with no mods.

This looks like a duplicate of MC-86846

PlusPK PlusFamily

(Unassigned)

Unconfirmed

Minecraft 1.9

Retrieved