mojira.dev
MCPE-88465

脚本引擎"minecraft:block_interacted_with"事件无法监听

 

sys.listenForEvent("minecraft:block_interacted_with", function (interactData) {
    sendMessage("interacted!!!");
});

 

如上,我在脚本引擎中添加了"minecraft:block_interacted_with"事件的监听(sendMessage方法的作用为在消息栏输出信息,经检查该方法运作正常),但是当我在游戏中触发该事件时(右键点击某个方块),脚本引擎并没有发送“interacted!!"消息。

这个bug在1.16.0时就已经存在了,当时我并不是很确定该问题的起因是否为贵工作室更换了事件标识符,但由于目前我在新发布的文档中仍未查找到相关的变动记录,所以猜测应该是bug,希望能尽快修复,如果不是bug的话,希望贵工作室能完善一下文档,谢谢~

Comments 1

Thank you for your report!

Thank you for taking the time to report a bug. Unfortunately we are only able to accept bug reports in English. You are welcome to use an online translator, if that helps. (You can find an example bug ticket here.)

Also, we'd recommend making use of the search feature before writing a new bug report, as it's very likely that the issue has been mentioned already, and you can add a vote and any new information to the main ticket.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Qian Shan yao

(Unassigned)

Unconfirmed

Windows

Windows 10

1.16.0, 1.16.1

Retrieved