mojira.dev
MCPE-148785

Gametest event ItemUseOnEvent works inproperly in Beta 1.18.10.20

As the video shows below, when you try to place a block and it fails, this event will signal many times at the same time, which cause great trouble to developers

Maybe only win10 players will cause this problem when using their mouse

I guess the reason is that, this signal is called in something like <GameMode::useItemOn> , but actually it is NOT a good idea to call this event here, because when you try to place a block but it is blocked by yourself or some other entity, this function will suddenly be called for many times for unknown reason.

The best solution is reconstructing the logic around this place to avoid such improper behaviors.
Or if it is too complicated, you can just add timeout limitation (about 100~200ms?) between two calls of this event. We have tried tricks like this before, and this problem will be fixed temporarily as long as the player just click their mouse ONCE to place a block.

Attachments

Comments 2

Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response

Is this still an issue in the latest version? If so, can you please add it to the affected versions (or mention it if you are not the reporter).

Also, just a reminder, to make your bug report as effective as possible, please try and include the following steps to reproduce the problem:

Steps to Reproduce:
1.
2.
3.

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

If your ticket does not look like the example given here, then it's likely to be closed as incomplete.

This ticket will automatically reopen when you reply.

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

Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.

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

YQ

(Unassigned)

Unconfirmed

Windows

1.18.10.20 Beta

Retrieved