Setup Menus in Admin Panel

How Can We Help?

Search for answers or browse our knowledge base.

Minecraft Classroom Management: Items and Codes

You are here:
< All Topics

How do I allow my students to destroy and build, but keep them from destroying or changing certain areas?

If you want your students to be able to destroy and build as they go through the game but not destroy certain features. You have two options available to you.

Option One: Deny Blocks

The Deny block deny building and destroying, but only for any blocks above it (at any height). Players can still interact with things like chests, levers, buttons… they just can’t break anything. Deny blocks can be found by expanding the menu by clicking on the plus symbol on the red border block to view all three “permission” blocks. The grey and black one is the Deny Block.

Deny Block

Put deny blocks underground in the areas you want to be protected. You can use /fill to quickly place them at a later underground.

  1. If you are new to using commands, you may want to export your world first, in case there are any mistakes. /fill can be an awesome tool to do things quickly, but it can also easily wipe out everything if you type a number wrong.
  2. turn on “show coordinates” in the settings.
  3. Use the /fill command and select two opposite corners of the area you do not want students to break. Then type the following into the chat bar:

/fill x1 y1 z1 x2 y2 z2 deny

x1 y1 z1 would be the coordinates for the first corner of the area and x2 y2 z2 would be the coordinates for the opposite corner.

4. To make the Deny Block  fill underground just set both the y values for a few blocks underground by subtracting 2 or 3 from the middle number of your coordinates.

Option Two: Command Blocks

Using command blocks, set areas within a certain radius to any mode (adventure, survival etc.).This will prevent students from destroying anything without a tool that has been given to them with the specific ability to destroy objects.

  1. Place command block
  2. Set it in a place that students have to pass by
  3. Use /gamemode commands. /gamemode s @a [r=10]  (This would put all players within 10 blocks of the command block on whatever mode you choose).
  4. Make it a repeating command block so it is always active but then you will need another command block to put them back in another mode
  5. Or  have a button/lever/pressure plate to activate the command block

Below are two resources that have a list of the commands required to do this:


Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Previous Holding Special Events in Minecraft
Next Miscellaneous Classroom Management commands
Table of Contents


We are a K-8 STEM school/ tutoring service, using Project Based Learning based on Next Generation Standards. We connect teachers with their students while providing the most engaging learning environment.We know our students LOVE us (duh! - for them is playing Minecraft), we also know our Teachers LOVE us (so easy to teach), and, finally, our Parents LOVE us - as they see their kids happy AND learning stuff.

Who’s Online

There are no users currently online

Start Minecraft

Start MS Teams

©️ 2021 EduMEE Minecraft Schooling, Inc. All rights reserved. Not an official Minecraft product. Not approved by or associated with Mojang.