Allow and Deny

Allow and deny blocks can be used to create restricted building areas or areas where users can build.

Obtaining
Allow and deny blocks can either be obtained by using the pick block control, or by using various commands, such as  or , or the creative inventory.

Usage
When placed, allow blocks let users without world builder status place or destroy blocks in the area above them if immutable world in ON, while deny blocks prohibit users without WB and their Agents from placing or destroying blocks in the area above them. This area covers an infinite distance above the block but does not cover the area below the block. If two allow or deny blocks are placed on top of one another, the block that is highest takes precedence. The deny block does not prevent the placing of blocks with commands or Endermen.

In Bedrock edition, when placed, allow blocks let users in Adventure status place or destroy blocks in the area above, while deny blocks prohibit Members in Survival and even in Creative from placing or destroying blocks in the area above them.

Both blocks are extremely resistant to explosions, even though they can still be destroyed by the ender dragon.

Users with world builder (or Operator) status are able to place and destroy blocks regardless of where any allow or deny blocks are placed, and can also destroy and move the blocks themselves.

Note: Players without building/destroying permissions cannot build on Allow blocks.

Piston interactivity
Allow and deny blocks cannot be moved by pistons or sticky pistons.