mojira.dev
MC-54307

OutOfBoundsException - Custom Meta

When using /setblock to an item with custom metadata, it puts the block there fine with an invalid model+texture, presumingly to allow the ability to add our own at some point.

However, upon attempting to pickblock this block, the inventory item crashes the client. The only way to remove this is to manually edit the NBT of the player to a valid metadata value.

Also if the block is sand or gravel, it will crash when it turns into an entity.

I've included the crash files. The 22.04.11 is the falling block entity crash, and the 21.56.11 is the inventory item crash.

Tried searching, but didn't find any of the same issue. Sorry for any duplicates 😃

Linked issues

Attachments

Comments

kumasasa

What are the exact commands you've used ?

luisc99

"/setblock ~ ~ ~ sand 9"

It's the 9 that is the different meta.

kumasasa

There is no sand with data value 9.

luisc99

(Unassigned)

Unconfirmed

Minecraft 14w18a

Retrieved