mojira.dev
MC-138163

/loot mine doesn't always drop the same as mining the block manually

The bug

While /drop <target> mine should block the same as manually mining the block, this isn't always the case. This probably happens because when mining the block manually, the loot table isn't invoked if the tool has a too low tier, while /drop doesn't do the same check.

How to reproduce

Via /drop

  • Make sure you hold nothing in your (main)hand and place a stone block

    /setblock ^ ^ ^1 minecraft:stone
  • Drop the item from the stone block that just got placed, while using your (empty) mainhand

    /drop player @s mine ^ ^ ^1 mainhand

    ⚠️ Note that you will get a cobblestone item

Manually

  • Break the stone block manually (without a tool, in survival mode)
    ⚠️ This time no item will drop.

Linked issues

Comments 1

`/drop` does not simulate full break, it just evaluates loot tables. Tool checking is separate mechanism, not controlled by them.

Closing as feature request (though this feature was already in progress before snapshot, we just need to figure some things).

AlexMCool

boq

Confirmed

Minecraft 18w43c

Retrieved