mojira.dev
MCPE-224634

/loot mine tool can't have enchantments

The bug

The purpose of the /loot command’s mine overload is to simulate mining a block with a specific tool. That’s why the tool argument is provided. And possibly the only time the tool matters for the loot of a block is with silk touch. That’s why this command works in Java:

/loot give @s mine ~ ~-1 ~ diamond_pickaxe[enchantments={silk_touch:1}]

In Bedrock, this same command gives a syntax error. So there is no way to simulate mining a block with enchantments, only the item type. Which is almost useless since loot tables almost never depend on the tool type alone.

How to reproduce

  1. Stand on some stone

  2. /loot give @s mine ~ ~-1 ~ diamond_pickaxe[enchantments={silk_touch:1}]

Expected result

You get one stone item

Observed result

Syntax error

Comments 0

No comments.

tryashtar

(Unassigned)

1466058

Community Consensus

Windows

1.21.100.23 Preview, 1.21.93 Hotfix

Retrieved