mojira.dev
MC-312690

Minecarts chests, minecart hoppers, chest boats, and chest rafts drop their contents when destroyed when the `entity_drops` game rule is set to false

The Bug:

Minecarts chests, minecart hoppers, chest boats, and chest rafts drop their contents when destroyed when the entity_drops game rule is set to false.

The entity_drops game rule explicitly says it controls drops from entities like minecarts including their inventories, however, the said entities still drop their contents when destroyed when the said game rule is set to false.

Steps to Reproduce:

  1. Set the “entity_drops” game rule to false by using the command provided below.

    /gamerule entity_drops false
  2. Summon a chest boat with some items inside by using the command provided below.

    /summon minecraft:oak_chest_boat ~ ~ ~ {Items:[{count:1,Slot:0b,id:"minecraft:diamond"},{count:1,Slot:1b,id:"minecraft:emerald"},{count:1,Slot:2b,id:"minecraft:gold_ingot"}]}
  3. Double-check that the chest boat has items inside it.

  4. Destroy the chest boat and observe if its contents are dropped.

Observed Behavior:

The contents are dropped despite the entity_drops game rule being set to false.

Expected Behavior:

The contents would not be dropped when the entity_drops game rule is set to false.

Attachments

Comments 1

Avoma

(Unassigned)

Unconfirmed

26.3, 26.4 Snapshot 4

Retrieved