When the chargeable component is added to an item, the trigger time of the on_use component will change state depending on if the player holds the use button for the entire use_duration.
Set-up:
Add on_use that triggers an event, chargeable that triggers a second, and use_duration to an item.
Expected result:
on_use will trigger as soon as the item is used.
chargeable will trigger after the use duration.
Observed result:
If the player uses the item for the full use duration the on_use will trigger at the end of the use_duration.
If the player clicks the use button, on_use will trigger immediately.
chargeable does not trigger
Attachments
Comments 3
Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response.
I have tested the issue using the attached behavior pack, and every time the item is used, a 3 second cooldown is applied, during which the item cannot be used again, regardless of whether the button is held or not. If the button is held until the end of the cooldown, the item is used again. Is this the expected result? If not, is the issue still present on your end?
This ticket will automatically reopen when you reply.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📓 Project Summary – 📧 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
Can confirm this issue in the latest release.