2

I would want to know if there is a sort of "undo" command in Minecraft (no mods) that undo one action at the time. For example, the player pressed a button that started a huge redstone system or he detonated one TNT that detonated other TNTs.

7

No, there is no built-in undo system.

However, if you are prepared for it, you can use the /clone command. You'll want to clone the part of the map (periodically) you are working on to another, far away area. Then, if you want to "undo" this, simply reverse this cycle, and clone the "backup" area into the "work" area.

Tip: Make sure not to clone from the building area constantly, because that destroys the whole purpose of this. Make sure you clone it every so often; maybe every day-night cycle?

  • If you want to know how to do this in more depth, feel free to ask another question. – APCoding Apr 16 '16 at 19:28
  • Wow, that was quick. However, what you are telling me here is in sort of one my failed project (it required the /testforblocks command you can check the question here:gaming.stackexchange.com/questions/262125/… ) – Kimatuy Apr 16 '16 at 19:45
  • @Kimatuy Ah, I see. But you really shouldn't need /testforblocks. Since you should only "backup" the area every so often, that should create no lag. If you backed it up whenever someone places a block, then the two fields would be identical, including right after the player detonates TNT in that area. If both areas are destroyed, what's the point of having the backup? – APCoding Apr 17 '16 at 2:59
  • Yeah, you're surely right. But what I want my system to do is to detect if there is a change in the area, and if yes, change it back. Of course, there will be an "edit mode" system, so that we can change the build. But when not on, the /testforblocks command should be able to know that he will have a different build to check. This is my question, or more my project question. – Kimatuy Apr 18 '16 at 0:16
  • @Kimatuy Ah, I see. Please look at my comment on your other question, I might be able to help you there. – APCoding Apr 18 '16 at 0:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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