mojira.dev
MCPE-244152

Shulker Box items do not return ItemInventoryComponent in 26.60 despite the changelog

Changelog states: “Shulker Box items now return a valid ItemInventoryComponent.” This doesn’t actually seem to be true though. The component still seems to not exist on shulker box items.

Steps: (done via gametest and dedicated server for repeatability, but also exhibits the issue when done manually on Windows 1.26.60)

  • Minimal GameTest BP (2.11.0 + GameTest)

  • fill undyed shulker with 3 diamonds

  • setblock air destroy (to drop the block)

  • getComponent("minecraft:inventory") on the drop (the dropped shulker item doesn’t have the minecraft:inventory component)

  • useItemOnBlock (to place that item back down)

  • read the new block (to verify that the item did in fact properly store the items, just didn’t expose them)

Expected: Able to get the minecraft:inventory component as an ItemInventoryComponent and access the slots like a bundle allows.

Actual: When tested on Dedicated Server 1.26.61.1 (r/26_u6, @minecraft/server 2.11.0):

  • a bundle item returns minecraft:inventory

  • a placed shulker block inventory can be accessed like normal

  • the shulker item doesn’t have an minecraft:inventory component. getComponents() only returns minecraft:block_actor_dynamic_properties

Comments 0

No comments.

Dylan Brose

(Unassigned)

Unconfirmed

Multiple

10, Dedicated Server

26.60

Retrieved