mojira.dev
MCPE-224274

"tool" argument of /loot command is not validated

The bug

The tool final argument of the /loot command can be set to any string without causing a syntax error. It’s supposed to be either an item, or the literal strings mainhand or offhand.

How to reproduce

  1. Run /loot give @s loot "entities/pig" alksdjfklasjfaiejfioj

Expected result

Syntax error

Observed result

The command runs

Comments 1

tryashtar

(Unassigned)

Unconfirmed

Windows

1.21.100.22 Preview, 1.21.93 Hotfix

Retrieved