Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

playerBreakBlock event #890

Open
FBQingYi opened this issue Aug 3, 2024 · 1 comment
Open

playerBreakBlock event #890

FBQingYi opened this issue Aug 3, 2024 · 1 comment

Comments

@FBQingYi
Copy link

FBQingYi commented Aug 3, 2024

[Enter feedback here]
In the playerBreakBlock event, the content obtained from event.block.typeId represents the block after destruction, which is usually air. However, I wish to obtain the ID of the block that was actually destroyed, such as dirt.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

@lxhzzy06
Copy link

lxhzzy06 commented Aug 6, 2024

可以用event.brokenBlockPermutation.type.id获取被破坏方块的id,之前几个版本的文档写明了block是空气方块

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants