How can I reset a world in Minecraft from a button within the game?

How can I reset a world in Minecraft from a button within the game? - Colored buttons making world map

I am creating a playable chess game in minecraft. Everything works fine but I don't know how to reset my map from within the game.

I already know that I can just backup my world save file and then reload whenever I want. But, I don't think that method is much convenient.

I wanted a simple, clean and easy way of resetting the map from within the game. Like you press a button and it reloads.



Best Answer

As others stated before, this cannot be done in Vanilla Survival MC and needs either mods or command blocks.

Basically create the chessboard somewhere in your world (preferably in the spawn chunks) in it start up state. This is your template board. Before starting a new chess game, clone the template board to the location of your liking. Use the same technique to clear the board (create empty template board and clone that).

Example use of clone command: /clone 100 50 100 108 52 108 ~ ~ ~ /replace

The 6 numbers are two coordinates, each pointing to the cube you want to clone, the three tildes (~) are a coordinate relative to where you stand (so currently the block on the first coordinate of the cube will be cloned to where you stand).

Finding the appropriate coordinates is a bit tricky, so I recommend reading the Wiki entry for it (http://minecraft.gamepedia.com/Commands). There are also plenty of tutorials to be found (for example: https://www.digminecraft.com/game_commands/clone_command.php)




Pictures about "How can I reset a world in Minecraft from a button within the game?"

How can I reset a world in Minecraft from a button within the game? - Unrecognizable couple playing video game with gamepads at home
How can I reset a world in Minecraft from a button within the game? - High angle of crop anonymous male gamer using VR controller for playing video game at spare time
How can I reset a world in Minecraft from a button within the game? - From above of crop unrecognizable male with console controller playing video game in living room



Is there a command to reset the world in Minecraft?

To do this: Stop the server by closing the Minecraft server GUI or by using the /stop command in the server console. Navigate to your Minecraft server folder (e.g., C:\\my_server). Delete the world folder (e.g., C:\\my_server\\world).

How do you make a reset button in Minecraft?

Stop your server with the red Stop or Force Stop button. Under the World bar, change the name to anything you would like, as long as it is different from the previous world name. Restart the server. This will load a new world.

How do you reset your world in Minecraft single player?

You can not reset a map, because Minecraft does not save previous state. Write some commands to delete pieces and construct pieces where they should be.



How To Make A RESET SYSTEM for Your Minecraft Map! w/ Commands! (Part 4)




More answers regarding how can I reset a world in Minecraft from a button within the game?

Answer 2

If you use command blocks for the game then you can add some more to reset the board into a initial state when a button gets pushed.

Answer 3

Structure blocks. Set a command block to set redstone block next to it in load mode bam redstones gone map reloaded. Easy and I just made a Skyblock with this reset button but it's only for a area you designed

Answer 4

Clone the build. reclone when u want 2 restart.

/clone (co-ordinates of 1 corner of build) (co-ordinates of opposite corner of build) (Where u want build 2 be cloned)

Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Monstera, Ryutaro Tsukata, Eren Li, Eren Li