3
Map making help
So when I format a map to post it, how do I make it so people playing it cant use commands? I'm making my first map and I want to do it right, and I dont know how to make it so they cant use commands to cheat
Create an account or sign in to comment.
15
1
No matter the situation, there always a workaround for the player to be able to use commands. But disallowing them to use commands in chat through an NBT editor will normally stop most players.
1
You need to disable allowcommands in the nbt of level.dat in the save.
Here is an online nbt editor (just drag the level.dat into it): https://irath96.github.io/webNBT/
However I'd advise agaisnt you putting anti cheat measurements as:
1. There are a ton of ways for workarounds
and 2. They might need to skip a part or diagnose (the latter only applies to good command blockers) a map breaking issue if one occurs
Here is an online nbt editor (just drag the level.dat into it): https://irath96.github.io/webNBT/
However I'd advise agaisnt you putting anti cheat measurements as:
1. There are a ton of ways for workarounds
and 2. They might need to skip a part or diagnose (the latter only applies to good command blockers) a map breaking issue if one occurs
1
Install a program named NBTExplorer. Launch the program, go into your Minecraft world, click on level.dat, find allowCommands: true, and replace it with allowCommands: false.
1
This is irrelavent. The OP requested something that will restrict the player from using commands, not make their items drop upon death.
2
Fixed. I have no clue why I wrote that.
1
Your edit is still wrong/outdated. It is now allowCommands
https://minecraft.gamepedia.com/Level_format#level.dat_format
https://minecraft.gamepedia.com/Level_format#level.dat_format
1
I'm really questioning my existence now
1
Well, commands are disabled by default in adventure/survival mode, but you can't completely stop them from using commands, they can change the gamemode to creative. It doesn't really matter, though, so don't worry too much about it.
1
adventure and survival mode don't stop people from using commands
1
They stop people from using cheat commands.
1
You can use cheat commands in survival and adventure mode, I've done it before.
1
opening LAN can bypass their OP level, making them able to use cheat commands.
1
Yes, it can, but that was my point, no matter what you do there will always be a bypass.
1
Well, you could set players always on survival...
1
This is not recommended as:
1. There are ways to workaround this (like MCEdit)
and 2. They might need to skip a part or diagnose (the latter only applies to good command blockers) a map breaking issue if one occurs
1. There are ways to workaround this (like MCEdit)
and 2. They might need to skip a part or diagnose (the latter only applies to good command blockers) a map breaking issue if one occurs