mojira.dev
MC-192228

Shulker Boxes with the Lock Tag when broken lose the lock tag

When having a Locked Shulker Box and breaking it the Lock Tag will be removed from the item.

How to Reproduce:

Step 1: give yourself a Shulker Box with the Lock Tag; /give @s shulker_box{BlockEntityTag:{Lock:"Key"}}

Step 2: give yourself a Key to open the Shulker Box; /give @s tripwire_hook{display:{Name:'"Key"'}}

Step 3: Place down the Shulker Box

Step 4: Hold the Tripwire Hook renamed Key and open the Shulker Box (Trying to open the Shulker Box without the Key will not let you)

Step 5: Break the Shulker Box and place it down

Step 6: open the Shulker Box without the Key then close the GUI and open it with the Key as you can see the broken Shulker Box can be opened without a Key

Comments 3

I was unable to reproduce

It only or still applies in creative mode and if the shulkerbox is filled with something thus it will drop (as a duplicate)

 

Reproduce like this:

 

Step 1: Go to creative mode

Step 2: give yourself a Shulker Box with the Lock Tag; /give @s shulker_box{BlockEntityTag:{Lock:"Key"}}

Step 3: give yourself a Key to open the Shulker Box; /give @s tripwire_hook{display:{Name:'"Key"'}}

Step 4: Place down the Shulker Box

Step 5: Hold the Tripwire Hook renamed Key and open the Shulker Box (Trying to open the Shulker Box without the Key will not let you)

Step 6: put in a potato

Step 7: Break the Shulker Box, collect and place the dropped Shulker Box down

Step 8: open that Shulker Box without the Key

Step 9: Fix the bug please 😉

This still happens on 1.16.4. The condition is that the player has to be in creative mode. It works in survival mode without problems. Should this be re-opened with a new issue as it is marked as resolved but still in the game?

Tristan

(Unassigned)

Unconfirmed

(Unassigned)

1.16.1

Retrieved