mojira.dev
MC-241515

Shulker boxes do not drop when destroyed in survival mode (caused by outdated data pack)

As the title states, shulkers do not drop when broken in survival. This issue can easily be reproduced by just placing a shulker and attempting to break and collect it.

Attachments

Comments 7

This issue also appears when playing on a singleplayer world

The colored shulker boxes seem to drop like they are supposed to, only the default color shulker box disappears.

Can't reproduce. Is this still happening for you?

This issue seems to have reappeared in prerelease 5.  I placed both a yellow and regular shulker box in single player world and both disappeared when breaking the box without using any tools.  The yellow box contained items and the plain box was empty.   I then tried breaking the empty shulker box with different tools (pickax with silk touch, pickax with fortune, ax, sword) and the shulker box still did not drop on being broken.

This is single player world which was created in 1.17 and upgraded to 1.18 release 1 and then to 1.18 release five.  The world was in peaceful mode and had cheats enabled.  This occurred in survival mode.  This is java edition.

I tested it for a new game created with release 5 and the issue does not seem to occur. 

On second thought, I'm almost certain this is caused by a data pack that hasn't updated its shulker box loot table to include type. Please comment if you can verify that is or is not the case.

I wanted to add my findings in case it will help others who may have datapacks installed that create this issue.  (MC-242386) . 

I found the datapack that I was using that caused the issue (vanilla tweaks: "more mob heads v2.9.2.zip").  The datapack itself did not display issue, but when I modified the datapack to add a directory "minecraft\loot_tables\blocks"  that was a copy of 1.17 vanilla versions.  Even though the shulker_box json was not modified this created the issue.  This issue does not occur in version 1.17 or 1.17.1, but occurs in the 1.18 prerelease versions (1 and 5) where I tested it.  When you remove this folder and the json files within it then the issue disappears.  

The bug on my system was due to my modification of the datapack which I have only used on my system, so if you are having the same issue then check your datapacks to see they have the "minecraft\loot_tables\blocks" folder or if they modify block behavior.

It is not `more mob heads v2.9.2.zip` that causes this issue. Adding that file fixed it for you because it overwrote whichever other pack had this issue. More Mob Heads doesn't touch the yellow shulker box loot table.

Chimpy

(Unassigned)

Unconfirmed

(Unassigned)

1.18 Pre-release 1

Retrieved