Bedrock Wiki
  • QQ
  • 原站
新手入门指南
  • Guide
    • 1. 简介
      指南
    • 2. 附加组件详解
    • 3. 软件与准备工作
    • 4. 项目设置
    • 5. 创建自定义物品
    • 6. 创建自定义实体
    • 7. Blockbench:建模、贴图与动画制作
    • 8. 添加战利品表、生成规则与合成配方
  • Extra
    • a. 理解JSON
    • b. 下载示例包
    • c. 故障排除
      帮助
    • d. 高级清单文件指南
    • e. 格式版本
    • f. Android 项目设置
JSON UI
  • General
    • JSON UI 入门指南
      指南
    • 最佳实践
      指南
  • Tutorials
    • Aseprite 动画
    • 保留标题文本
      中级
    • 修改服务器表单
      中级
    • 字符串与数字转换
      中级
    • 按钮与开关
      新手
    • 添加HUD界面元素
      新手
  • Documentation
    • JSON UI 文档
Meta
  • Style Guide
  • 使用JSON模式(Schemas)
  • 实用链接
  • 版本控制
  • 附加包性能优化
  • Q&A
    • GameTest 问答集 2021/08/06
    • 世界生成问答 2024/11/15
    • 延迟渲染技术预览问答 2024/02/23
    • 方块与物品问答 2024/08/30
    • 脚本与编辑器问答 2023/09/22
NBT
  • General
    • .mcstructure
  • Tutorials
    • 扩展结构限制
      简单
    • 教育版中的实验功能
      简单
  • NBT in Depth
    • NBT 库列表
      专家
    • NBT读取示例
      专家
    • 关于NBT(命名二进制标签)
      专家
世界生成
  • General
    • 世界生成入门
      指南
      实验性
    • 特性类型
      实验性
    • 生物群系
      指南
      实验性
  • Tutorials
    • 特征(Feature)的方块条件
      实验性
    • 生成地表区块
      实验性
    • 生成自定义矿石
      实验性
    • 生成自定义结构
      实验性
    • 高度图噪声地形
      实验性
  • Documentation
    • 生物群系标签
动画控制器
  • 动画控制器入门指南
    指南
  • 实体命令
    中级
  • AFK检测器
  • 将Molang变量转换为计分板数值
  • 死亡指令
  • 重生指令
命令
  • General
    • 命令方块入门指南
    • 函数
    • NBT 命令
    • 坐标系
    • 方块状态
    • 理解目标选择器
    • 记分板操作
  • Commands
    • Execute
      简单
    • Playanimation
    • 伤害
    • 播放音效
  • On Event Systems
    • 玩家首次加入时
    • On Player Join
    • 玩家离开时触发
    • 玩家死亡事件
    • 玩家重生事件系统
    • 首次加载世界时
  • Scoreboard Systems
    • 实体计数器
    • 计分板计时器
    • 比较与获取分数
  • Techniques
    • 执行逻辑门
    • MBE - Max的方块实体
    • FMBE - 创建显示实体的新方法
    • 视线检测
    • 移动状态检测
    • 轨道摄像机
  • Useful Creations
    • 多人位置重排系统
      函数
    • 自定义合成台
      简单
实体
  • General
    • Intro to Entities BP
      指南
      新手
    • 实体资源包入门
      指南
      新手
    • 实体问题排查指南
      帮助
    • NPC对话系统
      中级
    • 实体事件
      新手
    • 实体属性
    • 渲染控制器
      新手
    • 生成规则
  • Tutorials
    • 任意坐标系间的坐标转换(世界、实体、骨骼)
      中级
    • 创建船只
      中级
    • 实体手持物品
      中级
    • 实体攻击机制
      中级
    • 实体睡眠机制
      中级
    • 实体碰撞体
      中级
    • 实体移动
    • 实体计时器
      中级
    • 无敌实体
      新手
    • 村庄机制实现指南
    • 检测其他实体
      中级
    • 生成已驯服的实体
      脚本
      中级
    • 视线检测实体
      中级
    • 禁用队友伤害
      中级
    • 范围效果云入门指南
      中级
    • 虚拟实体
      新手
    • 飞行实体控制
      中级
  • Documentation
    • Vanilla Usage Spawn Rules
    • 原版使用组件
    • 抛射物
    • 虚拟组件
    • 运行时标识符
    • 非生物实体运行时标识符
战利品、配方与交易
  • General
    • 交易行为
  • Documentation
    • 战利品表
    • 交易表
    • 合成配方
    • 物品函数
  • Tutorials
    • 随机化结构战利品
      简单
文档
  • Shared Constructs
  • Molang 查询详解
  • Vanilla Materials
    专家
  • 声音定义
  • 文件类型
  • 材质配置文件说明
    专家
  • 菜单分类
  • 资源包文件夹结构
  • 雾效ID
  • 高级Molang指南
方块
  • General
    • 方块入门指南
      指南
      新手
    • 方块组件
    • Block Tags
    • 方块状态
    • Block Traits
    • 方块排列组合
    • 方块事件
      脚本
    • 方块事件迁移指南
      帮助
    • 方块物品化
      中级
    • 方块问题排查指南
      帮助
  • Visuals
    • 方块剔除
      中级
    • 方块模型
      指南
      新手
      简单
    • 方块着色
      简单
    • 方块纹理动画
      中级
    • 方块纹理变体
      中级
  • Tutorials
    • Precise Interaction
      专家
      脚本
    • Precise Rotation
      专家
      脚本
    • 伪方块
      中级
    • 可旋转方块
    • 应用持续效果
      简单
      脚本
    • 矿石战利品表
      简单
      脚本
    • 规避状态值限制
      专家
  • Vanilla Re-Creations
    • 自定义作物
      中级
      脚本
    • 自定义活板门
      中级
      脚本
    • 自定义玻璃
      新手
      简单
      已弃用
    • 自定义釉面陶瓦
      简单
  • Documentation
    • 原版方块模型
      新手
    • 方块形状
    • 方块格式历史
    • 方块音效
服务器
  • Software
    • Bedrock Server Software
  • Protocols
    • Bedrock Protocol
    • NetherNet 协议
    • RakNet 协议
概念
  • contents.json
  • Molang
    中级
  • Rawtext
  • textures_list.json
  • 命名空间
  • 子包
  • 文本与本地化
  • 着色器
  • 纹理图集
    中级
  • 表情符号与特殊字符
  • 覆盖资源
    中级
  • 音效
    中级
物品
  • General
    • 物品入门指南
      指南
      新手
    • 物品组件
    • 物品标签
    • 物品事件
      脚本
    • Item Event Migration
      帮助
    • 物品问题排查指南
      帮助
  • Tutorials
    • Custom Pottery Sherds
    • 可投掷物品
      中级
    • 生成物品
      中级
    • 自定义武器
      简单
    • 自定义盔甲
    • 自定义食物
      简单
      脚本
    • 通过装备物品执行命令
      实验性
      中级
    • 高分辨率物品
  • Documentation
    • 附魔
    • Numerical Item IDs
    • Vanilla Usage Components
    • 原版物品标识符
      已弃用
    • 可附着物
      新手
    • 物品格式历史记录
视觉效果
  • General
    • 实体视觉效果简介
      指南
    • 基岩版建模指南
    • 动画中的特效
    • 基于数学的动画
      中级
    • 材质
      专家
    • 材质创作
      专家
    • 皮肤包制作指南
    • 自定义死亡动画
      中级
  • Tutorials
    • Glowing Entity Texture
    • 受伤动画
      中级
    • 实体纹理动画
      中级
    • 栓绳位置调整
      简单
    • 玩家几何模型
      新手
    • 移除实体阴影
      中级
    • 重绘生成蛋纹理
      新手
  • Ideas
    • 结构展示技巧
粒子效果
  • General
    • 粒子效果入门
      指南
  • Tutorials
    • 禁用粒子效果
      新手
  • Documentation
    • 原版粒子效果
脚本编写
  • General
    • 脚本编程入门
    • 什么是Script API?
    • API 模块
  • Tutorials
    • GameTests
      实验性
    • 简易聊天命令
      实验性
    • 脚本核心功能
    • 脚本表单
      实验性
    • 脚本请求API
      实验性
    • 阻止方块放置
  • Documentation
    • JavaScript 问题排查指南
    • Script Resources
    • Script Watchdog
      实验性
    • TypeScript
    • 引擎环境
虚拟现实
  • General
    • 启用VR模式
      指南
    • 配置资源包
      专家
  • Tutorials
    • 编辑你的第一个模型
      专家

Block Tags

Block Tags
  • 应用标签
  • 检测标签
    • 通过方块描述符
    • 通过实体
    • 其他查询
  • 原版标签列表

方块标签可用于确保方块满足特定条件。

应用标签 ​

方块标签可以在方块的 components 中应用,前缀为 tag:,如下所示:

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:my_lovely_tag": {},
            "tag:wiki:very_useless": {}
        }
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

检测标签 ​

通过方块描述符 ​

  • 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

通过实体 ​

  • 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

其他查询 ​

注意: 以下查询函数目前没有已知的用例。

  • q.block_neighbor_has_all_tags
  • q.block_neighbor_has_any_tag

以下是一个物品检测方块标签的示例:

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

原版标签列表 ​

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

贡献者

编辑 Block Tags

本页面上的文本和图像内容根据 知识共享署名 4.0 国际许可协议

本页中的代码示例根据 MIT 许可证

Bedrock Wiki by Bedrock OSS ,Translate by 8aka-Team

"Minecraft"是Mojang AB的注册商标。

Bedrock OSS、Bedrock Wiki以及 bedrock.dev 与Microsoft及Mojang AB不存在任何隶属关系。

  • 隐私政策
  • 加入QQ社区
  • 参与贡献指南
  • 访问代码仓库