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

[Bug]: mc.setBlock 实际上,设置成功 或 失败 都会返回false #190

Open
Atrium4641 opened this issue Nov 24, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Atrium4641
Copy link

Atrium4641 commented Nov 24, 2024

Describe the bug

mc.setBlock 实际上设置成功或失败否会返回false

To Reproduce

// 定义放置箱子的坐标
const pos = new IntPos(10, 64, 10, 0); // 例如在主世界(dimid=0)的坐标(10, 64, 10)

// 放置一个箱子
const success = mc.setBlock(pos, "minecraft:chest");
logger.warn(typeof success);
logger.warn(success);

Expected behavior

设置成功返回true 失败才返回false

Screenshots

No response

Platform

Win10

BDS Version

1.21.3

LeviLamina Version

0.13.5

LegacyScriptEngine Version

0.8.19

Additional context

No response

@Atrium4641 Atrium4641 added the bug Something isn't working label Nov 24, 2024
@Atrium4641 Atrium4641 changed the title [Bug]: mc.setBlock 实际上设置成功或失败否会返回false [Bug]: mc.setBlock 实际上,设置成功 或 失败 都会返回false Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant