Bedrock Wiki
  • Discord
  • Contribute
  • bedrock.dev
  • MS Learn
Beginner's Guide
  • Guide
    • 1. Introduction
      guide
    • 2. Add-Ons Explained
    • 3. Software & Preparation
    • 4. Project Setup
    • 5. Create a Custom Item
    • 6. Create a Custom Entity
    • 7. Blockbench: Modeling, Texturing & Animating
    • 8. Adding a Loot Table, Spawn Rule & Crafting Recipe
  • Extra
    • a. Understanding JSON
    • b. Download Example Packs
    • c. Troubleshooting
      help
    • d. Advanced Manifest
    • e. Format Versions
    • f. Project Setup Android
Animation Controllers
  • Intro to Animation Controllers
    guide
  • Entity Commands
  • AFK Detector
  • Death Commands
  • Molang into Scoreboard
  • Respawn Commands
Blocks
  • General
    • Intro to Blocks
      guide
    • Block Components
    • Block Tags
    • Block States
    • Block Traits
    • Block Permutations
    • Block Events
      Scripts
    • Block Event Migration
      help
    • Blocks as Items
    • Troubleshooting Blocks
      help
  • Visuals
    • Block Culling
    • Block Models
      guide
    • Block Texture Animation
    • Block Texture Variation
    • Block Tinting
  • Tutorials
    • Applying Constant Effects
      Scripts
    • Avoiding State Limit
    • Fake Blocks
    • Ore Loot Tables
      Scripts
    • Precise Interaction
      Scripts
    • Precise Rotation
      Scripts
    • Rotatable Blocks
  • Vanilla Re-Creations
    • Custom Crops
      Scripts
    • Custom Glass
    • Custom Glazed Terracotta
    • Custom Trapdoors
      Scripts
  • Documentation
    • Block Format History
    • Block Shapes
    • Block Sounds
    • Vanilla Block Models
Commands
  • General
    • Intro to Command Blocks
    • Functions
    • Block States
    • Coordinate System
    • NBT Commands
    • Scoreboard Operations
    • Understanding Selectors
  • Commands
    • Damage
    • Execute
    • Playanimation
    • Playsound
  • On Event Systems
    • On Player First Join
    • On Player Join
    • On Player Leave
    • On Player Death
    • On Player Respawn
    • On First World Load
  • Scoreboard Systems
    • Entity Counter
    • Scoreboard Timers
    • Comparing And Retrieving Scores
  • Techniques
    • Execute Logic Gates
    • MBE - Max's Block Entity
    • FMBE - A New Way to Create Display Entities
    • Look Detection
    • Movement Detections
    • Orbital Camera
  • Useful Creations
    • Custom Crafter
    • Multiplayer Position Rearrangement
      function
Concepts
  • contents.json
  • Emojis & Symbols
  • Molang
  • Namespaces
  • Overwriting Assets
  • Raw Text
  • Shaders
  • Sounds
  • Subpacks
  • Text and Localization
  • Texture Atlases
  • textures_list.json
Documentation
  • Shared Constructs
  • Advanced Molang
  • File Types
  • Fog IDs
  • Material Configuration Description
  • Menu Categories
  • Molang Queries
  • Pack Folder Structure
  • Sound Definitions
  • Vanilla Materials
Entities
  • General
    • Intro to Entities BP
      guide
    • Intro to Entities RP
      guide
    • Troubleshooting Entities
      help
    • Entity Events
    • Entity Properties
    • NPC Dialogues
    • Render Controllers
    • Spawn Rules
  • Tutorials
    • Convert Points Between Any Space (World, Entity, Bones)
    • Creating Boats
    • Detecting Other Entities
    • Disabling Team Damage
    • Dummy Entities
    • Entity Attacks
    • Entity Holds Item
    • Entity Movement
    • Entity Timers
    • Flying Entities
    • Introduction to AOE Clouds
    • Invulnerable Entities
    • Look at Entity
    • Sleeping Entities
    • Solid Entities
    • Spawning Tamed Entities
      Scripts
    • Village Mechanic
  • Documentation
    • Dummy Components
    • Non-Mob Runtime Identifiers
    • Projectiles
    • Runtime Identifiers
    • Vanilla Usage Components
    • Vanilla Usage Spawn Rules
Items
  • General
    • Intro to Items
      guide
    • Item Components
    • Item Tags
    • Item Events
      Scripts
    • Item Event Migration
      help
    • Troubleshooting Items
      help
  • Tutorials
    • Custom Armor
    • Custom Food
      Scripts
    • Custom Pottery Sherds
    • Custom Weapons
    • Equipment-Based Commands
    • High Resolution Items
    • Spawning Items
    • Throwable Items
  • Documentation
    • Enchantments
    • Attachables
    • Item Format History
    • Numerical Item IDs
    • Vanilla Item Identifiers
    • Vanilla Usage Components
JSON UI
  • General
    • Intro to JSON UI
      guide
    • Best Practices
      guide
  • Tutorials
    • Adding HUD Elements
    • Aseprite Animations
    • Buttons and Toggles
    • Modifying Server Forms
    • Preserve Title Texts
    • String to Number
  • Documentation
    • JSON UI Documentation
Loot, Recipes & Trading
  • General
    • Trading Behavior
  • Documentation
    • Loot Tables
    • Trade Tables
    • Recipes
    • Item Functions
  • Tutorials
    • Randomized Structure Loot
Meta
  • Add-On Performance
  • Style Guide
  • Useful Links
  • Using Schemas
  • Version Control
  • Q&A
    • Blocks and Items Q&A 2024/08/30
    • Deferred Technical Preview Q&A 2024/02/23
    • GameTest Q&A 2021/08/06
    • Scripting and Editor Q&A 2023/09/22
    • World Generation Q&A 2024/11/15
NBT
  • General
    • .mcstructure
  • Tutorials
    • Experiments in Education Edition
    • Extending Structure Limits
  • NBT in Depth
    • About NBT (Named Binary Tag)
    • NBT Libraries
    • Reading NBT Example
Particles
  • General
    • Intro to Particles
      guide
  • Tutorials
    • Disabling Particles
  • Documentation
    • Vanilla Particles
Scripting
  • General
    • Intro to Scripting
    • What is Script API?
    • API Modules
  • Tutorials
    • Block Placement Prevention
    • GameTests
    • Script Core Features
    • Script Forms
    • Script Requests API
    • Simple Chat Commands
  • Documentation
    • Engine Environment
    • Script Resources
    • Script Watchdog
    • Troubleshooting JavaScript
    • TypeScript
Servers
  • Software
    • Bedrock Server Software
  • Protocols
    • Bedrock Protocol
    • NetherNet Protocol
    • RakNet Protocol
Visuals
  • General
    • Introduction to Entity Visuals
      guide
    • Bedrock Modeling
    • Custom Death Animations
    • Effects in Animations
    • Material Creations
    • Materials
    • Math-Based Animations
    • Skin Packs
  • Tutorials
    • Entity Texture Animation
    • Glowing Entity Texture
    • Hurt Animations
    • Leash Position
    • Player Geometry
    • Remove Entity Shadows
    • Retexturing Spawn Eggs
  • Ideas
    • Structure Presentation
World Generation
  • General
    • Intro to World Generation
      guide
    • Biomes
      guide
    • Feature Types
    • Jigsaw Structures
  • Tutorials
    • Block Conditions for Features
    • Generating Custom Ores
    • Generating Custom Structures
    • Generating Patches
    • Heightmap Noise
  • Documentation
    • Biome Tags

Block Tags

Block Tags
  • Applying Tags
  • Testing for Tags
    • From Block Descriptors
    • From Entities
    • Additional Queries
  • List of Vanilla Tags

Block tags can be used to ensure that a block meets certain conditions.

Applying Tags ​

Block tags can be applied in the block's components, prefixed with tag:, as seen below:

BP/blocks/tree_stump.json
json
{
    "format_version": "1.21.70",
    "minecraft:block": {
        "description": {
            "identifier": "wiki:tree_stump",
            "menu_category": {
                "category": "nature"
            }
        },
        "components": {
            "tag:wood": {},
            "tag:minecraft:is_axe_item_destructible": {},
            "tag:wiki:very_useless": {}
        }
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

Testing for Tags ​

From Block Descriptors ​

  • q.all_tags
  • q.any_tag
Block Descriptor
json
{
    "tags": "q.any_tag('wiki:glowing') && q.all_tags('wiki:custom_ore', 'stone')"
}
1
2
3

From Entities ​

  • q.relative_block_has_all_tags
  • q.relative_block_has_any_tag
  • q.block_has_all_tags
  • q.block_has_any_tag
minecraft:client_entity > description
json
"scripts": {
    "pre_animation": [
        "v.is_on_sand = q.relative_block_has_any_tag(0, -1, 0, 'sand');"
    ]
}
1
2
3
4
5

Additional Queries ​

NOTE: The following query functions have no known use cases.

  • q.block_neighbor_has_all_tags
  • q.block_neighbor_has_any_tag

Example of an item querying a block's tags:

BP/items/custom_pickaxe.json
json
{
    "format_version": "1.21.70",
    "minecraft:item": {
        "description": {
            "identifier": "wiki:custom_pickaxe",
            "menu_category": {
                "category": "equipment",
                "group": "minecraft:itemGroup.name.pickaxe"
            }
        },
        "components": {
            "minecraft:digger": {
                "use_efficiency": true,
                "destroy_speeds": [
                    {
                        "speed": 5,
                        "block": {
                            "tags": "q.any_tag('custom_ore', 'stone', 'metal')"
                        }
                    }
                ]
            }
        }
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

List of Vanilla Tags ​

Tag
Vanilla Usage
Functionality
acacia
  • minecraft:acacia_log
birch
  • minecraft:birch_log
dark_oak
  • minecraft:dark_oak_log
diamond_pick_diggable
  • minecraft:coal_ore
  • minecraft:deepslate_coal_ore
  • minecraft:deepslate_diamond_ore
  • minecraft:deepslate_emerald_ore
  • minecraft:deepslate_gold_ore
  • minecraft:deepslate_iron_ore
  • minecraft:deepslate_redstone_ore
  • minecraft:diamond_ore
  • minecraft:emerald_ore
  • minecraft:gold_ore
Deprecated — check for the minecraft:is_pickaxe_item_destructible and minecraft:diamond_tier_destructible tags instead.
dirt
  • minecraft:coarse_dirt
  • minecraft:dirt
  • minecraft:dirt_with_roots
  • minecraft:farmland
  • minecraft:grass_block
  • minecraft:moss_block
  • minecraft:mud
  • minecraft:muddy_mangrove_roots
  • minecraft:mycelium
  • minecraft:pale_moss_block
Allows trees to be placed on this block during world generation. The block will be replaced with Dirt if a tree does generated above it. Also allows some plants to be placed on the block, including Bamboo, Cactus Flower, Dead Bush, Pink Petals, Sugar Cane and Wildflowers.
fertilize_area
  • minecraft:allium
  • minecraft:azure_bluet
  • minecraft:blue_orchid
  • minecraft:cornflower
  • minecraft:crimson_nylium
  • minecraft:dandelion
  • minecraft:grass_block
  • minecraft:lily_of_the_valley
  • minecraft:moss_block
  • minecraft:orange_tulip
grass
  • minecraft:coarse_dirt
  • minecraft:dirt
  • minecraft:grass_block
  • minecraft:grass_path
gravel
  • minecraft:gravel
  • minecraft:suspicious_gravel
iron_pick_diggable
  • minecraft:coal_ore
  • minecraft:deepslate_coal_ore
  • minecraft:deepslate_diamond_ore
  • minecraft:deepslate_emerald_ore
  • minecraft:deepslate_gold_ore
  • minecraft:deepslate_iron_ore
  • minecraft:deepslate_redstone_ore
  • minecraft:diamond_ore
  • minecraft:emerald_ore
  • minecraft:gold_ore
Deprecated — check for the minecraft:is_pickaxe_item_destructible and minecraft:iron_tier_destructible tags instead.
jungle
  • minecraft:jungle_log
log
  • minecraft:acacia_log
  • minecraft:birch_log
  • minecraft:dark_oak_log
  • minecraft:jungle_log
  • minecraft:oak_log
  • minecraft:spruce_log
metal
  • minecraft:cauldron
  • minecraft:gold_block
  • minecraft:iron_bars
  • minecraft:iron_block
  • minecraft:iron_door
minecraft:crop
  • minecraft:beetroot
  • minecraft:carrots
  • minecraft:pitcher_crop
  • minecraft:potatoes
  • minecraft:sweet_berry_bush
  • minecraft:torchflower_crop
  • minecraft:wheat
minecraft:diamond_tier_destructible
  • minecraft:ancient_debris
  • minecraft:crying_obsidian
  • minecraft:glowingobsidian
  • minecraft:netherite_block
  • minecraft:obsidian
  • minecraft:respawn_anchor
Indicates that the block must be destroyed by a diamond tier tool in order to drop. This does not automatically prevent drops for custom blocks.
minecraft:iron_tier_destructible
  • minecraft:deepslate_diamond_ore
  • minecraft:deepslate_emerald_ore
  • minecraft:deepslate_gold_ore
  • minecraft:deepslate_redstone_ore
  • minecraft:diamond_block
  • minecraft:diamond_ore
  • minecraft:emerald_block
  • minecraft:emerald_ore
  • minecraft:gold_block
  • minecraft:gold_ore
Indicates that the block must be destroyed by an iron tier tool in order to drop. This does not automatically prevent drops for custom blocks.
minecraft:is_axe_item_destructible
  • minecraft:acacia_button
  • minecraft:acacia_door
  • minecraft:acacia_double_slab
  • minecraft:acacia_fence
  • minecraft:acacia_fence_gate
  • minecraft:acacia_hanging_sign
  • minecraft:acacia_log
  • minecraft:acacia_planks
  • minecraft:acacia_pressure_plate
  • minecraft:acacia_slab
Instructs axes to mine this block faster. Custom axes should check for this tag in their digger component.
minecraft:is_hoe_item_destructible
  • minecraft:acacia_leaves
  • minecraft:azalea_leaves
  • minecraft:azalea_leaves_flowered
  • minecraft:birch_leaves
  • minecraft:calibrated_sculk_sensor
  • minecraft:cherry_leaves
  • minecraft:dark_oak_leaves
  • minecraft:dried_kelp_block
  • minecraft:hay_block
  • minecraft:jungle_leaves
Instructs hoes to mine this block faster. Custom hoes should check for this tag in their digger component.
minecraft:is_pickaxe_item_destructible
  • minecraft:activator_rail
  • minecraft:amethyst_block
  • minecraft:amethyst_cluster
  • minecraft:ancient_debris
  • minecraft:andesite
  • minecraft:andesite_double_slab
  • minecraft:andesite_slab
  • minecraft:andesite_stairs
  • minecraft:andesite_wall
  • minecraft:anvil
Instructs pickaxes to mine this block faster. Custom pickaxes should check for this tag in their digger component.
minecraft:is_shears_item_destructible
  • minecraft:web
Instructs shears to mine this block faster. Custom shears should check for this tag in their digger component.
minecraft:is_shovel_item_destructible
  • minecraft:black_concrete_powder
  • minecraft:blue_concrete_powder
  • minecraft:brown_concrete_powder
  • minecraft:clay
  • minecraft:coarse_dirt
  • minecraft:cyan_concrete_powder
  • minecraft:dirt
  • minecraft:dirt_with_roots
  • minecraft:farmland
  • minecraft:grass_block
Instructs shovels to mine this block faster. Custom shovels should check for this tag in their digger component.
minecraft:is_sword_item_destructible
  • minecraft:web
Instructs swords to mine this block faster. Custom swords should check for this tag in their digger component.
minecraft:stone_tier_destructible
  • minecraft:chiseled_copper
  • minecraft:copper_block
  • minecraft:copper_bulb
  • minecraft:copper_grate
  • minecraft:copper_ore
  • minecraft:copper_trapdoor
  • minecraft:cut_copper
  • minecraft:cut_copper_slab
  • minecraft:cut_copper_stairs
  • minecraft:deepslate_copper_ore
Indicates that the block must be destroyed by a stone tier tool in order to drop. This does not automatically prevent drops for custom blocks.
mob_spawner
  • minecraft:mob_spawner
not_feature_replaceable
  • minecraft:bedrock
  • minecraft:chest
  • minecraft:chiseled_bookshelf
  • minecraft:end_portal_frame
  • minecraft:mob_spawner
  • minecraft:trial_spawner
  • minecraft:vault
oak
  • minecraft:oak_log
one_way_collidable
  • minecraft:acacia_door
  • minecraft:acacia_fence_gate
  • minecraft:acacia_trapdoor
  • minecraft:bamboo_door
  • minecraft:bamboo_fence_gate
  • minecraft:bamboo_trapdoor
  • minecraft:birch_door
  • minecraft:birch_fence_gate
  • minecraft:birch_trapdoor
  • minecraft:cherry_door
Prevents entities inside a block from being automatically pushed out of the block's collision.
plant
  • minecraft:acacia_sapling
  • minecraft:birch_sapling
  • minecraft:dark_oak_sapling
  • minecraft:jungle_sapling
  • minecraft:large_fern
  • minecraft:lilac
  • minecraft:oak_sapling
  • minecraft:peony
  • minecraft:pitcher_crop
  • minecraft:pitcher_plant
pumpkin
  • minecraft:carved_pumpkin
  • minecraft:lit_pumpkin
  • minecraft:pumpkin
rail
  • minecraft:activator_rail
  • minecraft:detector_rail
  • minecraft:golden_rail
  • minecraft:rail
sand
  • minecraft:red_sand
  • minecraft:sand
  • minecraft:suspicious_sand
Allows cacti to be placed on the block.
snow
  • minecraft:snow_layer
spruce
  • minecraft:spruce_log
stone_pick_diggable
  • minecraft:chiseled_copper
  • minecraft:copper_block
  • minecraft:copper_bulb
  • minecraft:copper_grate
  • minecraft:copper_ore
  • minecraft:cut_copper
  • minecraft:cut_copper_stairs
  • minecraft:deepslate_copper_ore
  • minecraft:exposed_chiseled_copper
  • minecraft:exposed_copper
Deprecated — check for the minecraft:is_pickaxe_item_destructible and minecraft:stone_tier_destructible tags instead.
stone
  • minecraft:andesite
  • minecraft:andesite_wall
  • minecraft:brick_block
  • minecraft:brick_double_slab
  • minecraft:brick_slab
  • minecraft:brick_wall
  • minecraft:cobblestone
  • minecraft:cobblestone_double_slab
  • minecraft:cobblestone_slab
  • minecraft:cobblestone_wall
text_sign
  • minecraft:acacia_hanging_sign
  • minecraft:acacia_standing_sign
  • minecraft:acacia_wall_sign
  • minecraft:bamboo_hanging_sign
  • minecraft:bamboo_standing_sign
  • minecraft:bamboo_wall_sign
  • minecraft:birch_hanging_sign
  • minecraft:birch_standing_sign
  • minecraft:birch_wall_sign
  • minecraft:cherry_hanging_sign
trapdoors
  • minecraft:acacia_trapdoor
  • minecraft:bamboo_trapdoor
  • minecraft:birch_trapdoor
  • minecraft:cherry_trapdoor
  • minecraft:copper_trapdoor
  • minecraft:crimson_trapdoor
  • minecraft:dark_oak_trapdoor
  • minecraft:exposed_copper_trapdoor
  • minecraft:iron_trapdoor
  • minecraft:jungle_trapdoor
Trapdoors are avoided by the Breeze.
water
  • minecraft:flowing_water
  • minecraft:water
wood
  • minecraft:acacia_button
  • minecraft:acacia_door
  • minecraft:acacia_double_slab
  • minecraft:acacia_fence
  • minecraft:acacia_fence_gate
  • minecraft:acacia_hanging_sign
  • minecraft:acacia_log
  • minecraft:acacia_planks
  • minecraft:acacia_pressure_plate
  • minecraft:acacia_slab

Contributors

Edit Block Tags on GitHub

Text and image content on this page is licensed under the Creative Commons Attribution 4.0 International License

Code samples on this page are licensed under the MIT License

Bedrock Wiki by Bedrock OSS

"Minecraft" is a trademark of Mojang AB.

Bedrock OSS, Bedrock Wiki and bedrock.dev are not affiliated in any way with Microsoft or Mojang AB.

  • Privacy Policy
  • Join our Discord
  • Learn how to Contribute
  • Visit our Repository