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

The set_custom_model_data flags value accepts number list in the command

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.4 Pre-Release 1
    • None
    • Unconfirmed
    • (Unassigned)

      The flags list accepts float and integer numbers list while you run command, Judging by the name "flags" , It should only accept boolean list.

      How to reproduce:

      1. Take any item in your main hand.
      2. Run those commands:
        /item modify entity @s weapon.mainhand {"function":"minecraft:set_custom_model_data","flags":{"values":[0.2,-0.9,1.0,-100.0,23.0],"mode":"replace_all"}} 
        /item modify entity @s weapon.mainhand {"function":"minecraft:set_custom_model_data","flags":{"values":[-2,-1,0,1,2],"mode":"replace_all"}}

         

      3. Check the command result, or use this command to check the result:
        /data get entity @s Inventory[0].components."minecraft:custom_model_data".flags

      Expected Result:

      It should only accept boolean list.

      Observed Result:

      The command allows number list.

            Unassigned Unassigned
            wplxfore wplxfore
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: