How to block commands on minecraft? [duplicate]

How to block commands on minecraft? [duplicate] - White shabby concrete wall with cracked stucco

I am making a parkour map in Minecraft and I don't want players to be able to teleport. Is there a way to block players from using this command?



Best Answer

Yes, there is a way. When you make the world, you can select Creative mode with no cheats. Now when the world is loaded, entering commands like /gamemode 1 will result in a message saying you don't have permission to use that command. So there is this feature where you can enable cheats in a non-cheat world. Go to the pause menu, then "Open to LAN". From there, select "Enable Cheats". Now you have access to cheats. Note that this cheats mode is temporary, once you quit the world, cheats is deactivated. When building the map, you get access to commands like /give and /gamemode. When you give out the map, the players do not get access to the commands.


TL; DR

To a certain extend, yes you can do that. However, if the players find out about this feature, they can abuse it. Perhaps what you could do is have a armour-stand tracking system and detect a player who teleported away and teleport them back.




Pictures about "How to block commands on minecraft? [duplicate]"

How to block commands on minecraft? [duplicate] - Assorted-color House Facade in Park
How to block commands on minecraft? [duplicate] - Man in Black Jacket Sitting on Block
How to block commands on minecraft? [duplicate] - From below of lots of long narrow identical windows of contemporary construction in sunlight



How do you stop repeating commands in Minecraft?

How to get a Command Block
  • Enable cheats in your world or Realm settings.
  • Turn on Creative Mode in your world or Realm settings.
  • Open the chat box and enter \u201c/give [your username] command_block\u201d
  • Place the block where you want it.


  • How do you block commands in Minecraft?

    Yes, you can. You can duplicate almost anything that can be placed within the chest.



    How to duplicate items in MInecraft using command blocks




    More answers regarding how to block commands on minecraft? [duplicate]

    Answer 2

    Try this:

    By using NBTExplorer:

    1. Navigate to %appdata%\.minecraft\saves; 2. Find the folder with the name of your world. Copy the file at that folder (don't move it to the desktop.); 3. Download NBTExplorer. Link here: https://github.com/jaquadro/NBTExplorer/releases/tag/v2.8.0-win . Download the zip version of it. Extract it to your desktop after download.; 4. Open the .exe file with the deadbush icon. Find the copied world, it will show as its exact folder name. Click the + button beside the folder's icon to expand.; 5. Now that you expanded its contents, using the + button, navigate to level.dat, then to Data with exactly 39 entries (unless you have added something there already). After navigating inside Data, find a tag named allowCommands without expanding anything. If commands are allowed in that world, its integer should be 1. To disable commands, change it to 0 by double clicking it and editing its value to 0.; 6. Open the copied and modified world and try to use a command. If you cannot use any command because it says "You don't have permission to use this command", then it is a success, there goes what you desired :), else, notify me.

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

    Images: Tatiana Syrikova, Pixabay, Lisa Fotios, Ave Calvar Martinez