{{exclusive|Bedrock|Education}}
{{Infobox block
| image = <gallery>
Allow.png | Allow
Deny.png | Deny
</gallery>
| invimage = Allow
| invimage2 = Deny
| light = No
| tool = none
| tntres = 36,000,000{{needs testing}}
| transparent = No
| flammable = No
| lavasusceptible = No
| renewable = No
| stackable = Yes (64)
}}
'''Allow''' and '''deny''' are blocks that can be used to create restricted building areas or areas where [[player]]s can build.<ref>https://educommunity.minecraft.net/hc/en-us/articles/360047116852-Specialty-Blocks-Allow-Deny-Border-Structure-</ref>

== Obtaining ==
Allow and deny blocks can either be obtained by using the pick block [[control]], or by using various [[commands]], such as <code>/[[Commands/give|give]]</code>, or the [[Creative inventory]]{{only|edu}}.

== Usage ==
When placed, allow blocks let [[player]]s without world builder status place or destroy blocks in the area above them if immutable world is on, while deny blocks prohibit players without world builder, and their [[agent]]s, 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 through commands, [[endermen]], or [[piston]]s. They also do not prevent the placing of entities such as [[boat]]s.

{{IN|BE}}, when placed, allow blocks let players in [[Adventure]] status place or destroy blocks in the area above, while deny blocks prohibit [[Permission level|Members]] in [[Survival]] from placing or destroying blocks in the area above them.

Both blocks are extremely resistant to [[explosion]]s, and players with world builder (or [[permission level]] 1{{only|BE}}) status are able to place and destroy blocks regardless of where any allow or deny blocks are placed and can also destroy and place the blocks themselves.

Allow blocks do not enable players without building/destroying permissions to build on top of them.

=== Piston interactivity ===
Allow and deny blocks can not be moved by [[piston]]s or [[sticky piston]]s.

== Sounds ==
{{Sound table/Block/Stone/BE}}

== Data values ==
=== ID ===
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Allow
|spritetype=block
|nameid=allow
|id=210}}
{{ID table
|displayname=Deny
|spritetype=block
|nameid=deny
|id=211
|foot=1}}

== Video ==
{{yt|msRyGgEO0EA}}

== History ==
{{See also|build allow block|build disallow block}}
{{HistoryTable
|{{HistoryLine|pocket alpha}}
|{{HistoryLine||v0.14.2|[[File:Allow BE0.png|32px]] [[File:Deny BE0.png|32px]] Unused textures and models for allow and deny blocks have been added to game files.}}
|{{HistoryLine||v0.16.0|dev=build 1|[[File:Allow BE1.png|32px]] [[File:Deny BE1.png|32px]] Added allow and deny blocks. The textures have been changed.}}
|{{HistoryLine|||dev=build 2|Allow and deny blocks have now been removed.}}
|{{HistoryLine|bedrock}}
|{{HistoryLine||1.16.0|dev=beta 1.15.0.51|Re-added allow and deny blocks.}}
|{{HistoryLine||1.20.70|dev=Preview 1.20.70.22|Allow and Deny no longer drop themselves when breaking.}}
|{{HistoryLine|education}}
|{{HistoryLine||1.0.0|[[File:Allow BE1.png|32px]] [[File:Deny BE1.png|32px]] Added allow and deny blocks.|dev=0.14.2}}
}}

== Issues ==
{{Issue list|projects=mcpe}}

== Gallery ==
=== Screenshots ===
<gallery>
Education Edition Exclusive Features.png|The allow and deny blocks placed in a world along with other ''[[Minecraft Education]]'' features.
AllowandDenyingame.png|Example of allow and deny blocks placed in a world in [[Pocket Edition Alpha]].
</gallery>

== References ==
{{reflist}}

== Navigation ==
{{Navbox blocks|Utility}}
{{Navbox Education|Exclusive}}

[[Category:Minecraft Education blocks]]

[[de:Erlauben und Verweigern Blöcke]]
[[es:Permitir y Rechazar]]
[[fr:Autoriser et Refuser]]
[[ja:許可ブロックと拒否ブロック]]
[[lzh:肯否塊]]
[[pl:Allow i Deny]]
[[pt:Bloco de permitir e negar]]
[[ru:Блоки «разрешить» и «запретить»]]
[[uk:Дозволити й відмовити]]
[[zh:允许和拒绝方块]]
