Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-269136

Incorrect weapon.* command suggestions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w11a
    • 24w10a
    • None
    • Confirmed
    • Commands
    • Important
    • Platform

      There are a bunch of slot suggestions starting with weapon.* that aren't meaningful, and which aren't documented in the 24w10 article. For example weapon.*0 corresponds with weapon.mainhand and weapon.*3 corresponds with armor.legs.

      How to reproduce:

      1. Type the following command in chat, and notice the suggestions
        /execute if items entity @s weapon.*
        
      2. Run the following command, and notice that the item is placed in your legs slot
        /item replace entity @s weapon.*3 with minecraft:chainmail_leggings
        

            boq [Mojang] Bartosz Bok
            Misoloo [Helper] Misode
            Votes:
            4 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: