Skip to content

[Bug]: mc.getBlock,永远获取到air #252

@luckyuptop

Description

@luckyuptop

Describe the bug

Image

To Reproduce

mc.listen("onDestroyBlock", (player, block) => {
for (let index = 0; index > -64; index--) {
const bl = mc.getBlock(player.pos.x, index, player.pos.z, player.pos.dimid);
log(bl.type);
}
});

Expected behavior

如预期正常获取方块对象

Screenshots

No response

Platform

win11

BDS Version

1.21.60

LeviLamina Version

1.1.0

LegacyScriptEngine Version

10.rc2

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions