手册:Player.getPointedBlockId

来自Minecraft基岩版开发Wiki

语法[编辑]

Player.getPointedBlockId();

参数[编辑]

返回值
int类型 方块的id

效果[编辑]

获取玩家十字指针所指的方块的id

Template:ModPE