mojira.dev
MCPE-162167

Custom Blocks cannot replace main hand items via commands

After creating a custom block and setting an event for it to use replaceitem, the block fails to replace the main hand item. If set to another slot other than main hand such as slot.hotbar, the command still cannot replace the item if the slot targeted is selected by the player.

Steps to reproduce:
1. Create a custom block with an on_interact component that runs a replaceitem event on the player
2. Interacting with the block will replace all slots except for the main hand if targeted.

Comments 6

Thank you for your report!

However, this issue has been temporarily closed as Awaiting Response.

Can you please provide a pack with which the issue can be observed?

This ticket will automatically reopen when you reply.

Quick Links:
πŸ““ Issue Guidelines – πŸ’¬ Mojang Support – πŸ““ Project Summary – πŸ“§ Suggestions – πŸ“– Minecraft Wiki

Thank you for your report!

However, this issue has been temporarily closed as Awaiting Response.

Can you please provide a pack with which the issue can be observed?

This ticket will automatically reopen when you reply.

Quick Links:
πŸ““ Issue Guidelines – πŸ’¬ Mojang Support – πŸ““ Project Summary – πŸ“§ Suggestions – πŸ“– Minecraft Wiki

Possibly the same issue as MCPE-153987?

Possibly the same issue as MCPE-153987?

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

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

Joshua Menusa

(Unassigned)

Unconfirmed

Windows

Windows 11

1.19.22 Hotfix

Retrieved