mojira.dev
MCPE-134271

Giving items when running a function from a custom block

When you give an item to a player through a function file that runs when breaking a custom block, and that player doesn't already have the item in their inventory, then it sometimes doesn't give them the item, but other times it will. 

Youtube video: https://youtu.be/Pmx1sKhrveI

Attachments

Comments 5

Here is an example of the Custom Coal Block code:

[media]

Here is the function:

[media]

Have you tried running the commands in the command array directly? (Not via function )

If you mean typing the commands from the function into the chat as commands and testing if they work or not: Then yes, and all the commands work

Also: Running the function works 100% everytime, but it does not work 100% of the time when I break the block 

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 yes, can you please add it to the affected versions (or mention it if you are not the reporter)?

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.

For any account or purchasing related issues, please contact Minecraft Customer Support directly, as we cannot assist with those here at the bug tracker.

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

Boothe

(Unassigned)

Unconfirmed

Windows

Windows 10

1.17.2 Hotfix

Retrieved