mojira.dev
MCPE-175380

"minecraft:block" item component removes item from commands

When you add the "minecraft:block" item component to an item (for example: 
"minecraft:block": "minecraft:glass",) then the item is not available in commands and can only be obtained with an NBT Editor or the Scripting API, the item component actually does work, and it does change the item icon to that of the block that was set. Please fix this as this item component is extremely useful so it can have the same icon as a block. 
Steps To Reproduce:  

  1. Make an addon that adds an item with this item component: "minecraft:block": "minecraft:glass",

  2. Go on a world with the addon and try to /give yourself the item. 

  3. remove the component and go on the world and get the item

  4. then re-add the component and you will see that you still have the item even though it is not available in commands and also you will see that it has the icon of a glass block. 

Observed Results: 

The item is not available with commands but does still work and can be obtained with an NBT Editor

Expected Results: 

The item should still be available in commands. 

Attachments

Attachments

Comments 2

Thank you for your report!

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

Could you please attach an example addon showcasing the issue?

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

Andexter

(Unassigned)

Unconfirmed

Multiple

addons, commands, components, item

1.20.30, 1.20.32 Hotfix

Retrieved