4

This question already has an answer here:

I made a new world called "Fun With Redstone".

I had a "genius" idea to make a zombie killing mini-game, so I put in the super fast redstone clock /kill @e[Type=Zombie] and shortly after, realized my blunder.

My world is now stuck in a death loop where every time I respawn I just get killed again.

Can anyone help me to get out of that loop? Maybe there are hidden files or something? I don't wanna reset my whole world, since there are other projects there.

marked as duplicate by Virusbomb, arghtype, Schism, Lore Friendly, Timmy Jim Aug 13 '18 at 12:19

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

8

If you don't want to use MCEdit, you can still use NBT Explorer. Download it here.
Now, open it up and select your world.

Select your world

Then, you want to click on Search->Find. Tick the value box and enter your command or just a part of it.

Search for your command

After a short amount of time, NBTExplorer will have found the problem causing command block.

The command that causes trouble.

So now you can easily edit the command by double clicking on it. Make sure to click on the save button at the top, to ensure your changes got saved and you're done.

  • Nice. This is even cleaner than my answer's solution. Have a +1. – SevenSidedDie Apr 3 '15 at 2:15
  • I forgot I asked this... 3 years later and I had the same problem again. I ended up searching for an answer, eventually found this one and it actually worked! Thanks! – Xandawesome Dec 19 '18 at 2:32
3

Use MCEdit to delete the command block or to break the redstone. Alternatively if you are fast enough you may be able to run a command before you die.

  • It does require an mod... And I had trouble with that mod at first so maybe it isn't all that good of an idea. – Louis Apr 2 '15 at 1:35
  • 1
    McEdit is not a mod, it is an external program – ModDL Apr 2 '15 at 2:01
  • 1
    Oh. It's still a bit hard to use and to download. It's not easy at all. So an easier way might help better. – Louis Apr 2 '15 at 2:02
  • I agree with @Luiyay. MCEdit is an immensely powerful tool, which can make it quite confusing and complicated for first time users. In this case, it's the equivalent of using a CNC router to drill a simple hole. – MrLemon Apr 2 '15 at 8:52
3

You can fix this without mods or external editors. A feature of the standalone Minecraft server is that it has a configuration option to disable command blocks. We can exploit this to save your game.

  1. Back up your save. (Always prudent.)

  2. Get and install the server somewhere on your local machine. (Follow the directions on the Minecraft Wiki if you've never done this before.)

  3. Run the server once to make sure it's working, and that you can connect to it. Then stop the server.

  4. Delete the contents of the server's world folder and replace it with a copy of the contents of your affected save folder.

  5. Edit the server's server.properties file. Change or add the line to say:

    enable-command-block=false
    
  6. Run the server and connect. Go find your errant command block and fix it or disable its clock. Wait a minute to make sure an auto-save happens, or just issue the save-all command in the server console. Stop the server again.

  7. Copy the contents of the server's world file into your singleplayer saves directory. (If you want to be super-cautious, copy this into a new save folder.)

  8. Play singleplayer and confirm that you don't die instantly anymore!

2

If it is by any chance on a server, go to your server properties folder and disable command blocks. After that, get back on your world and destroy the command block that is keeping you in the loop. Once finished, close your server and turn command blocks back on. Once you finished, it should be back to normal.

-1

I got an way to fix it without anything like world edit.

1.Launch the Minecraft launcher and make a new profile

2.Name it

3.Set the profile's version to 1.8.9

4.You wont be able to be killed but go to the spot where the command block is. (You cant see it but I believe it seems like a black spot)

  1. Blow it up with TNT

6.Go back to your other profile

7.The command block has the repeat on but it erased the command so delete the command block.

  • That will only work if the killing command block is a repeating or chain command block from 1.9. If it's a regular command block, downgrading shouldn't be an issue. It will also delete everything that is present in the world that was added in 1.9, such as Elytra. – MrLemon Apr 8 '16 at 14:44
  • I don't think you can use TNT on it anyway... But MrLemon is right as well, it won't cause issues when downgrading, and it will cause backwards compatibility issues when you try going back. – user113642 Apr 17 '17 at 1:40
-1

Here's an little trick for ya:

Copy this:

/Gamemode 3

Go to your world and quickly press Ctrl + V and Enter. Now, when you are right above the command block, copy this:

/Gamemode 0

Then go to settings, controls and set the "destroy block" (or something) control from button 1 (left-click) to Enter. Now press Ctrl + V and press Enter twice ASAP. Ta-da!

Having trouble with the three keys?
Use an AutoTyper program and press the type key. Now it's reduced to two keys to press in an tick. And yes, pressing three keys in a tick is possible. You might want to use some hacks if you are still having trouble with two keys. (AutoRespawn or something...) Also, if this is multiplayer, simply turn command blocks off in the menu thing.

  • 1
    Have you actually managed to do this faster than a superfast clock? – SevenSidedDie Apr 2 '15 at 16:47
  • Took me like 19 tries but it's possible. – Louis Apr 2 '15 at 23:52
  • For one thing, gamemode 0 is Survival mode, you want gamemode 1. I also believe that kill @e kills everything, including spectators. – user113642 Apr 17 '17 at 1:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.